From af4de8b8ff1ce7955d7b21896a95082d8eaccbe8 Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Tue, 25 Aug 2026 22:07:04 +0200 Subject: [PATCH] website: the relaunched landing page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This has been serving on opengym.duarte-santos.ch for a while without ever being committed, so the repository and the live site had drifted apart — a deploy from a clean checkout would have rolled the site back to the old page. This commits what is actually running. The page is rebuilt around a bento layout with real device frames, a mobile nav that opens a proper menu instead of hiding the links, and a scroll reveal that checks prefers-reduced-motion before animating anything. New "Elsewhere" section collecting where the project actually lives: GitLab for code, issues and releases, Discord, and Buy Me a Coffee. The download line still reads v1.2.9 and the APK next to it is still the 1.2.9 build; both are corrected in the release commit, where the new APK exists. --- website/README.md | 16 +- website/about.html | 122 ++++--- website/docs.html | 58 +-- website/index.html | 503 ++++++++++++++++--------- website/site.js | 116 +++++- website/styles.css | 890 +++++++++++++++++++++++++++++++++------------ 6 files changed, 1201 insertions(+), 504 deletions(-) diff --git a/website/README.md b/website/README.md index 5913590..40d242c 100644 --- a/website/README.md +++ b/website/README.md @@ -15,7 +15,15 @@ Not in this folder (added at deploy time): of exercise media stays out of it. It has to live on this host: the site frames it, and `X-Frame-Options: SAMEORIGIN` would block it from anywhere else. -`site.js` fetches the star/issue counts and the release timeline from the public -gitlab.com API at view time. It pointed at api.github.com until that account was -suspended; the two URLs go back once it is restored, together with the notice -block at the top of `index.html` and the demo iframe. +`site.js` carries four independent pieces, each one failing soft so the page is +complete without any of them: the phone nav sheet, 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, together with the notice +block at the top of all three pages. + +`styles.css` and `site.js` are cache-busted with `?v=N` — nginx serves the site +with `no-cache, must-revalidate`, but the query bump is what saves a Cloudflare +edge from handing out an old stylesheet with new markup. Bump it on every change. diff --git a/website/about.html b/website/about.html index ecf042e..8565581 100644 --- a/website/about.html +++ b/website/about.html @@ -2,14 +2,15 @@ - + About — openGym - + - + + @@ -17,16 +18,19 @@