55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
import type { Metadata, Viewport } from 'next';
|
|
import { Inter, JetBrains_Mono } from 'next/font/google';
|
|
import { Toaster } from 'sonner';
|
|
import './globals.css';
|
|
|
|
const inter = Inter({
|
|
subsets: ['latin'],
|
|
variable: '--font-sans',
|
|
display: 'swap',
|
|
});
|
|
|
|
const jetbrainsMono = JetBrains_Mono({
|
|
subsets: ['latin'],
|
|
variable: '--font-mono',
|
|
display: 'swap',
|
|
});
|
|
|
|
export const viewport: Viewport = {
|
|
width: 'device-width',
|
|
initialScale: 1,
|
|
viewportFit: 'cover',
|
|
themeColor: '#1e2844',
|
|
};
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: 'Port Nimara CRM',
|
|
template: '%s | Port Nimara CRM',
|
|
},
|
|
description: 'Marina management system for Port Nimara',
|
|
appleWebApp: {
|
|
capable: true,
|
|
statusBarStyle: 'black-translucent',
|
|
title: 'Port Nimara',
|
|
},
|
|
icons: {
|
|
icon: [
|
|
{ url: '/icon-192.png', sizes: '192x192', type: 'image/png' },
|
|
{ url: '/icon-512.png', sizes: '512x512', type: 'image/png' },
|
|
],
|
|
apple: '/apple-touch-icon.png',
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className={`${inter.variable} ${jetbrainsMono.variable} font-sans antialiased`}>
|
|
{children}
|
|
<Toaster richColors position="top-right" />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|