add favicon
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 56s

This commit is contained in:
Lee
2024-04-16 22:03:48 +01:00
parent 9714765e15
commit fb5cb868a5
3 changed files with 3 additions and 3 deletions

51
src/app/layout.tsx Normal file
View File

@ -0,0 +1,51 @@
import { Fonts } from "@/common/fonts";
import { Metadata, Viewport } from "next";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import "./globals.css";
import Config from "../../config.json";
import Container from "./components/container";
import ThemeProvider from "./components/theme-provider";
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",
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>): JSX.Element {
return (
<>
<html className={Fonts.inter.className} lang="en" suppressHydrationWarning>
<head />
<body>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
<ToastContainer theme="dark" pauseOnFocusLoss={false} />
<Container>{children}</Container>
</ThemeProvider>
</body>
</html>
</>
);
}