2022-10-19 17:10:58 +00:00
|
|
|
import { createTheme, Image, NextUIProvider } from "@nextui-org/react";
|
2022-10-14 19:00:47 +00:00
|
|
|
import { NextSeo } from "next-seo";
|
2022-10-19 14:53:00 +00:00
|
|
|
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
2022-10-14 19:00:47 +00:00
|
|
|
import Head from "next/head";
|
2022-02-14 19:40:28 +00:00
|
|
|
|
2022-10-14 19:00:47 +00:00
|
|
|
import Config from "../config.json";
|
2022-02-15 19:21:09 +00:00
|
|
|
|
2022-10-14 19:00:47 +00:00
|
|
|
import "../styles/globals.css";
|
2022-10-10 18:53:39 +00:00
|
|
|
|
2022-10-19 14:53:00 +00:00
|
|
|
const lightTheme = createTheme({
|
|
|
|
type: "light",
|
|
|
|
theme: {
|
|
|
|
colors: {},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
const darkTheme = createTheme({
|
|
|
|
type: "dark",
|
|
|
|
theme: {
|
|
|
|
colors: {},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2022-02-14 17:43:52 +00:00
|
|
|
function MyApp({ Component, pageProps }) {
|
2022-10-14 19:00:47 +00:00
|
|
|
return (
|
2022-10-19 14:53:00 +00:00
|
|
|
<NextThemesProvider
|
|
|
|
storageKey="theme"
|
|
|
|
attribute="class"
|
|
|
|
value={{
|
|
|
|
dark: darkTheme,
|
|
|
|
light: lightTheme,
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<NextUIProvider>
|
|
|
|
<NextSeo
|
|
|
|
title={Config.name}
|
|
|
|
description={Config.description}
|
|
|
|
openGraph={{
|
|
|
|
url: Config.url,
|
|
|
|
title: Config.name,
|
|
|
|
description: Config.description,
|
|
|
|
site_name: Config.name,
|
|
|
|
images: [
|
|
|
|
{
|
2022-10-19 15:42:15 +00:00
|
|
|
url: "https://cdn.fascinated.cc/fHknFPctAC.png?raw=true",
|
2022-10-19 14:53:00 +00:00
|
|
|
alt: "Site Example",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}}
|
|
|
|
twitter={{
|
|
|
|
cardType: "summary_large_image",
|
|
|
|
site: "@BeatSaber Overlay",
|
|
|
|
}}
|
2022-10-14 19:00:47 +00:00
|
|
|
/>
|
|
|
|
|
2022-10-19 14:53:00 +00:00
|
|
|
<Head>
|
|
|
|
<meta name="theme-color" content={Config.color} />
|
|
|
|
<meta
|
|
|
|
property="og:keywords"
|
|
|
|
content="BeatSaber,Overlay,OBS,Twitch,YouTube,BeatSaber Overlay,Github,"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<noscript>
|
2022-10-19 17:10:58 +00:00
|
|
|
<Image
|
|
|
|
alt="For page analytics"
|
|
|
|
src="https://analytics.fascinated.cc/ingress/4bc413fa-a126-4860-9a6a-22d10d5cf2fb/pixel.gif"
|
|
|
|
/>
|
2022-10-19 14:53:00 +00:00
|
|
|
</noscript>
|
|
|
|
<script
|
2022-10-19 17:10:58 +00:00
|
|
|
defer={true}
|
2022-10-19 14:53:00 +00:00
|
|
|
src="https://analytics.fascinated.cc/ingress/4bc413fa-a126-4860-9a6a-22d10d5cf2fb/script.js"
|
|
|
|
></script>
|
|
|
|
</Head>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</NextUIProvider>
|
|
|
|
</NextThemesProvider>
|
2022-10-14 19:00:47 +00:00
|
|
|
);
|
2022-02-14 17:43:52 +00:00
|
|
|
}
|
|
|
|
|
2022-09-01 23:38:01 +00:00
|
|
|
export default MyApp;
|