- Add .eslintrc.json so next lint doesn't prompt interactively in CI - Switch Google Fonts from <link> tags to next/font/google - Wrap "// SECURE_NODE_7" in JSX expression to avoid comment parse error
49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Space_Grotesk, Inter } from "next/font/google";
|
|
import "./globals.css";
|
|
|
|
const spaceGrotesk = Space_Grotesk({
|
|
subsets: ["latin"],
|
|
weight: ["300", "400", "500", "700"],
|
|
variable: "--font-headline",
|
|
display: "swap",
|
|
});
|
|
|
|
const inter = Inter({
|
|
subsets: ["latin"],
|
|
weight: ["300", "400", "600"],
|
|
variable: "--font-body",
|
|
display: "swap",
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "COREWORLDS.IO // TACTICAL_TERMINAL",
|
|
description:
|
|
"Interface with the Coreworlds terminal. A high-clearance orbital research module.",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
className={`dark ${spaceGrotesk.variable} ${inter.variable}`}
|
|
>
|
|
<head>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
</head>
|
|
<body className="bg-background text-on-surface font-body overflow-x-hidden">
|
|
{/* Global CRT Overlay */}
|
|
<div className="fixed inset-0 z-[100] scanlines opacity-30 pointer-events-none" />
|
|
{children}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|