- Dark mode toggle (●/○) in desktop + mobile header nav - ThemeProvider wired in layout.tsx (class-based, light default) - Header scroll-glass uses CSS color-mix for dark-mode correctness - PortalShell main gets id="main-content" for skip-link target - Portal order table: copy order ID to clipboard with toast confirmation - Admin page: toast success/error on status advance - Skip-to-content link in layout.tsx (sr-only, visible on keyboard focus) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
39 lines
1.8 KiB
TypeScript
39 lines
1.8 KiB
TypeScript
import React from "react";
|
|
import type { Metadata } from "next";
|
|
import { Inter, JetBrains_Mono } from "next/font/google";
|
|
import { Analytics } from "@vercel/analytics/next";
|
|
import { Toaster } from "sonner";
|
|
import { LocaleProvider } from "@/components/locale-provider";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import "./globals.css";
|
|
|
|
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
|
|
const jetbrainsMono = JetBrains_Mono({ subsets: ["latin"], variable: "--font-jetbrains-mono" });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "0pt — your data",
|
|
description:
|
|
"Data services on demand for the Nordics & Europe. Provenance per field, GDPR-native. Compose your data job, pay 50% to start, watch production live, and validate the result with full transparency.",
|
|
generator: "0pt.app",
|
|
};
|
|
|
|
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
|
return (
|
|
<html lang="en">
|
|
<body className={`${inter.variable} ${jetbrainsMono.variable} font-sans antialiased`}>
|
|
<a
|
|
href="#main-content"
|
|
className="sr-only focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[100] focus:bg-foreground focus:px-4 focus:py-2 focus:font-mono focus:text-[11px] focus:uppercase focus:tracking-[0.12em] focus:text-background"
|
|
>
|
|
Skip to content
|
|
</a>
|
|
<ThemeProvider attribute="class" defaultTheme="light" enableSystem={false}>
|
|
<LocaleProvider>{children}</LocaleProvider>
|
|
</ThemeProvider>
|
|
<Toaster position="bottom-right" toastOptions={{ classNames: { toast: "font-mono text-xs tracking-[0.06em] rounded-none border border-border bg-background text-foreground", title: "font-mono", description: "font-mono text-muted-foreground" } }} />
|
|
<Analytics />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|