--- // RouteCard — one chapter card in the landing page's six-up route grid. // // Markup mirrors `index.html`'s `
` block: // {number}

{title}

{summary}

// The `route-grid` wrapper in landing.css used to push each card's link to the // bottom with `display:flex; flex-direction:column; margin-top:auto` on the // anchor. That responsibility lives on the card itself now, so the card is // self-contained — drop it into any gap:1px group and it lays out the same way. // // Built from `.agents/templates/components/static-block.astro` per task 08 of // the Astro refactor. Steps on: // - number — the "01" … "06" prefix // - title — the chapter name (h2) // - summary — the lede line under the title // - href — link target for the chapter // - cta — link text (the index page varies this: "Open chapter →", // "Open lab →", "Open desk →"). Defaults to "Open chapter →". interface Props { /** Two-digit prefix rendered in the chapter surface red, e.g. "01". */ number: string; /** Chapter name shown as the card's h2. */ title: string; /** One-line summary under the title. */ summary: string; /** Link target for the chapter. */ href: string; /** Link text. Varies per destination in the current landing page. */ cta?: string; } const { number, title, summary, href, cta = 'Open chapter →' } = Astro.props; ---
{number}

{title}

{summary}

{cta}