From a11de84ae5c25c4a1b9c4b5b1c76e269c7fde8f4 Mon Sep 17 00:00:00 2001 From: Batyr Date: Thu, 6 Nov 2025 11:55:45 +0500 Subject: [PATCH] Update layout and styles for HomePage and BurgerMenu components --- app/(root)/page.tsx | 2 +- components/shared/Header.tsx | 204 +++++++++++++++++----------------- components/ui/burger-menu.tsx | 2 +- 3 files changed, 107 insertions(+), 101 deletions(-) diff --git a/app/(root)/page.tsx b/app/(root)/page.tsx index c001f39..b556791 100644 --- a/app/(root)/page.tsx +++ b/app/(root)/page.tsx @@ -11,7 +11,7 @@ export default async function HomePage() { const lang = cookies().get("lang")?.value ?? "ru"; return ( -
+
}> diff --git a/components/shared/Header.tsx b/components/shared/Header.tsx index cefa6fd..5917a6c 100644 --- a/components/shared/Header.tsx +++ b/components/shared/Header.tsx @@ -56,112 +56,118 @@ export const Header = () => { {/* Mobile */} -
- поиск - - { - dispatch(setBurgerOpen(false)); - dispatch(setShowInput(false)); - }} - href={"/"} + {/*
*/} +
+
лого - -
- - - -
+ { + dispatch(setBurgerOpen(false)); + dispatch(setShowInput(false)); + }} + href={"/"} + > + лого + - {burgerOpen && } -
- - {/* Desktop */} - -
-
-
-
- - logo - -
- - - - поиск dispatch(setShowInput(true))} - className="cursor-pointer" - /> -
-
- - +
+ + +
-
-
+ + {burgerOpen && } +
+ {/*
*/} + + {/* Desktop */} + + {/*
*/} +
+
+
+
+ + logo + +
+ + + + поиск dispatch(setShowInput(true))} + className="cursor-pointer" + /> +
+
+ + +
+
+
+
+ {/*
*/} ); }; diff --git a/components/ui/burger-menu.tsx b/components/ui/burger-menu.tsx index f0923b5..a2837c4 100644 --- a/components/ui/burger-menu.tsx +++ b/components/ui/burger-menu.tsx @@ -103,7 +103,7 @@ export const BurgerMenu = () => { x: "100%", opacity: 0, }} - className="bg-green overflow-auto fixed w-full z-[900] top-[74px] bottom-0 left-0 min-h-[100vh] h-full px-4 py-10 flex flex-col overflow-y-auto" + className="bg-green overflow-auto fixed w-full z-50 top-[66px] bottom-0 left-0 min-h-[100vh] h-full px-4 py-10 flex flex-col overflow-y-auto" > {activeMenu && (