Files
Frontend/src/app/layout.tsx

63 lines
1.6 KiB
TypeScript
Raw Normal View History

2024-04-15 12:12:24 +01:00
import { Fonts } from "@/common/fonts";
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-14 19:55:07 +01:00
import "react-toastify/dist/ReactToastify.css";
2024-04-14 18:46:37 +01:00
import "./globals.css";
2024-04-16 22:03:48 +01:00
import Config from "../../config.json";
import Container from "./components/container";
import ThemeProvider from "./components/theme-provider";
2024-04-17 18:08:13 +01:00
import { TooltipProvider } from "./components/ui/tooltip";
2024-04-14 17:45:04 +01:00
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-17 17:46:41 +01:00
images: [
{
url: "https://git.fascinated.cc/MinecraftUtilities/Assets/raw/branch/master/logo.png",
},
],
},
twitter: {
card: "summary",
2024-04-15 09:13:52 +01:00
},
};
2024-04-14 17:45:04 +01:00
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
2024-04-16 21:18:08 +01:00
}>): JSX.Element {
2024-04-14 17:45:04 +01:00
return (
2024-04-14 18:46:37 +01:00
<>
2024-04-15 12:12:24 +01:00
<html className={Fonts.inter.className} lang="en" suppressHydrationWarning>
2024-04-14 18:46:37 +01:00
<head />
<body>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
2024-04-17 18:08:13 +01:00
<TooltipProvider>
<ToastContainer theme="dark" pauseOnFocusLoss={false} />
<Container>{children}</Container>
</TooltipProvider>
2024-04-14 18:46:37 +01:00
</ThemeProvider>
</body>
</html>
</>
2024-04-14 17:45:04 +01:00
);
}