From e45f647c1dca702543a916faad632d0abc93926b Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Thu, 1 Oct 2026 14:52:09 +0330 Subject: [PATCH] feat(nav): add full-width mobile glass dock --- src/app/layout.tsx | 10 ++++++++-- src/components/Footer.tsx | 2 +- src/components/MobileBottomNav.tsx | 22 +++++++++++++--------- src/components/Navbar.tsx | 2 +- src/index.css | 22 ++++++++++++++++++++++ 5 files changed, 45 insertions(+), 13 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index fe028f5..64a7113 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,4 @@ -import type { Metadata } from "next"; +import type { Metadata, Viewport } from "next"; import localFont from "next/font/local"; import { Suspense } from "react"; import MobileBottomNav from "@/components/MobileBottomNav"; @@ -18,6 +18,12 @@ const vazirmatn = localFont({ fallback: ["Tahoma", "Arial", "sans-serif"], }); +export const viewport: Viewport = { + width: "device-width", + initialScale: 1, + viewportFit: "cover", +}; + export async function generateMetadata(): Promise { const siteContent = await getCmsSiteContent(); const title = siteContent.seo.title || siteContent.official_name; @@ -61,7 +67,7 @@ export default async function RootLayout({ -
+
{children}
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index b116525..60dddf7 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -28,7 +28,7 @@ export default function Footer({ siteContent }: { siteContent: SiteContent }) { ].filter((contact) => contact !== null); return ( -