--- // Callout — gold-background emphasis block. Covers the two existing variants // the source uses: // • `variant="label"` (default) — 150px label + body. Matches `.callout`. // • `variant="split"` — 2 equal columns; the named `aside` slot fills the // right column. Matches the full-guide `.thesis` (where the right side // holds a "signal" visualisation). // // Background is always `var(--gold)`. The label uses the Eyebrow treatment. // The body slot expects a `` for the `clamp(22px, 3vw, 36px)` // emphasis; without one, the body falls back to inherited body type. interface Props { /** Short uppercase label, same treatment as Eyebrow. */ label: string; /** Colour tone for the label. */ tone?: 'accent' | 'gold' | 'red'; /** Layout variant. Defaults to the label+body `.callout` shape. */ variant?: 'label' | 'split'; } const { label, tone = 'accent', variant = 'label' } = Astro.props; ---
{label}
{ variant === 'split' && (
) }