изменение хэдера и исправление ключеых багов

This commit is contained in:
egortriston
2025-07-08 17:27:26 +03:00
parent 8055886082
commit 96e11b0220
10 changed files with 117 additions and 52 deletions

View File

@ -3,6 +3,7 @@ import { useRouter } from "next/router";
import Header from "./Header";
import AuthModal from "./auth/AuthModal";
import MobileMenuBottomSection from "./MobileMenuBottomSection";
import IndexTopMenuNav from "./index/IndexTopMenuNav";
const Layout = ({ children }: { children: React.ReactNode }) => {
const [authModalOpen, setAuthModalOpen] = useState(false);
@ -30,7 +31,10 @@ const Layout = ({ children }: { children: React.ReactNode }) => {
onSuccess={handleAuthSuccess}
/>
</header>
<main className="pt-[108px] md:pt-[131px]">{children}</main>
<main className="pt-[62px] md:pt-[63px]">
<IndexTopMenuNav />
{children}</main>
<MobileMenuBottomSection onOpenAuthModal={() => setAuthModalOpen(true)} />
</>
);