From 79c229a93c062d840053f6c6e1cadef995b32355 Mon Sep 17 00:00:00 2001
From: parsa aghaei
Date: Mon, 29 Jun 2026 09:57:51 +0330
Subject: [PATCH] fix: UI/UX regressions - header glassmorphic, dark mode
icons, testimonials i18n, image remotePatterns
---
next.config.mjs | 12 +++
.../(website)/components/contact/contact.tsx | 2 +-
.../(website)/components/footer/footer.tsx | 4 +-
.../(website)/components/header/header.tsx | 6 +-
.../(website)/components/hero/hero.tsx | 6 +-
.../components/services/services.tsx | 2 +-
.../components/testimonials/testimonials.tsx | 75 +++++--------------
src/app/lib/dictionaries/en.json | 40 +++++++++-
src/app/lib/dictionaries/fa.json | 40 +++++++++-
src/app/types/types.ts | 6 ++
10 files changed, 126 insertions(+), 67 deletions(-)
diff --git a/next.config.mjs b/next.config.mjs
index bce6497..d50233e 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -14,6 +14,18 @@ const nextConfig = {
port: '',
pathname: '/**',
},
+ {
+ protocol: 'https',
+ hostname: 'backend.parsaaghayi.ir',
+ port: '',
+ pathname: '/**',
+ },
+ {
+ protocol: 'https',
+ hostname: 'parsaaghayi.ir',
+ port: '',
+ pathname: '/**',
+ },
],
},
async rewrites() {
diff --git a/src/app/(routes)/(website)/components/contact/contact.tsx b/src/app/(routes)/(website)/components/contact/contact.tsx
index e79d795..77fd05b 100644
--- a/src/app/(routes)/(website)/components/contact/contact.tsx
+++ b/src/app/(routes)/(website)/components/contact/contact.tsx
@@ -82,7 +82,7 @@ export default function Contact({ dict }: ContactProps) {
whileTap={{ scale: 0.98 }}
disabled={isSubmitting}
type="submit"
- className="relative w-full md:w-auto flex items-center justify-center gap-2 px-8 py-4 rounded-2xl bg-primary text-primary-foreground font-bold transition-all duration-300 disabled:opacity-70 disabled:cursor-not-allowed"
+ className="relative w-full md:w-auto flex items-center justify-center gap-2 px-8 py-4 rounded-2xl bg-primary text-primary-foreground font-bold whitespace-nowrap transition-all duration-300 disabled:opacity-70 disabled:cursor-not-allowed"
>
{isSubmitting ? (
diff --git a/src/app/(routes)/(website)/components/footer/footer.tsx b/src/app/(routes)/(website)/components/footer/footer.tsx
index 9c896a5..3d1343e 100644
--- a/src/app/(routes)/(website)/components/footer/footer.tsx
+++ b/src/app/(routes)/(website)/components/footer/footer.tsx
@@ -54,14 +54,14 @@ export default async function Footer() {
))}
diff --git a/src/app/(routes)/(website)/components/header/header.tsx b/src/app/(routes)/(website)/components/header/header.tsx
index 76739a9..9759799 100644
--- a/src/app/(routes)/(website)/components/header/header.tsx
+++ b/src/app/(routes)/(website)/components/header/header.tsx
@@ -41,10 +41,10 @@ export default function Header() {
return (