56 lines
2 KiB
TypeScript
56 lines
2 KiB
TypeScript
import type { Metadata, Viewport } from 'next';
|
|
import './globals.css';
|
|
import '../styles/mobile-overrides.css';
|
|
import { Suspense } from 'react';
|
|
import { AuthBootstrap } from '@/components/auth/AuthBootstrap';
|
|
import { StorefrontChrome } from '@/components/store/StorefrontChrome';
|
|
import { ClientModalsContainer } from '@/components/ClientModalsContainer';
|
|
import { GoogleAnalytics } from '@/components/analytics/GoogleAnalytics';
|
|
import { Toaster } from 'sonner';
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL('https://ifixkart.trionixsolution.com'),
|
|
title: 'iFixKart TechShop | Electronics & Certified Repair Hub',
|
|
description:
|
|
'Shop top smartphones, laptops, smartwatches, OEM replacement spare parts, and book certified device repair services.',
|
|
openGraph: {
|
|
title: 'iFixKart TechShop | Electronics & Certified Repair Hub',
|
|
description:
|
|
'Shop top smartphones, laptops, smartwatches, OEM replacement spare parts, and book certified device repair services.',
|
|
type: 'website',
|
|
},
|
|
};
|
|
|
|
/**
|
|
* viewportFit: 'cover' is required for env(safe-area-inset-bottom) to return
|
|
* non-zero on iPhone X+ (notch / Dynamic Island / home indicator) — the PDP
|
|
* sticky purchase bar and other fixed bottom elements rely on it.
|
|
* themeColor tints the browser UI bar on Android Chrome and iOS Safari.
|
|
*/
|
|
export const viewport: Viewport = {
|
|
width: 'device-width',
|
|
initialScale: 1,
|
|
viewportFit: 'cover',
|
|
themeColor: '#1976F3',
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en" className="h-full">
|
|
<body className="flex flex-col min-h-screen bg-[#F8F9FB] text-[#1E293B] font-sans antialiased">
|
|
<Suspense fallback={null}>
|
|
<GoogleAnalytics />
|
|
</Suspense>
|
|
<Toaster position="top-right" richColors closeButton expand={true} />
|
|
<AuthBootstrap />
|
|
<StorefrontChrome />
|
|
<ClientModalsContainer />
|
|
{children}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|