From d8d7257d352d0468d22d3077a76b15c212496c60 Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Sun, 13 Sep 2026 13:14:40 +0200 Subject: [PATCH] Website: underline the demo-note link, 480 px WebP variant for phones, ?v=19 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lighthouse desktop flagged the one in-text link that relied on colour alone; the hero and rail images gain a 480w candidate so a 2× phone no longer downloads the 600w file. --- scripts/build-api-docs.mjs | 4 ++-- website/README.md | 2 +- website/about.html | 4 ++-- website/api.html | 4 ++-- website/build-images.sh | 4 ++-- website/docs.html | 4 ++-- website/index.html | 18 +++++++++--------- website/styles.css | 2 ++ 8 files changed, 22 insertions(+), 20 deletions(-) diff --git a/scripts/build-api-docs.mjs b/scripts/build-api-docs.mjs index 7e203e3..b397b83 100644 --- a/scripts/build-api-docs.mjs +++ b/scripts/build-api-docs.mjs @@ -485,7 +485,7 @@ const html = ` - + @@ -615,7 +615,7 @@ ${schemaCards} - + diff --git a/website/README.md b/website/README.md index 0ce4036..55d8eaa 100644 --- a/website/README.md +++ b/website/README.md @@ -6,7 +6,7 @@ served by nginx. Not in this folder (added at deploy time): - `img/` — built by `build-images.sh /img`: the five screenshots from - `../assets/screenshots/` as PNG plus WebP at 600/1170 px (served through ``), + `../assets/screenshots/` as PNG plus WebP at 480/600/1170 px (served through ``), `banner.png`, and `social.jpg` (1200×630, the og:image on every page) - `icon-180.png` / `icon-512.png` — copied from `../frontend/public/` (the same icons the PWA uses, so the browser tab, home screen and app all match) diff --git a/website/about.html b/website/about.html index 03a12fe..80685b3 100644 --- a/website/about.html +++ b/website/about.html @@ -24,7 +24,7 @@ - + @@ -172,6 +172,6 @@ - + diff --git a/website/api.html b/website/api.html index 6f54bfb..9c56ab6 100644 --- a/website/api.html +++ b/website/api.html @@ -27,7 +27,7 @@ - + @@ -2278,7 +2278,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon - + @@ -959,6 +959,6 @@ Leg Day,Leg Press,2026-08-21,200,1 - + diff --git a/website/index.html b/website/index.html index 80519f5..18841bf 100644 --- a/website/index.html +++ b/website/index.html @@ -25,8 +25,8 @@ - - + + + diff --git a/website/styles.css b/website/styles.css index 5995602..cf5a925 100644 --- a/website/styles.css +++ b/website/styles.css @@ -800,6 +800,8 @@ table.cfg td:first-child { white-space: nowrap; width: 1%; padding-right: 26px; font-weight: 700; text-decoration: none; } .skip:focus { top: 16px; outline: 2px solid var(--fg); outline-offset: 2px; } +/* In-text links must not rely on colour alone (WCAG 1.4.1). */ +.demo-note a { text-decoration: underline; text-underline-offset: 3px; } /* ------------------------------------------------------------- scroll reveal Only armed when JS is running, so the page is fully visible without it. */