diff --git a/site/build.py b/site/build.py index a0c034e..16d5e8b 100644 --- a/site/build.py +++ b/site/build.py @@ -98,7 +98,8 @@ STATIC_SKIP = ("*.md", ".DS_Store") # The assets a template links directly, and the placeholder each one is # offered under. See stamp() for why they carry a query string. -STAMPED = {"stylesheet": "static/site.css", "icon": "static/favicon.svg"} +STAMPED = {"stylesheet": "static/site.css", "icon": "static/favicon.svg", + "board_shot": "static/board.png"} ATX = re.compile(r"^(#{1,6})[ \t]+(.*?)[ \t]*#*[ \t]*$") FENCE = re.compile(r"^ {0,3}(`{3,}|~{3,})") @@ -602,6 +603,7 @@ def render_page(page: dict, manifest: dict, *, site: Path, repo: Path, fields = { "stylesheet": stamps["stylesheet"], "icon": stamps["icon"], + "board_shot": stamps["board_shot"], "title": escape(page["title"]), "description": escape(page.get("description") or config.get("description", "")), diff --git a/site/static/board.png b/site/static/board.png new file mode 100644 index 0000000..b01af74 Binary files /dev/null and b/site/static/board.png differ diff --git a/site/static/site.css b/site/static/site.css index c24f36f..bd54102 100644 --- a/site/static/site.css +++ b/site/static/site.css @@ -66,6 +66,9 @@ a:hover{color:var(--text);text-decoration:underline} .dim{color:var(--dim)} .spacer{flex:1} .rule{height:1px;background:var(--border-soft);margin:12px 0} +/* No image, anywhere, may widen the page. .prose img keeps its own + rule for the article body; this is the floor under every layout. */ +img{max-width:100%;height:auto} @media (prefers-reduced-motion: reduce){ *,*::before,*::after{animation:none !important;transition:none !important} } @@ -305,6 +308,24 @@ a:hover{color:var(--text);text-decoration:underline} .t-muted{color:var(--ink-muted)} .t-dim{color:var(--ink-dim)} +/* The board itself, directly under the hero — the claim the copy makes, + shown rather than described. Sized so its top edge clears the fold on + a laptop, which is what the shortened terminal above it buys. */ +.shot{margin:0;padding:0 44px 30px} +.shot-img{ + display:block;width:100%;height:auto; + border:1px solid var(--border);border-radius:12px; + box-shadow:var(--shadow);background:var(--ink); +} +.shot-cap{ + display:flex;gap:12px;align-items:baseline;padding:10px 2px 0; + font-size:var(--t-ui);line-height:1.55;color:var(--muted); +} +.shot-tag{ + flex:0 0 auto;font-size:var(--t-micro);letter-spacing:.1em; + text-transform:uppercase;color:var(--dim); +} + /* The three sentences between the hero and the doors. Quiet on purpose: no cards, no borders, no colour — the doors below are the page's one grid of boxes, and repeating that shape here would make the reader @@ -446,6 +467,7 @@ a:hover{color:var(--text);text-decoration:underline} .snags{padding:8px 24px 26px} .snag-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px} .strip{padding:18px 24px} + .shot{padding:0 24px 26px} /* Only a code block or a table may scroll sideways, so a token that cannot break — a url, a curl one-liner in running text — breaks @@ -532,6 +554,8 @@ a:hover{color:var(--text);text-decoration:underline} .doors{padding:0 16px 24px} .snags{padding:8px 16px 22px} .strip{padding:16px} + .shot{padding:0 16px 22px} + .shot-cap{flex-direction:column;gap:4px} .page-article .prose{padding:20px 16px 32px} .menu-summary{padding:9px 14px} .footer{padding:18px 14px} diff --git a/site/templates/home.html b/site/templates/home.html index 6451630..18cd618 100644 --- a/site/templates/home.html +++ b/site/templates/home.html @@ -89,23 +89,33 @@ $nav
$install_block -No .task-manager/manager/local/.env yet — a few questions and bench writes one. -Enter takes the default in [brackets]; Ctrl-D skips the rest. - solo or team? [solo]: which agent adapter? [claude]: what command runs this project's tests? [python3 -m unittest]: -Wrote .task-manager/manager/local/.env — every other setting is in there, commented; edit it any time. - … Task board for ~/your-repo/.task-manager/tasks - http://127.0.0.1:26071/ - Ctrl-C to stop+ http://127.0.0.1:26071/ + +