sovereign-intelligence
Front door to Drake Stapleton's sovereign stack.
Brought by drakestapleton
sovereign-intelligence / docs / archive / drakestapleton.com-old / src / components / PagePrimitives.tsx
| 1 | import type { ReactNode } from "react"; |
| 2 | |
| 3 | type ChapterLink = { href: string; number: string; label: string }; |
| 4 | |
| 5 | export function PageIntro({ |
| 6 | eyebrow, |
| 7 | title, |
| 8 | children, |
| 9 | className = "", |
| 10 | }: { |
| 11 | eyebrow: string; |
| 12 | title: ReactNode; |
| 13 | children: ReactNode; |
| 14 | className?: string; |
| 15 | }) { |
| 16 | return ( |
| 17 | <header className={`page-intro ${className}`.trim()}> |
| 18 | <p className="kicker">{eyebrow}</p> |
| 19 | <h1>{title}</h1> |
| 20 | <div className="portrait-deck">{children}</div> |
| 21 | </header> |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | export function ChapterNav({ links }: { links: ChapterLink[] }) { |
| 26 | return ( |
| 27 | <nav className="chapter-nav" aria-label="On this page"> |
| 28 | {links.map((link) => ( |
| 29 | <a href={link.href} key={link.href}> |
| 30 | <span>{link.number}</span> |
| 31 | {link.label} |
| 32 | </a> |
| 33 | ))} |
| 34 | </nav> |
| 35 | ); |
| 36 | } |
| 37 | |
| 38 | export function EvidenceNotice() { |
| 39 | return ( |
| 40 | <aside className="evidence-notice" role="note"> |
| 41 | <strong>Figures under regeneration.</strong> AIEN adopted a stricter publication rule on 23 September 2026: every |
| 42 | headline number must resolve to a reproducible command and an evidence artifact bundle. The performance figures |
| 43 | on this page predate that rule and are being regenerated. Current status lives in the{" "} |
| 44 | <a href="https://github.com/aien-dev/aien-sovereign-core#measured-results">aien-sovereign-core Measured Results</a>{" "} |
| 45 | section. |
| 46 | </aside> |
| 47 | ); |
| 48 | } |
| 49 | |
| 50 | export function SectionLead({ |
| 51 | eyebrow, |
| 52 | title, |
| 53 | titleId, |
| 54 | children, |
| 55 | }: { |
| 56 | eyebrow: string; |
| 57 | title: ReactNode; |
| 58 | titleId?: string; |
| 59 | children?: ReactNode; |
| 60 | }) { |
| 61 | return ( |
| 62 | <header className="section-lead"> |
| 63 | <p className="portrait-index">{eyebrow}</p> |
| 64 | <div> |
| 65 | <h2 id={titleId}>{title}</h2> |
| 66 | {children} |
| 67 | </div> |
| 68 | </header> |
| 69 | ); |
| 70 | } |