first commit
This commit is contained in:
@ -1,21 +1,53 @@
|
||||
import type { Metadata } from "next";
|
||||
import localFont from "next/font/local";
|
||||
import BackgroundImage from "./components/background-image";
|
||||
import DatabaseLoader from "./components/loaders/database-loader";
|
||||
import NavBar from "./components/navbar";
|
||||
import { ThemeProvider } from "./components/providers/theme-provider";
|
||||
import { Toaster } from "./components/ui/toaster";
|
||||
import { TooltipProvider } from "./components/ui/tooltip";
|
||||
import "./globals.css";
|
||||
|
||||
const geistSans = localFont({
|
||||
src: "./fonts/GeistVF.woff",
|
||||
variable: "--font-geist-sans",
|
||||
weight: "100 900",
|
||||
});
|
||||
const geistMono = localFont({
|
||||
src: "./fonts/GeistMonoVF.woff",
|
||||
variable: "--font-geist-mono",
|
||||
const siteFont = localFont({
|
||||
src: "./fonts/RobotoMono-Regular.ttf",
|
||||
weight: "100 900",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: {
|
||||
default: "ScoreSaber Reloaded",
|
||||
template: "SSR - %s",
|
||||
},
|
||||
applicationName: "ScoreSaber Reloaded",
|
||||
authors: [
|
||||
{
|
||||
name: "Fascinated",
|
||||
url: "https://git.fascinated.cc/Fascinated",
|
||||
},
|
||||
],
|
||||
robots: {
|
||||
index: true,
|
||||
follow: true,
|
||||
nocache: false,
|
||||
googleBot: {
|
||||
index: true,
|
||||
follow: true,
|
||||
},
|
||||
},
|
||||
keywords:
|
||||
"scoresaber, score saber, scoresaber stats, score saber stats, beatleader, beat leader," +
|
||||
"scoresaber reloaded, ssr, github, score aggregation, scoresaber api, score saber api, scoresaber api," +
|
||||
"BeatSaber, Overlay, OBS, Twitch, YouTube, BeatSaber Overlay, Github, Beat Saber overlay, ScoreSaber, BeatLeader," +
|
||||
"VR gaming, Twitch stream enhancement, Customizable overlay, Real-time scores, Rankings, Leaderboard information," +
|
||||
"Stream enhancement, Professional overlay, Easy to use overlay builder.",
|
||||
openGraph: {
|
||||
title: "Scoresaber Reloaded",
|
||||
description: "Scoresaber Reloaded is a new way to view your scores and get more stats about your and your plays",
|
||||
url: "https://ssr.fascinated.cc",
|
||||
locale: "en_US",
|
||||
type: "website",
|
||||
},
|
||||
description: "Scoresaber Reloaded is a new way to view your scores and get more stats about your and your plays",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
@ -25,10 +57,17 @@ export default function RootLayout({
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
{children}
|
||||
<body className={`${siteFont.className} antialiased w-full h-full relative`}>
|
||||
<DatabaseLoader>
|
||||
<Toaster />
|
||||
<BackgroundImage />
|
||||
<TooltipProvider>
|
||||
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem disableTransitionOnChange>
|
||||
<NavBar />
|
||||
<main className="m-2 z-50">{children}</main>
|
||||
</ThemeProvider>
|
||||
</TooltipProvider>
|
||||
</DatabaseLoader>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
Reference in New Issue
Block a user