Files
Frontend/src/app/layout.tsx

54 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-04-14 18:46:37 +01:00
import Container from "@/components/container";
import ThemeProvider from "@/components/theme-provider";
2024-04-15 09:13:52 +01:00
import { Metadata, Viewport } from "next";
2024-04-14 19:55:07 +01:00
import { ToastContainer } from "react-toastify";
2024-04-14 17:45:04 +01:00
2024-04-15 09:13:52 +01:00
import Config from "../../config.json";
2024-04-14 19:55:07 +01:00
import { Inter } from "next/font/google";
import "react-toastify/dist/ReactToastify.css";
2024-04-14 18:46:37 +01:00
import "./globals.css";
2024-04-14 17:45:04 +01:00
const inter = Inter({ subsets: ["latin"] });
2024-04-15 09:13:52 +01:00
export const viewport: Viewport = {
themeColor: "#3498DB",
};
export const metadata: Metadata = {
metadataBase: new URL(Config.siteUrl),
title: {
template: Config.siteName + " - %s",
default: Config.siteName,
},
description: Config.siteDescription,
keywords: "Minecraft, APIs, wrapper, utility, development",
openGraph: {
title: Config.siteName,
description: Config.siteDescription,
url: Config.siteUrl,
locale: "en_US",
type: "website",
},
};
2024-04-14 17:45:04 +01:00
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
2024-04-14 18:46:37 +01:00
<>
<html className={inter.className} lang="en" suppressHydrationWarning>
<head />
<body>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
2024-04-14 21:10:33 +01:00
<ToastContainer theme="dark" pauseOnFocusLoss={false} />
2024-04-14 18:46:37 +01:00
<Container>{children}</Container>
</ThemeProvider>
</body>
</html>
</>
2024-04-14 17:45:04 +01:00
);
}