Skip to content

Create professional demos and 3D mockups in seconds, directly in your browser

feat: enhance LegalLayout with RecordingProvider and add auth callback route

CristianOlivera18346995945f7
diff --git a/app/[locale]/(legal)/layout.tsx b/app/[locale]/(legal)/layout.tsx
index ebecb0e..e1070f9 100644
--- a/app/[locale]/(legal)/layout.tsx
+++ b/app/[locale]/(legal)/layout.tsx
@@ -1,17 +1,20 @@
import Footer from "@/app/components/common/Footer";
import Header from "@/app/components/common/Header";
import { AuthProvider } from "@/hooks/useAuth";
+import { RecordingProvider } from "@/hooks/RecordingContext";
export default function LegalLayout({ children }: { children: React.ReactNode }) {
return (
<AuthProvider>
- <div className="min-h-screen flex flex-col bg-[#09090B]">
- <Header />
- <div className="grow pt-24 pb-16">
- {children}
+ <RecordingProvider>
+ <div className="min-h-screen flex flex-col bg-[#09090B]">
+ <Header />
+ <div className="grow pt-24 pb-16">
+ {children}
+ </div>
+ <Footer />
</div>
- <Footer />
- </div>
+ </RecordingProvider>
</AuthProvider>
);
}
diff --git a/app/auth/callback/route.ts b/app/[locale]/auth/callback/route.ts
similarity index 100%
rename from app/auth/callback/route.ts
rename to app/[locale]/auth/callback/route.ts
diff --git a/components/ui/GitHubStars.tsx b/components/ui/GitHubStars.tsx
index 568d011..7203140 100644
--- a/components/ui/GitHubStars.tsx
+++ b/components/ui/GitHubStars.tsx
@@ -23,7 +23,7 @@ export default function GitHubBadge() {
>
<Icon icon="mdi:github" width="28" height="28" />
- <div className="flex items-center gap-1 px-2 py-1 mt-1 text-xs rounded-md bg-gradient-to-r from-yellow-400 to-yellow-600 text-black font-semibold shadow-md">
+ <div className="flex items-center gap-1 px-2 py-1 mt-1 text-xs rounded-md bg-linear-to-r from-yellow-400 to-yellow-600 text-black font-semibold shadow-md tracking-tight">
<Icon icon="mdi:star" width="12" height="12" />
<span>{stars ?? "—"}</span>
</div>