From 769192e962983d5970800b425d596c4a59029bc5 Mon Sep 17 00:00:00 2001 From: parsaaghayi Date: Sun, 23 Aug 2026 20:10:51 +0330 Subject: [PATCH] homepahe- hero section design updated and optimized for mobile view --- backend/src/menu/menu.controller.ts | 6 ++++++ frontend/application/components/Hero.tsx | 18 +++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/backend/src/menu/menu.controller.ts b/backend/src/menu/menu.controller.ts index 8eeff03..5eb3917 100644 --- a/backend/src/menu/menu.controller.ts +++ b/backend/src/menu/menu.controller.ts @@ -36,6 +36,12 @@ export class MenuController { return this.menuService.findByType(type); } + @Get('type/:type') + @ApiOperation({ summary: 'دریافت منو عمومی با پارامتر مسیر' }) + findByTypeParam(@Param('type') type: string) { + return this.menuService.findByType(type); + } + @UseGuards(JwtAuthGuard, RolesGuard) @Roles('Admin') @ApiBearerAuth() diff --git a/frontend/application/components/Hero.tsx b/frontend/application/components/Hero.tsx index afa5225..09b398b 100644 --- a/frontend/application/components/Hero.tsx +++ b/frontend/application/components/Hero.tsx @@ -111,14 +111,14 @@ export default function Hero({ banners = [], onShopNavigate }: { banners?: Banne }; return ( -
+
{/* Background patterns */}
-
+
{/* Content */}
-
+
{mounted && isInitialized ? getText('hero_badge', "از ۱۹۸۴ در خدمت سلامت حیوانات") : "از ۱۹۸۴ در خدمت سلامت حیوانات"}
-

+

{titleParts[0]}
{titleParts[1] && {titleParts[1]}}

-

+
@@ -176,7 +176,7 @@ export default function Hero({ banners = [], onShopNavigate }: { banners?: Banne {/* Visual Element & Interactive Slider */}
setIsPaused(true)} onMouseLeave={() => setIsPaused(false)} >