---
interface Stat {
label: string;
value: string | number;
/** Paint the value in the banner's accent — one per banner, the number
* worth reading first. */
accent?: boolean;
}
interface Props {
/** Mono lockup before the rule, e.g. `03 ^: ACTIVE DIRECTORY`. */
n: string;
label: string;
title: string;
blurb?: string;
stats?: Stat[];
accent?: 'iris' | 'foam' | 'love' | 'gold' | 'rose' | 'pine';
}
const { n, label, title, blurb, stats = [], accent = 'foam' } = Astro.props;
/**
* The page header every route below the home page lands on: dark plate,
* the home hero's contour field, left scrim, and a ledger on the right.
*
* Legibility on the plate is carried by two layers, not one — the field
* draws no line inside the title block (as far as its words reach) or
* the ledger (each is marked `data-contour-clear`), AND the scrim
* gradient sits over the field and under the content.
*/
---
{n}
^:
{label}
{title}
{blurb &&
{blurb}
}
{stats.length > 0 && (
{stats.map((s) => (
- {s.label}
- {s.value}
))}
)}