mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-19 08:28:10 +02:00
- AuthShell: dark two-column auth layout (brand/value panel with CSS-only waveform motif + proof points + Bland-style enterprise CTA block on the left, zinc-900 form card on the right; single-column on mobile). - AuthEnterpriseCTA: "Talk to our team" → dograh.com/contact?intent=enterprise. - stack-theme: dark StackTheme token overrides synced to globals.css. - page.tsx: wrap StackHandler (non-fullPage) in AuthShell + StackTheme; local-auth fallback preserved inside the shell. BackButton slimmed for the card. - Dark locked as default: <html className="dark">, next-themes ThemeProvider (defaultTheme="dark", enableSystem=false); inline no-FOUC script defaults dark. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
12 lines
544 B
TypeScript
12 lines
544 B
TypeScript
"use client";
|
|
|
|
// Thin wrapper around next-themes so the root (server) layout can mount a theme
|
|
// provider without pulling client-only code into the server module graph. Dark
|
|
// is the locked default; the system preference is intentionally not consulted.
|
|
|
|
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
import type { ComponentProps } from "react";
|
|
|
|
export function ThemeProvider({ children, ...props }: ComponentProps<typeof NextThemesProvider>) {
|
|
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
|
|
}
|