Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
website/: den Stand nachgezogen, der seit dem GitHub-Ausfall live ist
Duarte Santosc588d219ba30
diff --git a/website/README.md b/website/README.mdindex 2edf97844..9ef0642da 100644--- a/website/README.md+++ b/website/README.md@@ -10,4 +10,7 @@ Not in this folder (added at deploy time):icons the PWA uses, so the browser tab, home screen and app all match)- `openGym.apk` — the signed release build (see `../docs/MOBILE.md`)-`site.js` fetches the star/fork counts from the public GitHub API at view time.+`site.js` fetches the star/issue counts and the release timeline from the public+gitea.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.diff --git a/website/about.html b/website/about.htmlindex 751902748..1b2bc705d 100644--- a/website/about.html+++ b/website/about.html@@ -9,7 +9,7 @@<link rel="icon" type="image/png" sizes="512x512" href="icon-512.png"><link rel="icon" type="image/png" sizes="180x180" href="icon-180.png"><link rel="apple-touch-icon" href="icon-180.png">-<link rel="stylesheet" href="styles.css">+<link rel="stylesheet" href="styles.css?v=3"><!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). --><script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script></head>@@ -26,11 +26,31 @@<a href="/#demo" class="hide-s">Demo</a><a href="docs.html">Docs</a><a href="about.html" class="hide-s">About</a>- <a href="https://github.com/DuarteSantos8/openGym" rel="noopener"><span data-gh="stars">GitHub</span></a>+ <a href="https://gitea.com/DuarteSantos/openGym" rel="noopener"><span data-gh="stars">Gitea</span></a>+ <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a><a class="cta" href="/#download">Download</a></div></div></nav>+<!-- TEMPORARY: GitHub account suspended -> repo lives on gitea.com. Remove this block and+ revert the links (+ site.js) to github.com once the account is restored. -->+<div class="alert" role="alert"><div class="wrap">+ <div class="alert-tag">⚠️ Important notice</div>+ <h2>My GitHub account has been suspended — the openGym repo is gone with it</h2>+ <p><b>github.com/DuarteSantos8/openGym is offline.</b> The repository, the releases and the+ GitHub-Pages demo are all unreachable — not by choice. openGym itself is unaffected:+ the app, the APK on this page and every self-hosted install keep working exactly as before.</p>+ <p>Until I get the account back, the code lives here — and the Discord is where I will announce+ the moment it is resolved:</p>+ <div class="alert-actions">+ <a class="btn alert-btn" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">gitea.com/DuarteSantos/openGym</a>+ <a class="btn dc-btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>+ </div>+ <p class="alert-note">Every repository link on this site now points at that mirror — same code,+ same AGPL-3.0 license, same history.</p>+</div></div>++<main class="wrap prose"><h1>About openGym</h1><p class="lead">openGym wasn't planned as a product. It started as a tiny app I built for@@ -76,7 +96,7 @@<p>Docker-Compose self-hosting, passkey profiles, guided workouts, 1,324-exerciselibrary. AGPL from day one.</p></li><li data-fallback><b>Every release since</b><span class="when">ongoing</span>- <p>See the full list on <a href="https://github.com/DuarteSantos8/openGym/releases" rel="noopener">GitHub → Releases</a>.</p></li>+ <p>See the full list on <a href="https://gitea.com/DuarteSantos/openGym/releases" rel="noopener">Gitea → Releases</a>.</p></li></ul><h2>Principles</h2>@@ -93,7 +113,7 @@<div class="hero-btns" style="justify-content:flex-start;margin:30px 0 10px"><a class="btn" href="/#download">Get openGym</a>- <a class="btn ghost" href="https://github.com/DuarteSantos8/openGym" rel="noopener">Star it on GitHub</a>+ <a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Star it on Gitea</a></div></main>@@ -102,8 +122,9 @@<div class="links"><a href="docs.html">Docs</a><a href="about.html" class="hide-s">About</a>- <a href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub</a>- <a href="https://duartesantos8.github.io/openGym/" rel="noopener">Live demo</a>+ <a href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Gitea</a>+ <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>+ <a href="/#download">Download</a></div></div></footer>diff --git a/website/docs.html b/website/docs.htmlindex acebdfa2c..5b60940fc 100644--- a/website/docs.html+++ b/website/docs.html@@ -9,7 +9,7 @@<link rel="icon" type="image/png" sizes="512x512" href="icon-512.png"><link rel="icon" type="image/png" sizes="180x180" href="icon-180.png"><link rel="apple-touch-icon" href="icon-180.png">-<link rel="stylesheet" href="styles.css">+<link rel="stylesheet" href="styles.css?v=3"><!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). --><script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script></head>@@ -26,16 +26,36 @@<a href="/#demo" class="hide-s">Demo</a><a href="docs.html">Docs</a><a href="about.html" class="hide-s">About</a>- <a href="https://github.com/DuarteSantos8/openGym" rel="noopener"><span data-gh="stars">GitHub</span></a>+ <a href="https://gitea.com/DuarteSantos/openGym" rel="noopener"><span data-gh="stars">Gitea</span></a>+ <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a><a class="cta" href="/#download">Download</a></div></div></nav>+<!-- TEMPORARY: GitHub account suspended -> repo lives on gitea.com. Remove this block and+ revert the links (+ site.js) to github.com once the account is restored. -->+<div class="alert" role="alert"><div class="wrap">+ <div class="alert-tag">⚠️ Important notice</div>+ <h2>My GitHub account has been suspended — the openGym repo is gone with it</h2>+ <p><b>github.com/DuarteSantos8/openGym is offline.</b> The repository, the releases and the+ GitHub-Pages demo are all unreachable — not by choice. openGym itself is unaffected:+ the app, the APK on this page and every self-hosted install keep working exactly as before.</p>+ <p>Until I get the account back, the code lives here — and the Discord is where I will announce+ the moment it is resolved:</p>+ <div class="alert-actions">+ <a class="btn alert-btn" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">gitea.com/DuarteSantos/openGym</a>+ <a class="btn dc-btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>+ </div>+ <p class="alert-note">Every repository link on this site now points at that mirror — same code,+ same AGPL-3.0 license, same history.</p>+</div></div>++<main class="wrap prose"><h1>Docs</h1><p class="lead">Everything you need to get openGym running — on a phone, or on your ownserver. The deeper, maintainer-level docs live- <a href="https://github.com/DuarteSantos8/openGym/tree/main/docs" rel="noopener">in the repository</a>.</p>+ <a href="https://gitea.com/DuarteSantos/openGym/src/branch/main/docs" rel="noopener">in the repository</a>.</p><div class="toc"><a href="#android">Android</a>@@ -72,16 +92,16 @@<li><b>Build it onto your own iPhone:</b> with a Mac and Xcode, the native app runs onyour device with a free Apple ID (Apple expires the signature after 7 days; re-runfrom Xcode to renew). See- <a href="https://github.com/DuarteSantos8/openGym/blob/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>- <li><b>Just looking?</b> The <a href="https://duartesantos8.github.io/openGym/" rel="noopener">live demo</a>- runs in any browser with example data.</li>+ <a href="https://gitea.com/DuarteSantos/openGym/src/branch/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>+ <li><b>Just looking?</b> The in-browser demo was hosted on GitHub Pages and is offline+ while my GitHub account is suspended — the Android app above needs no account either.</li></ul><h2 id="selfhost">Self-host with Docker</h2><p>The self-hosted flavor adds passkey profiles, sync across devices, and (optionally) anadmin dashboard. You need <a href="https://docs.docker.com/get-docker/" rel="noopener">Docker</a>with Compose:</p>- <pre><code>git clone https://github.com/DuarteSantos8/openGym+ <pre><code>git clone https://gitea.com/DuarteSantos/openGymcd openGymcp .env.example .envdocker compose pull # prebuilt images (amd64 + arm64) — skip to build from source@@ -91,7 +111,7 @@ docker compose up -d</code></pre><div class="note">Want it reachable from your phone with passkeys? You'll need an HTTPSdomain — a two-line change in <code>.env</code>. The full guide, including reverse-proxyexamples and the invite-only/admin options, is in- <a href="https://github.com/DuarteSantos8/openGym/blob/main/docs/SELF_HOSTING.md" rel="noopener">docs/SELF_HOSTING.md</a>.</div>+ <a href="https://gitea.com/DuarteSantos/openGym/src/branch/main/docs/SELF_HOSTING.md" rel="noopener">docs/SELF_HOSTING.md</a>.</div><h3>Settings worth knowing about</h3><p>All of these live in <code>.env</code>; the defaults are what you get if you touch nothing.</p>@@ -113,7 +133,7 @@ docker compose up -d</code></pre><p>It runs on your machine, is spawned by the client, and reads your exported data directly.Nothing is sent anywhere, and it is <b>not part of the Docker build</b> — if you don't usean AI assistant, it simply isn't there. Setup is a few lines of client config:- <a href="https://github.com/DuarteSantos8/openGym/blob/main/mcp/README.md" rel="noopener">mcp/README.md</a>.</p>+ <a href="https://gitea.com/DuarteSantos/openGym/src/branch/main/mcp/README.md" rel="noopener">mcp/README.md</a>.</p><h2 id="import">Import your training history</h2><p>Coming from another tracker? <b>Settings → Data → Import from another app</b> reads:</p>@@ -143,7 +163,7 @@ docker compose up -d</code></pre>inside the container — no local Node needed.</li><li><b>Android APK / iOS app:</b> the Capacitor projects live in <code>frontend/android</code>and <code>frontend/ios</code> — build, signing and distribution notes are in- <a href="https://github.com/DuarteSantos8/openGym/blob/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>+ <a href="https://gitea.com/DuarteSantos/openGym/src/branch/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li></ul><h2 id="faq">FAQ</h2>@@ -172,8 +192,9 @@ docker compose up -d</code></pre><div class="links"><a href="docs.html">Docs</a><a href="about.html" class="hide-s">About</a>- <a href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub</a>- <a href="https://duartesantos8.github.io/openGym/" rel="noopener">Live demo</a>+ <a href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Gitea</a>+ <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>+ <a href="/#download">Download</a></div></div></footer>diff --git a/website/index.html b/website/index.htmlindex 08c427356..a459c9cde 100644--- a/website/index.html+++ b/website/index.html@@ -14,7 +14,7 @@<link rel="icon" type="image/png" sizes="512x512" href="icon-512.png"><link rel="icon" type="image/png" sizes="180x180" href="icon-180.png"><link rel="apple-touch-icon" href="icon-180.png">-<link rel="stylesheet" href="styles.css">+<link rel="stylesheet" href="styles.css?v=3"><!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). --><script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script><script type="application/ld+json">@@ -40,11 +40,31 @@<a href="#demo" class="hide-s">Demo</a><a href="docs.html">Docs</a><a href="about.html" class="hide-s">About</a>- <a href="https://github.com/DuarteSantos8/openGym" rel="noopener"><span data-gh="stars">GitHub</span></a>+ <a href="https://gitea.com/DuarteSantos/openGym" rel="noopener"><span data-gh="stars">Gitea</span></a>+ <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a><a class="cta" href="#download">Download</a></div></div></nav>+<!-- TEMPORARY: GitHub account suspended -> repo lives on gitea.com. Remove this block and+ revert the links (+ site.js) to github.com once the account is restored. -->+<div class="alert" role="alert"><div class="wrap">+ <div class="alert-tag">⚠️ Important notice</div>+ <h2>My GitHub account has been suspended — the openGym repo is gone with it</h2>+ <p><b>github.com/DuarteSantos8/openGym is offline.</b> The repository, the releases and the+ GitHub-Pages demo are all unreachable — not by choice. openGym itself is unaffected:+ the app, the APK on this page and every self-hosted install keep working exactly as before.</p>+ <p>Until I get the account back, the code lives here — and the Discord is where I will announce+ the moment it is resolved:</p>+ <div class="alert-actions">+ <a class="btn alert-btn" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">gitea.com/DuarteSantos/openGym</a>+ <a class="btn dc-btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>+ </div>+ <p class="alert-note">Every repository link on this site now points at that mirror — same code,+ same AGPL-3.0 license, same history.</p>+</div></div>++<header class="hero"><div class="wrap"><div class="logo"><img src="icon-512.png" alt="openGym icon" width="108" height="108" style="border-radius:26px">@@ -56,10 +76,22 @@<div class="hero-btns"><a class="btn" href="#download">Get openGym</a><a class="btn ghost" href="#demo">Try the live demo</a>- <a class="btn ghost" href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub <span class="ct" data-gh="stars">★</span></a>+ <a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Gitea <span class="ct" data-gh="stars">★</span></a></div></div></header>+<div class="dc-wrap"><div class="wrap">+ <div class="dc">+ <div class="dc-icon"><svg viewBox="0 0 71 55" width="44" height="34" aria-hidden="true"><path d="M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.4711 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6217 41.8354 49.6217 53.3179 44.3151C53.3935 44.2785 53.483 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z"/></svg></div>+ <div class="dc-body">+ <h3>Join the openGym Discord</h3>+ <p>Release announcements, self-hosting help with Docker, reverse proxies and passkeys,+ and somewhere to report a bug. It is where you will hear about a new version first.</p>+ </div>+ <a class="btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>+ </div>+</div></div>+<section id="features"><div class="wrap"><p class="kicker">Everything a training log needs</p><h2>Built in the gym, not in a boardroom</h2>@@ -103,14 +135,18 @@<section id="demo"><div class="wrap"><p class="kicker">Live demo</p>- <h2>Try it right here</h2>- <p class="lead">This is the real app with seeded example data, running in your browser —- poke around, start a workout, change anything.</p>- <div class="demo-wrap">- <div class="phone"><iframe src="https://duartesantos8.github.io/openGym/" title="openGym live demo" loading="lazy"></iframe></div>+ <h2>Temporarily offline</h2>+ <p class="lead">The in-browser demo ran on GitHub Pages, which went down with my suspended+ GitHub account. It comes straight back once the account is restored.</p>+ <div class="offline">+ <span class="big">🚧</span>+ <p><b>Want to try openGym in the meantime?</b> Install the Android app below — it needs no+ account and no server — or run the self-hosted version with one <code>docker compose up</code>.</p>+ <div class="hero-btns" style="margin-top:18px">+ <a class="btn" href="#download">Get openGym</a>+ <a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Browse the code on Gitea</a>+ </div></div>- <p class="demo-note">Demo data lives only in this browser tab-family and can be reset in its- Settings. Prefer a full window? <a href="https://duartesantos8.github.io/openGym/" rel="noopener">Open the demo full-screen →</a></p></div></section><section id="download"><div class="wrap">@@ -165,18 +201,22 @@<h2>AGPL-licensed, forever</h2><p class="lead">The code is public, the license keeps every fork open, and there is nocommercial version waiting behind a curtain. If openGym is useful to you,- a ⭐ on GitHub helps more people find it.</p>+ a ⭐ on Gitea helps more people find it.</p>+ <p class="lead">There is a Discord for release announcements, self-hosting help and bug+ reports. It is the fastest way to hear about a new version — and the fastest way+ to get unstuck if a reverse proxy or a passkey is fighting you.</p><div class="os">- <div class="stat"><b data-gh="stars-n">–</b><span>GitHub stars</span></div>+ <div class="stat"><b data-gh="stars-n">–</b><span>Gitea stars</span></div><div class="stat"><b data-gh="forks-n">–</b><span>forks</span></div><div class="stat"><b data-gh="issues-n">–</b><span>open issues</span></div><div class="stat"><b>1,324</b><span>exercises</span></div><div class="stat"><b>12</b><span>languages</span></div></div><div class="hero-btns" style="justify-content:flex-start;margin-top:24px">- <a class="btn ghost" href="https://github.com/DuarteSantos8/openGym" rel="noopener">openGym on GitHub</a>- <a class="btn ghost" href="https://github.com/DuarteSantos8/openGym/blob/main/CONTRIBUTING.md" rel="noopener">Contributing</a>- <a class="btn ghost" href="https://github.com/DuarteSantos8/openGym/blob/main/CHANGELOG.md" rel="noopener">Changelog</a>+ <a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">openGym on Gitea</a>+ <a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym/src/branch/main/CONTRIBUTING.md" rel="noopener">Contributing</a>+ <a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym/src/branch/main/CHANGELOG.md" rel="noopener">Changelog</a>+ <a class="btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a></div></div></section>@@ -185,8 +225,9 @@<div class="links"><a href="docs.html">Docs</a><a href="about.html" class="hide-s">About</a>- <a href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub</a>- <a href="https://duartesantos8.github.io/openGym/" rel="noopener">Live demo</a>+ <a href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Gitea</a>+ <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>+ <a href="/#download">Download</a></div></div></footer>diff --git a/website/site.js b/website/site.jsindex 07bb933be..bc32af8b5 100644--- a/website/site.js+++ b/website/site.js@@ -1,25 +1,26 @@-// Live GitHub numbers in the nav + open-source strip. Fails silently — the site-// works fine without them (unauthenticated API: 60 req/h per IP, cached below).+// Live repo numbers in the nav + open-source strip. Fails silently — the site works+// fine without them. Points at the gitea.com mirror while the GitHub account is+// suspended; switch the two API URLs back to api.github.com once it is restored.(async () => {const set = (id, v) => document.querySelectorAll('[data-gh="' + id + '"]').forEach(el => { el.textContent = v })try {let d = null- const cached = sessionStorage.getItem('gh_repo')+ const cached = sessionStorage.getItem('repo_meta')if (cached) d = JSON.parse(cached)else {- const r = await fetch('https://api.github.com/repos/DuarteSantos8/openGym')+ const r = await fetch('https://gitea.com/api/v1/repos/DuarteSantos/openGym')if (!r.ok) returnd = await r.json()- sessionStorage.setItem('gh_repo', JSON.stringify({ stargazers_count: d.stargazers_count, forks_count: d.forks_count, open_issues_count: d.open_issues_count }))+ sessionStorage.setItem('repo_meta', JSON.stringify({ stars_count: d.stars_count, forks_count: d.forks_count, open_issues_count: d.open_issues_count }))}- set('stars', '★ ' + d.stargazers_count)- set('stars-n', d.stargazers_count)+ set('stars', '★ ' + d.stars_count)+ set('stars-n', d.stars_count)set('forks-n', d.forks_count)set('issues-n', d.open_issues_count)} catch (e) { /* offline / rate-limited — leave placeholders */ }})()-// About page: build the milestones timeline from the published GitHub releases, so the+// About page: build the milestones timeline from the published Gitea releases, so the// page updates itself with every release. The static entries marked data-fallback stay// in place when the API is unreachable; the hand-written first entry is always kept.;(async () => {@@ -27,14 +28,14 @@if (!tl) returntry {let rel = null- const cached = sessionStorage.getItem('gh_releases')+ const cached = sessionStorage.getItem('repo_releases')if (cached) rel = JSON.parse(cached)else {- const r = await fetch('https://api.github.com/repos/DuarteSantos8/openGym/releases?per_page=100')+ const r = await fetch('https://gitea.com/api/v1/repos/DuarteSantos/openGym/releases?limit=100')if (!r.ok) returnrel = (await r.json()).filter(x => !x.draft && !x.prerelease).map(x => ({ tag: x.tag_name, name: x.name, at: x.published_at, body: x.body || '', url: x.html_url }))- sessionStorage.setItem('gh_releases', JSON.stringify(rel))+ sessionStorage.setItem('repo_releases', JSON.stringify(rel))}if (!rel.length) returnconst fmt = d => new Date(d).toLocaleDateString('en-GB', { year: 'numeric', month: 'long', day: 'numeric' })diff --git a/website/styles.css b/website/styles.cssindex c24b5b89c..f29188575 100644--- a/website/styles.css+++ b/website/styles.css@@ -178,3 +178,87 @@ table.cfg td:first-child { white-space: nowrap; width: 1%; padding-right: 1.2remtable.cfg td:first-child { white-space: normal; width: auto; padding-top: .7rem; border-top: 1px solid var(--line, #24303f); }table.cfg tr:first-child td:first-child { border-top: 0; }}++/* ---------- suspension notice (GitHub account suspended → gitea.com mirror) ----------+ Temporary: remove this block together with the .alert markup once the account is back. */+.alert {+ background:+ radial-gradient(1200px 260px at 50% -40px, rgba(255, 159, 10, .18), transparent 70%),+ linear-gradient(180deg, #241a10, #1a1410);+ border-bottom: 1px solid rgba(255, 159, 10, .38);+ border-top: 3px solid #ff9f0a;+ padding: 40px 0 44px;+ text-align: center;+}+.alert-tag {+ display: inline-block; margin-bottom: 16px;+ background: rgba(255, 159, 10, .16); color: #ffb340;+ border: 1px solid rgba(255, 159, 10, .35); border-radius: 999px;+ padding: 6px 15px; font-size: 13px; font-weight: 700;+ text-transform: uppercase; letter-spacing: .09em;+}+.alert h2 {+ font-size: clamp(27px, 5.4vw, 46px); line-height: 1.15; letter-spacing: -.03em;+ color: #ffd8a3; max-width: 900px; margin: 0 auto;+}+.alert p { color: #e3d5c4; font-size: clamp(15px, 2vw, 17.5px); max-width: 720px; margin: 16px auto 0; }+.alert p b { color: #fff; }+.alert .alert-btn {+ margin-top: 20px; background: #ff9f0a; color: #1a1206;+ font-size: clamp(15px, 2.4vw, 19px); font-weight: 700; padding: 15px 26px;+ word-break: break-word;+}+.alert .alert-note { color: #a9977f; font-size: 14px; margin-top: 18px; }+.alert code { background: rgba(255, 159, 10, .12); color: #ffc978; }++/* offline live demo */+.offline {+ background: var(--card); border: 1px dashed var(--line); border-radius: 18px;+ padding: 34px 26px; text-align: center; margin-top: 22px;+}+.offline .big { font-size: 34px; display: block; margin-bottom: 10px; }+.offline p { color: var(--dim); max-width: 620px; margin: 0 auto 6px; }++/* ---------- Discord call-to-action ----------+ Blurple rather than the lime accent on purpose: this block has to read as a+ different kind of thing from the download/demo buttons around it. */+.dc-wrap { padding: 8px 0 46px; }+.dc {+ display: flex; align-items: center; gap: 26px;+ max-width: 720px; margin: 0 auto; text-align: left;+ background:+ radial-gradient(700px 200px at 12% -30px, rgba(88, 101, 242, .22), transparent 70%),+ linear-gradient(180deg, #1a1c2e, #15161f);+ border: 1px solid rgba(88, 101, 242, .42);+ border-radius: 20px; padding: 28px 30px;+}+.dc:hover { border-color: rgba(88, 101, 242, .72); }+.dc-icon {+ flex: 0 0 76px; width: 76px; height: 76px; border-radius: 20px;+ background: #5865f2; display: flex; align-items: center; justify-content: center;+}+/* The Discord mark is 71:55, not square — forcing it into a square box+ letterboxes it and it reads as vertically off-centre. */+.dc-icon svg { width: 44px; height: 34px; fill: #fff; display: block; }+.dc-body { flex: 1 1 auto; min-width: 0; }+.dc h3 { font-size: clamp(19px, 3vw, 23px); letter-spacing: -.02em; margin-bottom: 6px; }+.dc p { color: var(--dim); font-size: 14.5px; }+.dc .btn {+ background: #5865f2; color: #fff; white-space: nowrap;+ flex: 0 0 auto; align-self: center;+}+.dc .btn:hover { filter: brightness(1.12); }+@media (max-width: 620px) {+ .dc { flex-direction: column; text-align: center; gap: 18px; padding: 26px 22px; }+ .dc .btn { width: 100%; text-align: center; }+}++/* Discord button inside the suspended-account banner */+.alert .alert-actions {+ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: stretch;+}+.alert .alert-actions .btn { margin-top: 20px; }+.alert .dc-btn {+ background: #5865f2; color: #fff;+ font-size: clamp(15px, 2.4vw, 19px); font-weight: 700; padding: 15px 26px;+}