From 188979151b3aa4c083160ba73a390f3c189a1226 Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Mon, 31 Aug 2026 08:25:39 +0200 Subject: [PATCH] website: topic rail instead of the crowded top nav, GitHub notice retired MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The nav bar keeps only the brand, GitLab, Discord and the download button. Everything else moves into a topic rail — a title/subtitle list of every section, fixed beside the page on wide screens and behind the hamburger below 1300px, with a scrollspy lighting the section under the reader. The GitHub-suspension notice comes off all three pages. --- website/README.md | 20 +++--- website/about.html | 47 ++++++-------- website/docs.html | 51 +++++++--------- website/index.html | 52 +++++++--------- website/site.js | 40 ++++++++++-- website/styles.css | 148 ++++++++++++++++++++------------------------- 6 files changed, 176 insertions(+), 182 deletions(-) diff --git a/website/README.md b/website/README.md index 40d242c..c05addc 100644 --- a/website/README.md +++ b/website/README.md @@ -15,14 +15,18 @@ 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` 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. +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. + +`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. `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 diff --git a/website/about.html b/website/about.html index 38f8962..021ee64 100644 --- a/website/about.html +++ b/website/about.html @@ -9,7 +9,7 @@ - + @@ -21,37 +21,26 @@ openGym + - - -
- -
+ +

About openGym

@@ -101,7 +90,7 @@

See the full list on GitLab → Releases.

-

Principles

+

Principles