37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import { getBaseURL } from "@lib/util/env"
|
|
import { Metadata } from "next"
|
|
import { DM_Sans, Geist } from "next/font/google"
|
|
import { cn } from "@/lib/utils"
|
|
import "styles/globals.css"
|
|
|
|
// Body text: closest free match to Biograph's Apercu Pro
|
|
const fontSans = DM_Sans({
|
|
subsets: ["latin", "latin-ext"],
|
|
variable: "--font-sans",
|
|
display: "swap",
|
|
})
|
|
|
|
// Headings: closest free match to Biograph's Aeonik
|
|
const fontDisplay = Geist({
|
|
subsets: ["latin", "latin-ext"],
|
|
variable: "--font-display",
|
|
display: "swap",
|
|
})
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL(getBaseURL()),
|
|
}
|
|
|
|
export default function RootLayout(props: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="bs" data-mode="light" className={cn(fontSans.variable, fontDisplay.variable)}>
|
|
<head>
|
|
<link rel="ucp" href="/.well-known/ucp" />
|
|
</head>
|
|
<body className="min-h-screen bg-background font-sans text-foreground antialiased selection:bg-secondary selection:text-secondary-foreground">
|
|
<main className="relative">{props.children}</main>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|