From 8b0c83da67da810ae53e1dcbe5bdd98cc8d259da Mon Sep 17 00:00:00 2001 From: Anders Gustafsson <44322377+And-Gu@users.noreply.github.com> Date: Mon, 23 Nov 2026 22:55:17 +0100 Subject: [PATCH] Finish the homepage course directory and resource navigation --- site/src/components/CourseOverview.astro | 70 +++++++--- site/src/layouts/HomeLayout.astro | 7 +- site/src/pages/index.astro | 120 ++++++++++-------- .../v2/01-new-engineering-paradigm.astro | 2 +- 4 files changed, 122 insertions(+), 77 deletions(-) diff --git a/site/src/components/CourseOverview.astro b/site/src/components/CourseOverview.astro index 277b016..5191965 100644 --- a/site/src/components/CourseOverview.astro +++ b/site/src/components/CourseOverview.astro @@ -2,30 +2,60 @@ import { parts, v3Chapters } from "../data/v3-course"; ---
-

The course · {v3Chapters.length} chapters

-

Begin with the changing engineering paradigm, then follow one fictional traffic intersection from uncertain intent to an integrated product and the engineering capabilities needed to sustain it.

-

Every chapter includes a short knowledge check. Change one vehicle’s arrival in Chapter 5, then carry both queues into a second cycle in Chapter 6.

- {parts.map(part =>
+
+

The course · {v3Chapters.length} chapters

+ Start with Chapter 1 +
+

Begin with the changing engineering paradigm, then follow one fictional traffic intersection from uncertain intent to an integrated product and the engineering capabilities needed to sustain it.

+ {parts.map(part =>
{part.chapters[0].number === '10' && } {part.chapters[0].number === '12' && } -

{part.title}

-
    {part.chapters.map(chapter =>
)}
diff --git a/site/src/layouts/HomeLayout.astro b/site/src/layouts/HomeLayout.astro index d9d57d0..a345fc4 100644 --- a/site/src/layouts/HomeLayout.astro +++ b/site/src/layouts/HomeLayout.astro @@ -37,8 +37,8 @@ const isHome = path === base;
@@ -78,9 +78,10 @@ const isHome = path === base; nav { display: flex; flex-wrap: wrap; gap: .5rem 1.375rem; font: .6875rem/1.5 var(--home-mono); text-transform: uppercase; letter-spacing: .025rem; color: var(--home-muted); } nav a { padding-block: .25rem; } nav a[aria-current="page"] { color: var(--home-gold); text-decoration: underline; text-underline-offset: .4em; } - .site-footer { padding-block: 0 1.5rem; font-size: .6875rem; color: var(--home-muted); } + .site-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .75rem 1.5rem; padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--home-rule); font-size: .75rem; color: var(--home-muted); } .site-footer a { text-decoration: underline; text-underline-offset: .2em; } - .footer-author { margin-top: .625rem; } + .footer-author { margin: 0; } + .footer-return { font: .6875rem/1.5 var(--home-mono); } .skip { position: absolute; top: -5rem; left: 1rem; padding: .6rem 1rem; background: var(--home-panel); z-index: 1; } .skip:focus { top: .5rem; } @media (max-width: 500px) { diff --git a/site/src/pages/index.astro b/site/src/pages/index.astro index 499a1b7..92091b9 100644 --- a/site/src/pages/index.astro +++ b/site/src/pages/index.astro @@ -4,17 +4,11 @@ import HomeLayout from '../layouts/HomeLayout.astro'; import { chapters, chapterPreviews, v2Chapters } from '../data/chapters'; const base = import.meta.env.BASE_URL; -const featuredPaths: ReadonlySet = new Set([ - '04-executable-models', - '05-experimentation', - '07-agentic-engineering', - '09-continuous-engineering', -]); -const featuredChapters = chapters.filter(chapter => featuredPaths.has(chapter.path)); +const archivedPageCount = chapters.length + chapterPreviews.length + v2Chapters.length; ---
@@ -131,36 +125,41 @@ const featuredChapters = chapters.filter(chapter => featuredPaths.has(chapter.pa -
-

Earlier published lessons

-
- {chapterPreviews.map(chapter => ( -
-

V2 · Chapter {chapter.number} · Earlier preview

- Start with {chapter.title} -
- ))} -
    - {featuredChapters.map(chapter => ( -
  • {chapter.title}
  • - ))} +
    +
    +

    Go further

    +

    Explore the lab.

    +
    +
    + +
    +
    + Archive{' '}Earlier courses and experiments {archivedPageCount} pages +
    +

    Earlier previews and articles

    + +

    Original single-sensor course

    +
      + {chapters.map(chapter =>
    1. {chapter.title}
    2. )} +
    + Return to the current learning path +
    +
    +
    diff --git a/site/src/pages/learn/v2/01-new-engineering-paradigm.astro b/site/src/pages/learn/v2/01-new-engineering-paradigm.astro index 120ea2e..de8da8b 100644 --- a/site/src/pages/learn/v2/01-new-engineering-paradigm.astro +++ b/site/src/pages/learn/v2/01-new-engineering-paradigm.astro @@ -139,7 +139,7 @@ const base = import.meta.env.BASE_URL;