Duffer Derek
import { Montserrat } from "next/font/google";
import "./globals.css";
import ClientProvider from "./index"; // Import client-side logic here
import type { Metadata, Viewport } from "next";
import "@/lib/pwaInstall"; // Initialize global PWA install handler
const montserrat = Montserrat({
subsets: ["latin"], // Optional: define subsets
weight: ["400", "500", "600", "700", "800", "900"], // Optional: specify font weights
});
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
maximumScale: 1,
userScalable: false,
};
// Add metadata here
export const metadata: Metadata = {
title: "SITE-SECURITY",
description: "A PWA-enabled app",
manifest: "/manifest.json",
icons: {
icon: [
{ url: "/favicon.ico", type: "image/x-icon" },
{ url: "/favicon_x16.png", sizes: "16x16", type: "image/png" },
{ url: "/favicon_x32.png", sizes: "32x32", type: "image/png" },
{ url: "/favicon_x48.png", sizes: "48x48", type: "image/png" },
// { url: "/icon-192x192.png", sizes: "192x192", type: "image/png" },
// { url: "/icon-512x512.png", sizes: "512x512", type: "image/png" },
],
apple: [
{ url: "/apple_touch_icon_x120.png", sizes: "120x120" },
{ url: "/apple_touch_icon_x152.png", sizes: "152x152" },
{ url: "/apple_touch_icon_x167.png", sizes: "167x167" },
{ url: "/apple_touch_icon_x180.png", sizes: "180x180" },
],
},
appleWebApp: {
capable: true,
title: "SITE-SECURITY",
statusBarStyle: "black-translucent",
},
other: {
"mobile-web-app-capable": "yes",
"apple-mobile-web-app-capable": "yes",
// "apple-mobile-web-app-status-bar-style": "black-translucent",
// "apple-mobile-web-app-title": "SITE-SECURITY",
"msapplication-TileColor": "#FDE7E8",
"msapplication-TileImage": "/mstile_x150.png",
"themeColor": "#e30613",
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" translate="no">
<body
className={montserrat.className}
suppressHydrationWarning={true}
// Optional: Add additional attributes to prevent zooming
style={{
touchAction: "manipulation",
WebkitTextSizeAdjust: "100%", // Prevent text scaling on orientation change
maxWidth: "100%",
overscrollBehavior: "none", // Prevent pull-to-refresh on some browsers
}}
>
<ClientProvider>{children}</ClientProvider>
</body>
</html>
);
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists