import type { Metadata, Viewport } from 'next'; import { Baloo_2, Great_Vibes, Caveat, Inter, Fraunces } from 'next/font/google'; import './globals.css'; const baloo = Baloo_2({ subsets: ['latin', 'devanagari'], weight: ['400', '600', '700', '800'], variable: '--font-baloo', display: 'swap', }); const vibes = Great_Vibes({ subsets: ['latin'], weight: ['400'], variable: '--font-vibes', display: 'swap', }); const caveat = Caveat({ subsets: ['latin'], weight: ['400', '600', '700'], variable: '--font-caveat', display: 'swap', }); const inter = Inter({ subsets: ['latin'], variable: '--font-inter', display: 'swap', }); const fraunces = Fraunces({ subsets: ['latin'], weight: ['400', '500', '600', '700'], variable: '--font-fraunces', display: 'swap', }); export const metadata: Metadata = { title: 'समोसाचाट — samosaChaat', description: 'Crafted with care. For India, from India. A warm, desi-flavored chat experience powered by nanochat.', icons: { icon: '/logo.svg' }, }; export const viewport: Viewport = { themeColor: '#0f0f10', width: 'device-width', initialScale: 1, viewportFit: 'cover', }; // Set theme class before paint to avoid flash. Default = dark; user can flip via the toggle. const themeInitScript = ` (function(){try{ var t=localStorage.getItem('theme'); if(t==='light'){document.documentElement.classList.remove('dark');} else{document.documentElement.classList.add('dark');} }catch(e){document.documentElement.classList.add('dark');}})(); `; export default function RootLayout({ children }: { children: React.ReactNode }) { return (
{children} ); }