2026-08-23 05:25:15 +02:00
|
|
|
import type { Metadata, Viewport } from "next";
|
2026-08-23 20:15:41 +02:00
|
|
|
import { Barlow_Condensed, Space_Grotesk, IBM_Plex_Mono } from "next/font/google";
|
2026-08-23 05:25:15 +02:00
|
|
|
import RegisterServiceWorker from "@/components/RegisterServiceWorker";
|
|
|
|
|
import "./globals.css";
|
|
|
|
|
|
2026-08-23 20:15:41 +02:00
|
|
|
const displayFont = Barlow_Condensed({
|
|
|
|
|
variable: "--font-display-face",
|
2026-08-23 05:25:15 +02:00
|
|
|
weight: ["700", "900"],
|
|
|
|
|
subsets: ["latin"],
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const spaceGrotesk = Space_Grotesk({
|
|
|
|
|
variable: "--font-space-grotesk",
|
|
|
|
|
subsets: ["latin"],
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const plexMono = IBM_Plex_Mono({
|
|
|
|
|
variable: "--font-plex-mono",
|
|
|
|
|
weight: ["400", "500", "600"],
|
|
|
|
|
subsets: ["latin"],
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: "vpinball — Visual Pinball in your browser",
|
|
|
|
|
description:
|
|
|
|
|
"Play real .vpx pinball tables in the browser, powered by a WebAssembly build of Visual Pinball. Drop in your own table or play the bundled demo.",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const viewport: Viewport = {
|
|
|
|
|
themeColor: "#0b0b0f",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({ children }: LayoutProps<"/">) {
|
|
|
|
|
return (
|
|
|
|
|
<html
|
|
|
|
|
lang="en"
|
2026-08-23 20:15:41 +02:00
|
|
|
className={`${displayFont.variable} ${spaceGrotesk.variable} ${plexMono.variable} h-full antialiased`}
|
2026-08-23 05:25:15 +02:00
|
|
|
>
|
|
|
|
|
<body className="min-h-full flex flex-col bg-ink text-paper font-body">
|
|
|
|
|
{children}
|
|
|
|
|
<RegisterServiceWorker />
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|