From 756cb749b2bf201c4a6482d7b6ef7d7e222fc1d1 Mon Sep 17 00:00:00 2001 From: parsaaghayi Date: Fri, 10 Jul 2026 18:31:23 +0330 Subject: [PATCH] design: implement landing page UI/UX improvements based on Senior UI/UX audit --- frontend/application/app/page.tsx | 2 +- .../components/FeaturedProducts.tsx | 10 ++++++- frontend/application/components/Hero.tsx | 26 +++++++++---------- .../application/components/SmartAdvisor.tsx | 7 ++++- .../application/components/VetGallery.tsx | 7 ++--- 5 files changed, 33 insertions(+), 19 deletions(-) diff --git a/frontend/application/app/page.tsx b/frontend/application/app/page.tsx index 9ff91e5f..68341a24 100644 --- a/frontend/application/app/page.tsx +++ b/frontend/application/app/page.tsx @@ -58,7 +58,7 @@ export default async function Home() { {/* About Section Teaser */}
-
+
{isLoading ? ( Array.from({ length: 3 }).map((_, i) => ) - ) : ( + ) : products.length > 0 ? ( products.map((p) => ( router.push(`/shop/${p.slug || p.id}`)} product={p} /> )) + ) : ( +
+ +

هیچ محصولی یافت نشد

+

+ در حال حاضر هیچ محصول برجسته‌ای برای نمایش وجود ندارد. لطفاً در پنل ادمین محصولات برگزیده را تنظیم کنید. +

+
)}
diff --git a/frontend/application/components/Hero.tsx b/frontend/application/components/Hero.tsx index a37d1e12..3b28edce 100644 --- a/frontend/application/components/Hero.tsx +++ b/frontend/application/components/Hero.tsx @@ -105,7 +105,7 @@ export default function Hero({ banners = [] }: { banners?: any[] }) { }} /> -
+
-
- - - {/* Badge */} - -
- DE - {getText('hero_quality_standard', "استاندارد کیفی آلمان")} + + {/* Quality Badge inside the image container to prevent text collision */} + +
+ DE + {getText('hero_quality_standard', "استاندارد کیفی آلمان")} +
+
diff --git a/frontend/application/components/SmartAdvisor.tsx b/frontend/application/components/SmartAdvisor.tsx index 0d100f4a..71170380 100644 --- a/frontend/application/components/SmartAdvisor.tsx +++ b/frontend/application/components/SmartAdvisor.tsx @@ -172,11 +172,16 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro + {(!name || !breed) && ( +

+ ⚠️ لطفاً ابتدا نام و نژاد پت را در بالا وارد کنید. +

+ )} )} diff --git a/frontend/application/components/VetGallery.tsx b/frontend/application/components/VetGallery.tsx index 6271395c..8ce646ae 100644 --- a/frontend/application/components/VetGallery.tsx +++ b/frontend/application/components/VetGallery.tsx @@ -65,7 +65,7 @@ export default function VetGallery({ testimonials = [] }: { testimonials?: any[]
- {displayItems.map((video: any) => ( + {displayItems.map((video: any, index: number) => (
-
- {video.duration || '۱:۰۰'} +
+ ⏱️ + {video.duration || (index === 0 ? '۱:۴۵' : index === 1 ? '۲:۲۰' : '۳:۱۰')}