import type { Metadata } from "next"; import { Fraunces, Inter } from "next/font/google"; import "./globals.css"; const serif = Fraunces({ subsets: ["latin"], variable: "--font-fraunces", display: "swap", axes: ["opsz"], }); const sans = Inter({ subsets: ["latin"], variable: "--font-inter", display: "swap" }); export const metadata: Metadata = { title: "Provenance — where it came from matters", description: "Trace your family and your land in one place — every fact linked to the record it came from. Self-hosted, sourced, and yours to keep.", icons: { icon: "/favicon.svg" }, }; // Sets the theme class before first paint to avoid a flash; reads the saved // choice ("light"/"dark"/"system") or falls back to the OS preference. const themeScript = `(function(){try{var t=localStorage.getItem("theme");var d=t==="dark"||((!t||t==="system")&&window.matchMedia("(prefers-color-scheme: dark)").matches);document.documentElement.classList.toggle("dark",d);}catch(e){}})();`; export default function RootLayout({ children }: { children: React.ReactNode }) { return (
{children} ); }