settlekit/apps/docs/app/layout.tsx
pextacy bcd51b5829 feat(ui): "Statement" greenbar-ledger frontend redesign
Replace the dark blue→purple gradient SaaS look across all 7 apps with a
gradient-free settlement-ledger identity grounded in what SettleKit does:
reconcile money to the cent.

- Palette: greenbar ledger paper + ink, with accounting semantics
  (credit-green / debit-red / ink-blue seal). No gradients or glows.
- Type: Archivo (display/body) + IBM Plex Mono carrying every number,
  label and section reference; loaded via next/font in each app layout.
- Signature: apps/web hero is a live settlement statement — debit/credit
  line items printing in sequentially with a rotated "SETTLED" stamp.
- apps/web fully rebuilt (globals, layout, components, pages); dashboard,
  portal, marketplace, admin, checkout, docs rethemed by flipping :root
  token values (component JSX untouched); shared packages/ui/theme.css
  moved to the same system.

All 7 apps + @settlekit/ui build clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 22:35:42 +03:00

52 lines
1.4 KiB
TypeScript

/**
* Root layout for the SettleKit documentation site.
*
* Renders the persistent sidebar <Nav> alongside the routed page content. Every
* docs page is a server component that composes prose + <CodeBlock> samples.
*/
import type { Metadata } from "next";
import type { ReactNode } from "react";
import { Archivo, IBM_Plex_Mono } from "next/font/google";
import { Nav } from "../components/Nav";
import "./globals.css";
const archivo = Archivo({
subsets: ["latin"],
weight: ["400", "500", "600", "700", "800", "900"],
variable: "--font-archivo",
display: "swap",
});
const plexMono = IBM_Plex_Mono({
subsets: ["latin"],
weight: ["400", "500", "600", "700"],
variable: "--font-mono-plex",
display: "swap",
});
export const metadata: Metadata = {
title: {
default: "SettleKit Docs",
template: "%s — SettleKit Docs",
},
description:
"Developer documentation for SettleKit: sell software, APIs, and private repos in USDC. SDKs, webhooks, entitlements, and x402 middleware.",
};
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en" className={`${archivo.variable} ${plexMono.variable}`}>
<body>
<div className="layout">
<aside className="layout__sidebar">
<Nav />
</aside>
<main className="layout__main">
<div className="content">{children}</div>
</main>
</div>
</body>
</html>
);
}