Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 50 additions & 20 deletions site/src/components/CourseOverview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,60 @@
import { parts, v3Chapters } from "../data/v3-course";
---
<section class="course-overview" aria-labelledby="current-course-title">
<h2 id="current-course-title">The course · {v3Chapters.length} chapters</h2>
<p>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.</p>
<p class="course-status">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.</p>
{parts.map(part => <section class="course-part" id={`part-${Number(part.chapters[0].number)}`}>
<header class="overview-heading">
<h2 id="current-course-title">The course <span>· {v3Chapters.length} chapters</span></h2>
<a class="course-start" href={v3Chapters[0].url}>Start with Chapter 1 <span aria-hidden="true">→</span></a>
</header>
<p class="course-intro">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.</p>
{parts.map(part => <section class="course-part" id={`part-${Number(part.chapters[0].number)}`} aria-labelledby={`course-part-${part.chapters[0].number}-title`}>
{part.chapters[0].number === '10' && <span id="part-8" aria-hidden="true"></span>}
{part.chapters[0].number === '12' && <span id="part-11" aria-hidden="true"></span>}
<h3>{part.title}</h3>
<ol start={Number(part.chapters[0].number)}>{part.chapters.map(chapter => <li><article>
<p class="chapter-number">Chapter {chapter.number}</p>
<h4><a href={chapter.url}>{chapter.title}</a></h4><p>{chapter.summary}</p>
<a class="manuscript-link" href={chapter.url}>Read chapter →</a>
<header class="part-heading">
<h3 id={`course-part-${part.chapters[0].number}-title`}><span class="part-number">Part {part.title.split(' — ')[0]}</span>{' '}{part.title.split(' — ')[1]}</h3>
<p class="part-range">Chapters {part.chapters[0].number}–{part.chapters.at(-1)!.number}</p>
</header>
<ol start={Number(part.chapters[0].number)}>{part.chapters.map(chapter => <li><article class="chapter-card">
<a class="chapter-link" href={chapter.url} aria-labelledby={`course-chapter-${chapter.number}-title`} aria-describedby={`course-chapter-${chapter.number}-summary`}>
<p class="chapter-number">Chapter {chapter.number}</p>
<h4 id={`course-chapter-${chapter.number}-title`}>{chapter.title}</h4>
<p class="chapter-summary" id={`course-chapter-${chapter.number}-summary`}>{chapter.summary}</p>
<span class="chapter-action" aria-hidden="true">Read chapter <span>→</span></span>
</a>
</article></li>)}</ol>
</section>)}
</section>
<style>
.course-overview{margin:3rem 0;color:inherit}
.course-overview>p{max-width:75ch}
.course-status{border-left:3px solid currentColor;padding-left:1rem;font-size:.9rem;opacity:.85}
.course-part{margin:2rem 0}
.course-part ol{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem;padding:0}
.course-part li{border:1px solid color-mix(in srgb,currentColor 35%,transparent);border-radius:.5rem;padding:1.2rem}
h4{font-size:1.1rem;line-height:1.4;margin:.5rem 0}
a{color:inherit;text-underline-offset:.2em}
a:focus-visible{outline:3px solid currentColor;outline-offset:4px}
.chapter-number,.manuscript-link{font-size:.8rem}
article>p{line-height:1.6}
.course-overview { margin-block: 2rem 3rem; padding-top: 2rem; border-top: 1px solid var(--home-rule); color: var(--home-text); }
.overview-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; }
.overview-heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.75rem); line-height: 1.25; letter-spacing: -.035em; font-weight: 500; }
.overview-heading h2 span { color: var(--home-gold); }
.course-start { color: var(--home-teal); font: .75rem/1.5 var(--home-mono); text-underline-offset: .3em; }
.course-start:hover { color: var(--home-gold); }
.course-intro { max-width: 75ch; margin: 1rem 0 0; color: var(--home-muted); font-size: .9375rem; line-height: 1.75; }
.course-part { margin-top: 2rem; scroll-margin-top: 1.5rem; }
.part-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; padding-bottom: .875rem; border-bottom: 1px solid var(--home-rule); }
.part-heading h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; font-size: 1.125rem; line-height: 1.4; font-weight: 500; letter-spacing: -.02em; }
.part-number { color: var(--home-gold); font: .6875rem/1.6 var(--home-mono); letter-spacing: .04em; text-transform: uppercase; }
.part-range { margin: 0; color: var(--home-muted); font: .6875rem/1.6 var(--home-mono); }
.course-part ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0; padding: 0; }
.course-part li { min-width: 0; }
.chapter-card { height: 100%; }
.chapter-link { display: flex; flex-direction: column; height: 100%; padding: 1.25rem; border: 1px solid var(--home-rule); background: var(--home-panel); color: var(--home-text); text-decoration: none; }
.chapter-link:hover { border-color: var(--home-teal); text-decoration: none; }
.chapter-link:hover h4 { color: var(--home-gold); }
.chapter-link:focus-visible, .course-start:focus-visible { outline: 2px solid var(--home-gold); outline-offset: 4px; }
.chapter-number { margin: 0; color: var(--home-teal); font: .6875rem/1.6 var(--home-mono); letter-spacing: .04em; text-transform: uppercase; }
.chapter-link h4 { margin: .625rem 0 .75rem; color: var(--home-text); font-size: 1.0625rem; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.chapter-summary { margin: 0; color: var(--home-muted); font-size: .875rem; line-height: 1.7; }
.chapter-action { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.125rem; color: var(--home-teal); font: .6875rem/1.5 var(--home-mono); }
.chapter-action > span { font-size: 1rem; line-height: 1; }
@media (max-width: 900px) {
.course-part ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
.course-overview { padding-top: 1.5rem; }
.course-part ol { grid-template-columns: 1fr; }
.chapter-summary { font-size: .9375rem; }
.part-heading h3 { flex-basis: 100%; }
}
</style>
7 changes: 4 additions & 3 deletions site/src/layouts/HomeLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const isHome = path === base;
</header>
<main class="home-shell" id="main" tabindex="-1"><slot /></main>
<footer class="home-shell site-footer">
{isHome ? <span>The AI-assisted workflow above is conceptual. <a href={`${base}lab/`}>The working lab</a> is a single-sensor teaching model; broader demonstrations are in development.</span> : <a href={base}>Executable Engineering Lab</a>}
<p class="footer-author"><AuthorAttribution /></p>
<a class="footer-return" href={isHome ? '#main' : base}>{isHome ? 'Back to top' : 'Executable Engineering Lab'} <span aria-hidden="true">↑</span></a>
</footer>
</body>
</html>
Expand Down Expand Up @@ -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) {
Expand Down
120 changes: 67 additions & 53 deletions site/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> = 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;
---

<HomeLayout
title="The New Engineering Paradigm · Executable Engineering Lab"
title="The New Engineering Paradigm"
description="Why engineering is changing: higher expectations, shorter feedback cycles, software-inspired workflows and AI-assisted engineering across disciplines."
>
<section class="opening" aria-labelledby="page-title">
Expand Down Expand Up @@ -131,36 +125,41 @@ const featuredChapters = chapters.filter(chapter => featuredPaths.has(chapter.pa

<CourseOverview />

<section class="reading" aria-labelledby="reading-title">
<h2 id="reading-title">Earlier published lessons</h2>
<div class="reading-content">
{chapterPreviews.map(chapter => (
<div class="chapter-preview">
<p class="label">V2 · Chapter {chapter.number} · Earlier preview</p>
<a href={`${base}learn/${chapter.path}/`}>Start with {chapter.title} <span aria-hidden="true">→</span></a>
</div>
))}
<ul class="reading-routes">
{featuredChapters.map(chapter => (
<li><a href={`${base}learn/${chapter.path}/`}>{chapter.title} <span aria-hidden="true">↗</span></a></li>
))}
<section class="more-reading" aria-labelledby="resources-title">
<header>
<p class="label">Go further</p>
<h2 id="resources-title">Explore the lab.</h2>
</header>
<div class="resource-links">
<article class="companion-reading">
<p class="label">Bonus reading</p>
<h3><a href={`${base}bonus/building-the-machine-that-builds-the-machine/`}>Building the Machine That Builds the Machine <span aria-hidden="true">→</span></a></h3>
<p>When does it pay to invest in the environment you use to engineer a product? Follow the decision from a small documentation project to an engineering team.</p>
</article>
<ul class="resource-routes">
<li><a href={`${base}lab/`}><span class="label">Lab</span><span class="resource-title">Try the coverage model <span aria-hidden="true">→</span></span><span class="resource-description">Move the sensor or change its radius, then compare the calculated coverage.</span></a></li>
<li><a href={`${base}reference/`}><span class="label">Reference</span><span class="resource-title">Explore the engineering sources <span aria-hidden="true">→</span></span><span class="resource-description">Find definitions, model assumptions and the evidence behind the examples.</span></a></li>
</ul>
<details class="course-directory" id="published-lessons">
<summary>All published lessons</summary>
<div class="directory-content">
<h3 id="published-v2">Published v2 articles</h3>
<ul class="article-list">
{v2Chapters.map(chapter => <li><a href={`${base}learn/${chapter.path}/`}>{chapter.title}</a></li>)}
</ul>
<h3>Original course</h3>
<ol id="learning-path" class="lesson-list">
{chapters.map(chapter => <li><a href={`${base}learn/${chapter.path}/`}>{chapter.title}</a></li>)}
</ol>
<a class="learning-path-link" href={`${base}learn/`}>Explore the full learning path <span aria-hidden="true">→</span></a>
</div>
</details>
</div>
</section>

<section class="archive" aria-labelledby="reading-title">
<details class="course-directory" id="published-lessons">
<summary id="reading-title"><span class="label">Archive</span>{' '}Earlier courses and experiments <span class="archive-count">{archivedPageCount} pages</span></summary>
<div class="directory-content">
<h3 id="published-v2">Earlier previews and articles</h3>
<ul class="article-list">
{chapterPreviews.map(chapter => <li><a href={`${base}learn/${chapter.path}/`}>{chapter.title} <span class="archive-kind">V2 reader preview</span></a></li>)}
{v2Chapters.map(chapter => <li><a href={`${base}learn/${chapter.path}/`}>{chapter.title} <span class="archive-kind">V2 article</span></a></li>)}
</ul>
<h3>Original single-sensor course</h3>
<ol id="learning-path" class="lesson-list">
{chapters.map(chapter => <li><a href={`${base}learn/${chapter.path}/`}>{chapter.title}</a></li>)}
</ol>
<a class="learning-path-link" href={`${base}learn/`}>Return to the current learning path <span aria-hidden="true">→</span></a>
</div>
</details>
</section>
</HomeLayout>

<style>
Expand Down Expand Up @@ -229,21 +228,35 @@ const featuredChapters = chapters.filter(chapter => featuredPaths.has(chapter.pa
.note-number { letter-spacing: .025rem; margin-bottom: .75rem; }
.note h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -.0375rem; }
.note > p:last-child { font-size: .8125rem; line-height: 1.75; color: var(--home-muted); margin-top: .9375rem; }
.reading { display: grid; grid-template-columns: 1fr 2.1fr; gap: 1.5625rem; padding-block: 1.5625rem 1.75rem; border-top: 1px solid var(--home-rule); }
.reading h2 { font-size: 1.3125rem; line-height: 1.35; font-weight: 600; letter-spacing: -.025rem; }
.chapter-preview { padding-bottom: 1.125rem; margin-bottom: 1.125rem; border-bottom: 1px solid var(--home-rule); }
.chapter-preview .label { color: var(--home-teal); margin-bottom: .375rem; }
.chapter-preview a { display: inline-block; padding-block: .25rem; font-size: .9375rem; line-height: 1.5; }
.reading-routes { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.375rem; font-size: .75rem; list-style: none; margin: 0; padding: 0; }
.reading-routes a { display: block; border-bottom: 1px solid var(--home-rule); padding-bottom: .5625rem; }
.course-directory { margin-top: 1.125rem; color: var(--home-muted); font-size: .75rem; }
summary { cursor: pointer; width: fit-content; padding-block: .375rem; }
summary:hover { color: var(--home-gold); }
.directory-content { margin-top: 1rem; padding: 1rem 1.125rem; border: 1px solid var(--home-rule); }
.directory-content h3 { font-size: .8125rem; color: var(--home-text); }
.article-list, .lesson-list { padding-left: 1.375rem; margin-block: .625rem 1.25rem; }
.directory-content li { padding-block: .25rem; }
.learning-path-link { color: var(--home-gold); }
.more-reading { display: grid; grid-template-columns: 1fr 2.1fr; gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--home-rule); }
.more-reading > header > .label { color: var(--home-teal); margin-bottom: .625rem; }
.more-reading h2 { font-size: 1.75rem; line-height: 1.25; font-weight: 500; letter-spacing: -.035em; }
.companion-reading { padding-left: 1.25rem; border-left: 2px solid var(--home-gold); }
.companion-reading > .label { color: var(--home-gold); }
.companion-reading h3 { margin-top: .5rem; font-size: 1.1875rem; line-height: 1.45; font-weight: 500; letter-spacing: -.02em; }
.companion-reading h3 a > span { color: var(--home-gold); }
.companion-reading > p:last-child { margin-top: .75rem; color: var(--home-muted); font-size: .875rem; line-height: 1.75; }
.resource-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.resource-routes a { display: flex; flex-direction: column; height: 100%; border-top: 1px solid var(--home-rule); padding-block: 1rem .5rem; text-decoration: none; }
.resource-routes .label { color: var(--home-teal); }
.resource-title { margin-top: .5rem; font-size: .9375rem; line-height: 1.5; }
.resource-title > span { color: var(--home-teal); }
.resource-description { margin-top: .5rem; color: var(--home-muted); font-size: .8125rem; line-height: 1.7; }
.resource-routes a:hover .resource-title { color: var(--home-gold); text-decoration: underline; text-underline-offset: .3em; }
.archive { border-top: 1px solid var(--home-rule); padding-block: 1.25rem; }
.course-directory { color: var(--home-muted); font-size: .875rem; }
.course-directory summary { cursor: pointer; width: fit-content; padding-block: .5rem; color: var(--home-text); }
.course-directory summary:hover { color: var(--home-gold); }
.course-directory summary > .label { color: var(--home-teal); margin-inline: .5rem .75rem; }
.archive-count { color: var(--home-muted); margin-left: .75rem; font: .6875rem/1.5 var(--home-mono); white-space: nowrap; }
.directory-content { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--home-rule); background: var(--home-panel); }
.directory-content h3 { font-size: 1rem; font-weight: 500; color: var(--home-text); }
.article-list, .lesson-list { padding-left: 1.375rem; margin-block: .75rem 1.5rem; }
.lesson-list { columns: 2 16rem; column-gap: 2rem; }
.directory-content li { padding-block: .3rem; break-inside: avoid; }
.directory-content li a { text-decoration: underline; text-underline-offset: .25em; }
.archive-kind { display: inline-block; color: var(--home-muted); margin-left: .5rem; font: .6875rem/1.5 var(--home-mono); }
.learning-path-link { color: var(--home-teal); }

@media (max-width: 900px) {
.opening { grid-template-columns: 1fr; gap: 1.625rem; }
Expand All @@ -268,7 +281,7 @@ const featuredChapters = chapters.filter(chapter => featuredPaths.has(chapter.pa
.note-number { grid-column: 1; margin-bottom: 0; }
.note h2 { grid-column: 1; }
.note > p:last-child { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
.reading { grid-template-columns: 1fr 2fr; }
.more-reading { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 500px) {
.opening { padding-block: 2rem; }
Expand All @@ -282,9 +295,10 @@ const featuredChapters = chapters.filter(chapter => featuredPaths.has(chapter.pa
.approach { padding-top: 1.5rem; }
.example { padding: 1.25rem 1.125rem; }
figcaption { text-align: left; font-size: .8125rem; }
.note, .reading { display: block; }
.note { display: block; }
.note-number { margin-bottom: .75rem; }
.note > p:last-child { margin-top: .9375rem; }
.reading-routes { grid-template-columns: 1fr; margin-top: 1.25rem; }
.resource-routes { grid-template-columns: 1fr; gap: 1rem; }
.archive-count { display: block; margin: .5rem 0 0 1.5rem; }
}
</style>
2 changes: 1 addition & 1 deletion site/src/pages/learn/v2/01-new-engineering-paradigm.astro
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const base = import.meta.env.BASE_URL;
</div>
<nav class="chapter-next" aria-label="Chapter navigation">
<div><small>START HERE</small><a href={base}>← The site’s central idea</a></div>
<div><small>NEXT · CHAPTER 02 IS PLANNED</small><a href={`${base}learn/#part-1`}>Planning Under Uncertainty →</a></div>
<div><small>EXPLORE THE CURRENT COURSE</small><a href={`${base}learn/#part-1`}>Current learning path →</a></div>
</nav>
</article>
</ChapterLayout>
Loading