This repository has been archived on 2023-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
beatsaber-overlay/pages/_app.js

60 lines
1.3 KiB
JavaScript
Raw Normal View History

2022-10-19 18:51:23 +00:00
import { createTheme, NextUIProvider } from "@nextui-org/react";
2022-10-21 09:56:50 +00:00
import { DefaultSeo } 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 "../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-21 09:56:50 +00:00
<>
<DefaultSeo
titleTemplate={`${process.env.NEXT_PUBLIC_SITE_NAME} | %s`}
description={process.env.NEXT_PUBLIC_SITE_DESCRIPTION}
openGraph={{
url: process.env.NEXT_PUBLIC_SITE_URL,
title: process.env.NEXT_PUBLIC_SITE_NAME,
description: process.env.NEXT_PUBLIC_SITE_DESCRIPTION,
site_name: process.env.NEXT_PUBLIC_SITE_NAME,
images: [
{
url: "https://cdn.fascinated.cc/fHknFPctAC.png?raw=true",
alt: "Site Example",
},
],
}}
twitter={{
cardType: "summary_large_image",
site: "@BeatSaber Overlay",
}}
/>
<NextThemesProvider
storageKey="theme"
attribute="class"
value={{
dark: darkTheme,
light: lightTheme,
}}
>
<NextUIProvider>
<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;