import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; import Navbar from "@/components/Navbar"; import Footer from "@/components/Footer"; const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], }); const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"], }); export const metadata: Metadata = { title: "jonathan.dev", description: "Personal portfolio", }; // Runs before first paint — restores saved theme, defaults to dark const themeScript = ` (function() { try { if (localStorage.getItem('theme') === 'light') { document.documentElement.classList.remove('dark'); } else { document.documentElement.classList.add('dark'); } } catch {} })(); `; export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return (