Skip to content

Isometric line figures that answer the pointer. For React and for anything with a DOM.

978 B
Raw Blame
import type { Metadata } from "next";
import type { ReactNode } from "react";
import { GeistMono } from "geist/font/mono";
import { GeistSans } from "geist/font/sans";
import { Instrument_Serif } from "next/font/google";
import { Analytics } from "@vercel/analytics/next";
import { share } from "@/lib/share";
import "./globals.css";

/** The headline's one serif word. */
const serif = Instrument_Serif({ weight: "400", style: ["normal", "italic"], subsets: ["latin"], variable: "--font-instrument-serif" });

const SITE = process.env.NEXT_PUBLIC_SITE_URL!;

export const metadata: Metadata = { metadataBase: new URL(SITE), ...share("/"), icons: { icon: "/icon.svg" } };

export default function RootLayout({ children }: { children: ReactNode }) {
  return (
    <html lang="en" className={`${GeistSans.variable} ${GeistMono.variable} ${serif.variable}`}>
      <body className="font-sans antialiased">
        {children}
        <Analytics />
      </body>
    </html>
  );
}