Website: v1.3.7 screenshots, WebP delivery, social card, skip link, idle API lookups

- Screenshots retaken from the v1.3.7 demo build (the old set still showed the
  pre-1.3.3 workout screen with its button rows). The five phone images are now
  served through <picture> as WebP at 600/1170 px with the PNG as fallback; the
  hero image is preloaded. website/build-images.sh produces img/ from assets/.
- og:image on every page is a 1200×630 card (assets/social.jpg) with width,
  height and alt; robots meta with max-image-preview:large; preconnect to the
  analytics host; SoftwareApplication JSON-LD carries version, dates,
  screenshots and a feature list.
- Every page starts with a Skip-to-content link and the content sits in
  <main id="main">; scroll reveals are also disabled for print.
- The GitHub and Discord counters wait for requestIdleCallback instead of
  racing the hero image. Cache-bust ?v=18. llms.txt names GitHub as the home.
- robots.txt, sitemap.xml and llms.txt now live in website/ so the site is
  fully regenerable from the repo.
This commit is contained in:
Duarte Santos committed 2026-09-13 13:13:02 +02:00
1 parent d7f0f0dbdb
commit 975c9f440b
18 files changed
+164 -44

No files matched your search

+13 -4
View File
@@ -392,7 +392,7 @@ body.menu-open::after, body.contents-open::after { opacity: 1; pointer-events: a
position: relative;
padding-bottom: 0; border-radius: 42px 42px 0 0;
}
.hero-stage .device > img {
.hero-stage .device > img, .hero-stage .device > picture > img {
height: clamp(300px, 44vh, 500px);
object-fit: cover; object-position: top center;
border-radius: 34px 34px 0 0;
@@ -412,7 +412,7 @@ body.menu-open::after, body.contents-open::after { opacity: 1; pointer-events: a
box-shadow: 0 40px 90px -28px rgba(0, 0, 0, .95),
inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.device > img, .device > iframe, .device > .device-slot {
.device > img, .device > picture > img, .device > iframe, .device > .device-slot {
width: 100%; border: 0; border-radius: 34px; background: #000; display: block;
}
@@ -500,7 +500,7 @@ section { padding: var(--sec) 0 0; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 auto; width: clamp(200px, 56vw, 250px); scroll-snap-align: center; }
.rail .device { padding: 7px; border-radius: 34px; }
.rail .device > img { border-radius: 27px; }
.rail .device > img, .rail .device > picture > img { border-radius: 27px; }
.rail figcaption {
color: var(--fg-3); font-size: 13.5px; text-align: center; margin-top: 12px;
letter-spacing: 0;
@@ -792,6 +792,15 @@ table.cfg td:first-child { white-space: nowrap; width: 1%; padding-right: 26px;
.tl .when { display: block; color: var(--fg-3); font-size: 13.5px; margin-top: 2px; }
.tl p { margin-top: 6px; font-size: 15.5px; }
/* ------------------------------------------------------------------ skip link
First tab stop on every page; invisible until focused. */
.skip {
position: absolute; left: 16px; top: -100px; z-index: 100;
background: var(--acc); color: var(--acc-ink); padding: 10px 16px; border-radius: 999px;
font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; outline: 2px solid var(--fg); outline-offset: 2px; }
/* ------------------------------------------------------------- scroll reveal
Only armed when JS is running, so the page is fully visible without it. */
@@ -800,7 +809,7 @@ table.cfg td:first-child { white-space: nowrap; width: 1%; padding-right: 26px;
transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
@media (prefers-reduced-motion: reduce), print {
.js .rv { opacity: 1; transform: none; transition: none; }
}