- toast.success/error on order creation (bestall/page.tsx) - toast.success/error on order approval (validera/page.tsx) + fix silent success even when API failed (was always setting approved=true) - toast.success/error on subscription creation (portal/subscriptions) - toast.success/error on admin status advance (admin/page.tsx) - toast.success on production page when Stripe redirects back with ?deposit=success - layout.tsx: skip-to-main-content link (sr-only, visible on focus) - app/page.tsx: id="main-content" anchor for skip link Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
1.6 KiB
TypeScript
36 lines
1.6 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 "./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>
|
|
<LocaleProvider>{children}</LocaleProvider>
|
|
<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>
|
|
);
|
|
}
|