This commit is contained in:
parent
097a2aa63f
commit
27865cd296
@ -1,17 +1,17 @@
|
|||||||
|
import Footer from "@/components/footer";
|
||||||
import { PreloadResources } from "@/components/preload-resources";
|
import { PreloadResources } from "@/components/preload-resources";
|
||||||
|
import { QueryProvider } from "@/components/providers/query-provider";
|
||||||
|
import { ThemeProvider } from "@/components/providers/theme-provider";
|
||||||
|
import { Toaster } from "@/components/ui/toaster";
|
||||||
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
||||||
import { AnimatePresence } from "framer-motion";
|
import { AnimatePresence } from "framer-motion";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import localFont from "next/font/local";
|
import localFont from "next/font/local";
|
||||||
import BackgroundImage from "../components/background-image";
|
import BackgroundImage from "../components/background-image";
|
||||||
import DatabaseLoader from "../components/loaders/database-loader";
|
import DatabaseLoader from "../components/loaders/database-loader";
|
||||||
import NavBar from "../components/navbar/navbar";
|
import NavBar from "../components/navbar/navbar";
|
||||||
import { QueryProvider } from "@/components/providers/query-provider";
|
|
||||||
import { ThemeProvider } from "@/components/providers/theme-provider";
|
|
||||||
import { Toaster } from "@/components/ui/toaster";
|
|
||||||
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
||||||
import "./globals.css";
|
|
||||||
import Footer from "@/components/footer";
|
|
||||||
|
|
||||||
|
import "./globals.css";
|
||||||
const siteFont = localFont({
|
const siteFont = localFont({
|
||||||
src: "./fonts/JetBrainsMono-Regular.woff2",
|
src: "./fonts/JetBrainsMono-Regular.woff2",
|
||||||
weight: "100 900",
|
weight: "100 900",
|
||||||
@ -20,7 +20,7 @@ const siteFont = localFont({
|
|||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: {
|
title: {
|
||||||
default: "ScoreSaber Reloaded",
|
default: "ScoreSaber Reloaded",
|
||||||
template: "SSR - %s",
|
template: "%s - SSR",
|
||||||
},
|
},
|
||||||
applicationName: "ScoreSaber Reloaded",
|
applicationName: "ScoreSaber Reloaded",
|
||||||
authors: [
|
authors: [
|
||||||
@ -46,14 +46,12 @@ export const metadata: Metadata = {
|
|||||||
"Stream enhancement, Professional overlay, Easy to use overlay builder.",
|
"Stream enhancement, Professional overlay, Easy to use overlay builder.",
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: "Scoresaber Reloaded",
|
title: "Scoresaber Reloaded",
|
||||||
description:
|
description: "Scoresaber Reloaded is a new way to view your scores and get more stats about your and your plays",
|
||||||
"Scoresaber Reloaded is a new way to view your scores and get more stats about your and your plays",
|
|
||||||
url: "https://ssr.fascinated.cc",
|
url: "https://ssr.fascinated.cc",
|
||||||
locale: "en_US",
|
locale: "en_US",
|
||||||
type: "website",
|
type: "website",
|
||||||
},
|
},
|
||||||
description:
|
description: "Scoresaber Reloaded is a new way to view your scores and get more stats about your and your plays",
|
||||||
"Scoresaber Reloaded is a new way to view your scores and get more stats about your and your plays",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
@ -63,20 +61,13 @@ export default function RootLayout({
|
|||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body
|
<body className={`${siteFont.className} antialiased w-full h-full relative`}>
|
||||||
className={`${siteFont.className} antialiased w-full h-full relative`}
|
|
||||||
>
|
|
||||||
<DatabaseLoader>
|
<DatabaseLoader>
|
||||||
<Toaster />
|
<Toaster />
|
||||||
<BackgroundImage />
|
<BackgroundImage />
|
||||||
<PreloadResources />
|
<PreloadResources />
|
||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<ThemeProvider
|
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem disableTransitionOnChange>
|
||||||
attribute="class"
|
|
||||||
defaultTheme="dark"
|
|
||||||
enableSystem
|
|
||||||
disableTransitionOnChange
|
|
||||||
>
|
|
||||||
<QueryProvider>
|
<QueryProvider>
|
||||||
<AnimatePresence>
|
<AnimatePresence>
|
||||||
<main className="flex flex-col min-h-screen gap-2">
|
<main className="flex flex-col min-h-screen gap-2">
|
||||||
|
Reference in New Issue
Block a user