This commit is contained in:
Noble
2025-01-21 13:50:35 +01:00
commit def75904dd
42 changed files with 11651 additions and 0 deletions

25
cansat/pages/_app.tsx Normal file
View File

@@ -0,0 +1,25 @@
import type { AppProps } from "next/app";
import { HeroUIProvider } from "@heroui/system";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { useRouter } from "next/router";
import { fontSans, fontMono } from "@/config/fonts";
import "@/styles/globals.css";
export default function App({ Component, pageProps }: AppProps) {
const router = useRouter();
return (
<HeroUIProvider navigate={router.push}>
<NextThemesProvider>
<Component {...pageProps} />
</NextThemesProvider>
</HeroUIProvider>
);
}
export const fonts = {
sans: fontSans.style.fontFamily,
mono: fontMono.style.fontFamily,
};