58 lines
1.2 KiB
JavaScript
58 lines
1.2 KiB
JavaScript
import { createTheme, NextUIProvider } from "@nextui-org/react";
|
|
import { NextSeo } from "next-seo";
|
|
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
import "../styles/globals.css";
|
|
|
|
const lightTheme = createTheme({
|
|
type: "light",
|
|
theme: {
|
|
colors: {},
|
|
},
|
|
});
|
|
|
|
const darkTheme = createTheme({
|
|
type: "dark",
|
|
theme: {
|
|
colors: {},
|
|
},
|
|
});
|
|
|
|
function MyApp({ Component, pageProps }) {
|
|
return (
|
|
<NextThemesProvider
|
|
storageKey="theme"
|
|
attribute="class"
|
|
value={{
|
|
dark: darkTheme,
|
|
light: lightTheme,
|
|
}}
|
|
>
|
|
<NextUIProvider>
|
|
<NextSeo
|
|
title={process.env.SITE_NAME}
|
|
description={process.env.SITE_DESCRIPTION}
|
|
openGraph={{
|
|
url: process.env.SITE_URL,
|
|
title: process.env.SITE_NAME,
|
|
description: process.env.SITE_DESCRIPTION,
|
|
site_name: process.env.SITE_NAME,
|
|
images: [
|
|
{
|
|
url: "https://cdn.fascinated.cc/fHknFPctAC.png?raw=true",
|
|
alt: "Site Example",
|
|
},
|
|
],
|
|
}}
|
|
twitter={{
|
|
cardType: "summary_large_image",
|
|
site: "@BeatSaber Overlay",
|
|
}}
|
|
/>
|
|
<Component {...pageProps} />
|
|
</NextUIProvider>
|
|
</NextThemesProvider>
|
|
);
|
|
}
|
|
|
|
export default MyApp;
|