44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import type { Metadata } from "next";
|
|
import "./globals.css";
|
|
import { Toaster } from "@/components/ui/sonner"
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { Google_Sans_Code, Mona_Sans } from "next/font/google";
|
|
import localFont from 'next/font/local'
|
|
import { CookieConsent } from "@/components/cookie-notice";
|
|
import { ConditionalAnalytics } from "@/components/conditional-analytics";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "FRG Network",
|
|
description: "Authenticate to access Minecraft.",
|
|
};
|
|
export const googleSansCode = Google_Sans_Code({
|
|
weight: "variable",
|
|
variable: "--font-google-code",
|
|
subsets: ["latin"],
|
|
});
|
|
export const makeSans = localFont({
|
|
src: "../../public/font/makesans.ttf",
|
|
})
|
|
export const mona = Mona_Sans({
|
|
weight: "variable",
|
|
subsets: ["latin"],
|
|
variable: "--font-mona",
|
|
});
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" className={`${googleSansCode.variable} ${mona.variable} dark`} suppressHydrationWarning>
|
|
<body
|
|
className={`antialiased dark`}
|
|
>
|
|
{children}
|
|
<CookieConsent />
|
|
<ConditionalAnalytics />
|
|
<Toaster position="bottom-center" />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|