1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-05 19:15:30 -04:00

Add @bprogress/next dependency and update layout to use Providers component

This commit is contained in:
2025-09-02 19:00:19 -04:00
parent 6a0ff897da
commit 20d8aad41f
4 changed files with 62 additions and 6 deletions
+5 -6
View File
@@ -1,6 +1,6 @@
import { env } from "@/lib/env";
import { JsonLd } from "react-schemaorg";
import { ThemeProvider } from "@/components/theme/theme-context";
import Providers from "@/components/providers";
import { ThemeScript } from "@/components/theme/theme-script";
import Header from "@/components/layout/header";
import Footer from "@/components/layout/footer";
@@ -64,8 +64,8 @@ const RootLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
</head>
<body className="bg-background text-foreground font-sans antialiased">
<ThemeProvider>
<div className="mx-auto w-full max-w-4xl px-5">
<Providers>
<div className="mx-auto w-full max-w-4xl px-5 py-1">
<Header className="mt-4 mb-6 w-full" />
<main>{children}</main>
@@ -74,9 +74,8 @@ const RootLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
</div>
<Toaster position="bottom-center" hotkey={[]} />
</ThemeProvider>
<Analytics />
<Analytics />
</Providers>
</body>
</html>
);