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:
1 parent
d7f0f0dbdb
commit
975c9f440b
18 files changed
+164
-44
No files matched your search
+11
-5
@@ -5,7 +5,9 @@ served by nginx.
|
||||
|
||||
Not in this folder (added at deploy time):
|
||||
|
||||
- `img/` — the five screenshots from `../assets/screenshots/` plus `banner.png`
|
||||
- `img/` — built by `build-images.sh <dist>/img`: the five screenshots from
|
||||
`../assets/screenshots/` as PNG plus WebP at 600/1170 px (served through `<picture>`),
|
||||
`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)
|
||||
- `openGym.apk` — the signed release build (see `../docs/MOBILE.md`)
|
||||
@@ -18,15 +20,19 @@ Not in this folder (added at deploy time):
|
||||
Navigation is a topic rail (`.side`): one title/subtitle list of everything on the
|
||||
site, a fixed column beside the page from 1300 px up and the hamburger sheet below
|
||||
that, with a scrollspy lighting the section under the reader. The top bar keeps
|
||||
only the brand, GitLab, Discord and the download button.
|
||||
only the brand, GitHub, Discord and the download button.
|
||||
|
||||
`site.js` carries five independent pieces, each one failing soft so the page is
|
||||
complete without any of them: the topic-rail sheet, its scrollspy, the scroll
|
||||
reveals, the demo iframe (injected only once the frame is on screen, and never
|
||||
below 700 px, where the CSS swaps it for an "open it full-screen" card), and the
|
||||
two things that come from the public gitlab.com API at view time — the star/issue
|
||||
counts and the About page's release timeline. Those two URLs pointed at
|
||||
api.github.com until that account was suspended; they go back once it is restored.
|
||||
two things that come from the public api.github.com at view time — the star/issue
|
||||
counts and the About page's release timeline. Both wait for `requestIdleCallback` so
|
||||
they never compete with the hero image.
|
||||
|
||||
Every page starts with a "Skip to content" link (`.skip`, visible on focus) that
|
||||
targets `<main id="main">`. Screenshots change under the same file name, and nginx
|
||||
caches images for seven days — bump the name if a new one must show up at once.
|
||||
|
||||
`api.html` is the one **generated** file in here: `node scripts/build-api-docs.mjs`
|
||||
rewrites it from `../api/openapi.yaml`. Edit the spec, re-run the script, commit both —
|
||||
|
||||
Reference in new issue
Block a user