import type { Metadata } from "next"; import { EB_Garamond, Manrope } from "next/font/google"; import "./globals.css"; import Header from "@/components/layout/Header"; import Footer from "@/components/layout/Footer"; import Container from "@/components/layout/Container"; const manrope = Manrope({ variable: "--font-manrope", subsets: ["latin"], }); const garamond = EB_Garamond({ variable: "--font-garamond", subsets: ["latin"], style: ["normal", "italic"], }); export const metadata: Metadata = { title: "Angel Mankel - Software Engineer", }; export default async function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { // Dev-only theme switcher for trying fonts and palettes. Next inlines // NODE_ENV at build time, so in production this branch (and the switcher's // extra fonts) is dropped entirely. let devFontVariables = ""; let devSwitcher: React.ReactNode = null; if (process.env.NODE_ENV === "development") { const { fontVariables, sansOptions, serifOptions } = await import("@/components/dev/themeFonts"); const { default: ThemeSwitcher } = await import("@/components/dev/ThemeSwitcher"); devFontVariables = fontVariables; devSwitcher = ; } return (
{children}