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 ( -