Skip to content

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.

website: turn the long feature list into a rail, and un-squish the text pages

Duarte Santos57ab683bf671
diff --git a/website/about.html b/website/about.html
index 8565581e5..fcee66a97 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?v=5">
+<link rel="stylesheet" href="styles.css?v=6">
<script>document.documentElement.className += ' js'</script>
<!-- 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>
@@ -130,6 +130,6 @@
</div>
</div></footer>
-<script src="site.js?v=5" defer></script>
+<script src="site.js?v=6" defer></script>
</body>
</html>
diff --git a/website/docs.html b/website/docs.html
index 5e588b104..8526b25db 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?v=5">
+<link rel="stylesheet" href="styles.css?v=6">
<script>document.documentElement.className += ' js'</script>
<!-- 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>
@@ -209,6 +209,6 @@ docker compose up -d</code></pre>
</div>
</div></footer>
-<script src="site.js?v=5" defer></script>
+<script src="site.js?v=6" defer></script>
</body>
</html>
diff --git a/website/index.html b/website/index.html
index 06d6b077c..130affcf6 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?v=5">
+<link rel="stylesheet" href="styles.css?v=6">
<!-- Marks that JS is alive before first paint, so the scroll-reveal styles never
hide content from a browser that will not run them. -->
<script>document.documentElement.className += ' js'</script>
@@ -46,6 +46,18 @@
<symbol id="i-gitlab" viewBox="0 0 24 24"><path d="m23.6004 9.5927-.0337-.0862L20.3.9814a.851.851 0 0 0-.3362-.405.8748.8748 0 0 0-.9997.0539.8748.8748 0 0 0-.29.4399l-2.2055 6.748H7.5375l-2.2057-6.748a.8573.8573 0 0 0-.29-.4412.8748.8748 0 0 0-.9997-.0537.8585.8585 0 0 0-.3362.4049L.4332 9.5015l-.0325.0862a6.0657 6.0657 0 0 0 2.0119 7.0105l.0113.0087.03.0213 4.976 3.7264 2.462 1.8633 1.4995 1.1321a1.0085 1.0085 0 0 0 1.2197 0l1.4995-1.1321 2.4619-1.8633 5.006-3.7489.0125-.01a6.0682 6.0682 0 0 0 2.0094-7.003z"/></symbol>
<symbol id="i-github" viewBox="0 0 24 24"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></symbol>
<symbol id="i-bmc" viewBox="0 0 24 24"><path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"/></symbol>
+ <symbol id="i-calendar" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><rect x="3.2" y="4.8" width="17.6" height="16" rx="2.4"/><path d="M3.2 9.6h17.6M8.4 3.2v3.2M15.6 3.2v3.2"/></symbol>
+ <symbol id="i-link" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M10.2 13.8a3.6 3.6 0 0 0 5.4.4l2.6-2.6a3.6 3.6 0 0 0-5.1-5.1l-1.5 1.5"/><path d="M13.8 10.2a3.6 3.6 0 0 0-5.4-.4l-2.6 2.6a3.6 3.6 0 0 0 5.1 5.1l1.5-1.5"/></symbol>
+ <symbol id="i-timer" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="13.4" r="7.6"/><path d="M12 9.4v4l2.6 1.6M9.4 2.6h5.2"/></symbol>
+ <symbol id="i-flame" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 21.4c3.4 0 6-2.4 6-5.6 0-4-4.2-5.6-3.4-10.4-2 .6-3.6 2.6-3.6 4.8 0 1-.6 1.8-1.4 1.8-.9 0-1.4-.8-1.3-1.9C7 11.4 6 13.2 6 15.8c0 3.2 2.6 5.6 6 5.6z"/></symbol>
+ <symbol id="i-gauge" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M4.2 17.4a8.6 8.6 0 1 1 15.6 0"/><path d="M12 14.6l3.8-3.8"/><circle cx="12" cy="16.2" r="1.4"/></symbol>
+ <symbol id="i-share" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3.6v11.2M8.4 7.2L12 3.6l3.6 3.6"/><path d="M5.4 13.2v5.4a1.8 1.8 0 0 0 1.8 1.8h9.6a1.8 1.8 0 0 0 1.8-1.8v-5.4"/></symbol>
+ <symbol id="i-import" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3.6v11.2M8.4 11.2l3.6 3.6 3.6-3.6"/><path d="M5.4 15.6v3a1.8 1.8 0 0 0 1.8 1.8h9.6a1.8 1.8 0 0 0 1.8-1.8v-3"/></symbol>
+ <symbol id="i-globe" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="8.6"/><path d="M3.4 12h17.2"/><path d="M12 3.4c2.2 2.4 3.4 5.4 3.4 8.6s-1.2 6.2-3.4 8.6c-2.2-2.4-3.4-5.4-3.4-8.6S9.8 5.8 12 3.4z"/></symbol>
+ <symbol id="i-key" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="7.6" cy="14.4" r="3.8"/><path d="M10.4 11.6l7.4-7.4M15.2 6.8l2.2 2.2M17.8 4.2l2.2 2.2"/></symbol>
+ <symbol id="i-palette" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3.4a8.6 8.6 0 0 0 0 17.2c1 0 1.8-.8 1.8-1.8 0-.5-.2-.9-.5-1.2-.3-.3-.5-.7-.5-1.2 0-1 .8-1.8 1.8-1.8h2.1a4 4 0 0 0 3.9-4c0-3.9-3.9-7.2-8.6-7.2z"/><circle cx="7.6" cy="11.6" r="1"/><circle cx="10.6" cy="7.4" r="1"/><circle cx="15.4" cy="8.4" r="1"/></symbol>
+ <symbol id="i-sparkle" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3.2l1.9 4.9 4.9 1.9-4.9 1.9L12 16.8l-1.9-4.9-4.9-1.9 4.9-1.9z"/><path d="M18.6 15.4l.8 2 2 .8-2 .8-.8 2-.8-2-2-.8 2-.8z"/></symbol>
+ <symbol id="i-archive" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><rect x="3.2" y="4.4" width="17.6" height="4.4" rx="1.6"/><path d="M5 8.8v9.2a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8.8"/><path d="M9.8 12.6h4.4"/></symbol>
</defs></svg>
<nav><div class="wrap nav-in">
@@ -162,22 +174,95 @@
<div class="more rv">
<h3>And the rest of it</h3>
- <dl>
- <div><dt>Weekly plan</dt><dd>A routine per weekday. Any single day can be moved when life happens, without editing the plan itself.</dd></div>
- <div><dt>Supersets and cardio</dt><dd>Plan them, or pair two exercises mid-session and unpair them again. One rest per round, and time-plus-speed logging where weight times reps says nothing.</dd></div>
- <div><dt>Timed sets</dt><dd>Planks, hangs and carries are logged by time, with a timer for the set itself. Stop early and it records what you actually held.</dd></div>
- <div><dt>Warm-up sets</dt><dd>Mark the ramp-up rows and they stay out of your 1RM, your progression and the fatigue map. Present in the session, absent from the numbers.</dd></div>
- <div><dt>Estimated 1RM</dt><dd>Per exercise, from your best eligible set, naming which set it used. It will not guess above 12 reps.</dd></div>
- <div><dt>Effort per set</dt><dd>Rate a set as RIR or RPE, whichever scale you already think in. Optional, and each set keeps the scale it was logged with.</dd></div>
- <div><dt>Share a plan</dt><dd>Send someone your routines as a small file, or print them as a clean PDF. No workouts, no weigh-ins, and importing merges instead of overwriting.</dd></div>
- <div><dt>Bring your history</dt><dd>Import from FitNotes, Strong or Hevy, including the RPE they recorded, or body weight straight out of an Apple Health export.</dd></div>
- <div><dt>The screen stays awake</dt><dd>No unlocking the phone between sets. The display stays lit while a workout runs and lets go the moment you finish.</dd></div>
- <div><dt>13 languages</dt><dd>The full interface, plus exercise instructions in 11 languages and bilingual Brazilian Portuguese names, all loaded on demand.</dd></div>
- <div><dt>Passkeys, not passwords</dt><dd>Self-hosted profiles sign in with Face ID or a fingerprint. Everyone's data stays their own.</dd></div>
- <div><dt>Designed, not assembled</dt><dd>Light and dark themes, eight accent colours, a hand-drawn icon set, and the same layout on every phone.</dd></div>
- <div><dt>Ask an AI about your training</dt><dd>An optional MCP server lets a client like Claude Desktop read your history in plain language. Read-only, on your machine, and not part of the Docker build.</dd></div>
- <div><dt>Yours to keep</dt><dd>One-tap JSON export and import. Your training log is a file you own, not a row in someone's database.</dd></div>
- </dl>
+ <p class="more-hint">Fourteen more things it does. Open any one for the detail.</p>
+ </div>
+ </div>
+
+ <!-- A rail rather than a wall of text: this is the "and also" list, so it should be
+ skimmable and skippable. Each card opens the full paragraph in a dialog, and a few
+ carry a link into the docs. Without JS the cards are plain, fully readable blocks. -->
+ <div class="bleed rv">
+ <div class="rail frail">
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-calendar"/></svg></span>
+ <b class="fcard-t">Weekly plan</b>
+ <span class="fcard-b">A routine per weekday. Any single day can be moved when life happens, without editing the plan itself.</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-link"/></svg></span>
+ <b class="fcard-t">Supersets and cardio</b>
+ <span class="fcard-b">Plan them, or pair two exercises mid-session and unpair them again. One rest per round, and time-plus-speed logging where weight times reps says nothing.</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-timer"/></svg></span>
+ <b class="fcard-t">Timed sets</b>
+ <span class="fcard-b">Planks, hangs and carries are logged by time, with a timer for the set itself. Stop early and it records what you actually held.</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-flame"/></svg></span>
+ <b class="fcard-t">Warm-up sets</b>
+ <span class="fcard-b">Mark the ramp-up rows and they stay out of your 1RM, your progression and the fatigue map. Present in the session, absent from the numbers.</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-trend"/></svg></span>
+ <b class="fcard-t">Estimated 1RM</b>
+ <span class="fcard-b">Per exercise, from your best eligible set, naming which set it used. It will not guess above 12 reps.</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-gauge"/></svg></span>
+ <b class="fcard-t">Effort per set</b>
+ <span class="fcard-b">Rate a set as RIR or RPE, whichever scale you already think in. Optional, and each set keeps the scale it was logged with.</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-share"/></svg></span>
+ <b class="fcard-t">Share a plan</b>
+ <span class="fcard-b">Send someone your routines as a small file, or print them as a clean PDF. No workouts, no weigh-ins, and importing merges instead of overwriting.</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-import"/></svg></span>
+ <b class="fcard-t">Bring your history</b>
+ <span class="fcard-b">Import from FitNotes, Strong or Hevy, including the RPE they recorded, or body weight straight out of an Apple Health export.</span>
+ <span class="fcard-link" data-href="docs.html#import">How importing works</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-phone"/></svg></span>
+ <b class="fcard-t">The screen stays awake</b>
+ <span class="fcard-b">No unlocking the phone between sets. The display stays lit while a workout runs and lets go the moment you finish.</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-globe"/></svg></span>
+ <b class="fcard-t">13 languages</b>
+ <span class="fcard-b">The full interface, plus exercise instructions in 11 languages and bilingual Brazilian Portuguese names, all loaded on demand.</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-key"/></svg></span>
+ <b class="fcard-t">Passkeys, not passwords</b>
+ <span class="fcard-b">Self-hosted profiles sign in with Face ID or a fingerprint. Everyone’s data stays their own.</span>
+ <span class="fcard-link" data-href="docs.html#selfhost">Self-hosting guide</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-palette"/></svg></span>
+ <b class="fcard-t">Designed, not assembled</b>
+ <span class="fcard-b">Light and dark themes, eight accent colours, a hand-drawn icon set, and the same layout on every phone.</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-sparkle"/></svg></span>
+ <b class="fcard-t">Ask an AI about your training</b>
+ <span class="fcard-b">An optional MCP server lets a client like Claude Desktop read your history in plain language. Read-only, on your machine, and not part of the Docker build.</span>
+ <span class="fcard-link" data-href="docs.html#mcp">Set up the MCP server</span>
+ </button>
+ <button class="fcard" type="button">
+ <span class="fcard-ic"><svg aria-hidden="true"><use href="#i-archive"/></svg></span>
+ <b class="fcard-t">Yours to keep</b>
+ <span class="fcard-b">One-tap JSON export and import. Your training log is a file you own, not a row in someone’s database.</span>
+ <span class="fcard-link" data-href="docs.html#backup">Backups</span>
+ </button>
+ </div>
+ </div>
+ <div class="wrap">
+ <div class="frail-nav" hidden>
+ <button class="rnav" type="button" data-dir="-1" aria-label="Previous"><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 5.5L8 12l6.5 6.5"/></svg></button>
+ <button class="rnav" type="button" data-dir="1" aria-label="Next"><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 5.5L16 12l-6.5 6.5"/></svg></button>
</div>
</div>
</section>
@@ -370,6 +455,19 @@
</div>
</section>
+
+<!-- One dialog, filled from whichever card was opened. Only ever shows text that is already
+ in the page, so nothing is hidden from a reader without JS. -->
+<dialog class="fdlg" aria-labelledby="fdlg-t">
+ <button class="fdlg-x" type="button" aria-label="Close">
+ <svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round"><path d="M6.5 6.5l11 11M17.5 6.5l-11 11"/></svg>
+ </button>
+ <span class="fdlg-ic"><svg aria-hidden="true"><use href="#i-calendar"/></svg></span>
+ <h3 id="fdlg-t"></h3>
+ <p class="fdlg-b"></p>
+ <a class="fdlg-go" hidden>Read more</a>
+</dialog>
+
<footer><div class="wrap foot">
<span class="c">openGym · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a></span>
<div class="links">
@@ -381,6 +479,6 @@
</div>
</div></footer>
-<script src="site.js?v=5" defer></script>
+<script src="site.js?v=6" defer></script>
</body>
</html>
diff --git a/website/site.js b/website/site.js
index d2f45f780..bae313e5f 100644
--- a/website/site.js
+++ b/website/site.js
@@ -176,3 +176,61 @@ const GL_PROJECT = 'https://gitlab.com/api/v4/projects/DuarteSantos8%2Fopengym'
}
} catch (e) { /* fallback entries stay */ }
})()
+
+/* The "and the rest of it" rail: each card opens its own full text in a shared dialog, and
+ the arrows scroll the rail for pointers that cannot swipe. Everything the dialog shows is
+ read out of the card itself, so this only ever re-presents text that is already on the
+ page — with JS off the cards stay unclamped and there is nothing to open. */
+;(() => {
+ const rail = document.querySelector('.frail')
+ const dlg = document.querySelector('.fdlg')
+ if (!rail || !dlg || typeof dlg.showModal !== 'function') return
+
+ const use = dlg.querySelector('.fdlg-ic use')
+ const title = dlg.querySelector('#fdlg-t')
+ const body = dlg.querySelector('.fdlg-b')
+ const go = dlg.querySelector('.fdlg-go')
+
+ rail.querySelectorAll('.fcard').forEach(card => {
+ card.addEventListener('click', () => {
+ const href = card.querySelector('.fcard-link')?.dataset.href
+ use.setAttribute('href', card.querySelector('.fcard-ic use').getAttribute('href'))
+ title.textContent = card.querySelector('.fcard-t').textContent
+ body.textContent = card.querySelector('.fcard-b').textContent
+ if (href) {
+ go.href = href
+ go.textContent = card.querySelector('.fcard-link').textContent + ' →'
+ go.hidden = false
+ } else {
+ go.hidden = true
+ }
+ dlg.showModal()
+ })
+ })
+
+ dlg.querySelector('.fdlg-x').addEventListener('click', () => dlg.close())
+ // Clicking the backdrop closes it: the click lands on the dialog itself, outside its box.
+ dlg.addEventListener('click', e => {
+ const r = dlg.getBoundingClientRect()
+ const inside = e.clientX >= r.left && e.clientX <= r.right && e.clientY >= r.top && e.clientY <= r.bottom
+ if (!inside) dlg.close()
+ })
+
+ const nav = document.querySelector('.frail-nav')
+ if (nav) {
+ nav.hidden = false
+ const [prev, next] = nav.querySelectorAll('.rnav')
+ const step = () => (rail.querySelector('.fcard')?.offsetWidth || 260) + 16
+ nav.addEventListener('click', e => {
+ const btn = e.target.closest('.rnav')
+ if (btn) rail.scrollBy({ left: Number(btn.dataset.dir) * step(), behavior: 'smooth' })
+ })
+ const sync = () => {
+ prev.disabled = rail.scrollLeft < 4
+ next.disabled = rail.scrollLeft > rail.scrollWidth - rail.clientWidth - 4
+ }
+ rail.addEventListener('scroll', sync, { passive: true })
+ addEventListener('resize', sync)
+ sync()
+ }
+})()
diff --git a/website/styles.css b/website/styles.css
index 6d4ce28dc..7402e81bf 100644
--- a/website/styles.css
+++ b/website/styles.css
@@ -623,7 +623,10 @@ footer {
/* ------------------------------------------------------------ prose pages */
-.prose { max-width: 720px; padding: clamp(44px, 7vw, 72px) 0 0; }
+/* Keep .wrap's horizontal padding. The shorthand used to be `… 0 0`, which zeroed the
+ left and right the .wrap class had set, so on a phone the docs and about pages ran
+ edge to edge with nothing between the text and the screen. */
+.prose { max-width: 720px; padding: clamp(44px, 7vw, 72px) var(--pad) 0; }
.prose h1 { font-size: clamp(36px, 6.5vw, 60px); }
.prose > .lead { max-width: 42ch; margin-bottom: clamp(34px, 5vw, 48px); }
.prose h2 {
@@ -706,3 +709,88 @@ table.cfg td:first-child { white-space: nowrap; width: 1%; padding-right: 26px;
@media (prefers-reduced-motion: reduce) {
.js .rv { opacity: 1; transform: none; transition: none; }
}
+
+
+/* ------------------------------------------------------- the "rest of it" rail
+ The long tail of features. It is a rail rather than a two-column list because
+ this is the "and also" section: worth having, not worth a screenful of reading.
+ Cards carry their full text in the markup, so a reader without JS gets
+ everything; with JS the text is clamped and the card opens a dialog. */
+
+.more-hint { color: var(--fg-2); font-size: 15px; margin-top: 12px; }
+
+.frail { align-items: stretch; padding-top: 10px; padding-bottom: 10px; }
+.fcard {
+ flex: 0 0 auto; width: clamp(232px, 74vw, 290px); scroll-snap-align: center;
+ display: flex; flex-direction: column; text-align: left;
+ padding: 22px; background: var(--surface);
+ border: 1px solid var(--hair-soft); border-radius: var(--r-m);
+ color: var(--fg); font: inherit; cursor: pointer;
+ transition: border-color .3s var(--ease), background-color .3s var(--ease),
+ transform .3s var(--ease);
+}
+.fcard:hover { transform: translateY(-2px); border-color: var(--hair); background: var(--surface-2); }
+.fcard:active { transform: none; }
+.fcard:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
+.fcard-ic {
+ width: 40px; height: 40px; border-radius: 12px; margin-bottom: 15px;
+ display: flex; align-items: center; justify-content: center; flex: none;
+ background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--acc);
+}
+.fcard-ic svg { width: 21px; height: 21px; }
+.fcard-t { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
+.fcard-b { color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
+/* Only clamped when the dialog exists to show the rest. */
+.js .fcard-b {
+ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
+ overflow: hidden;
+}
+.fcard-link { display: none; }
+.js .fcard-link {
+ display: block; margin-top: auto; padding-top: 14px;
+ color: var(--acc); font-size: 13.5px; font-weight: 500;
+}
+
+/* `display: flex` here beats the UA's `[hidden] { display: none }`, so the attribute has to
+ be honoured explicitly — otherwise the arrows show up without JS, where they do nothing. */
+.frail-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
+.frail-nav[hidden] { display: none; }
+.rnav {
+ width: 38px; height: 38px; border-radius: 50%;
+ display: flex; align-items: center; justify-content: center;
+ background: var(--surface); border: 1px solid var(--hair-soft); color: var(--fg-2);
+ cursor: pointer; transition: color .25s var(--ease), border-color .25s var(--ease);
+}
+.rnav:hover { color: var(--fg); border-color: var(--hair); }
+.rnav:disabled { opacity: .3; cursor: default; }
+.rnav svg { width: 19px; height: 19px; }
+/* Touch scrolls; the arrows are for pointers that cannot swipe. */
+@media (hover: none) { .frail-nav { display: none; } }
+
+.fdlg {
+ width: min(460px, calc(100vw - 2 * var(--pad)));
+ padding: 26px; border: 1px solid var(--hair); border-radius: var(--r-m);
+ background: var(--surface); color: var(--fg); position: relative;
+}
+.fdlg::backdrop { background: rgba(0, 0, 0, .62); }
+.fdlg-ic {
+ width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px;
+ display: flex; align-items: center; justify-content: center;
+ background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--acc);
+}
+.fdlg-ic svg { width: 23px; height: 23px; }
+.fdlg h3 { font-size: 20px; margin-bottom: 10px; }
+.fdlg-b { color: var(--fg-2); font-size: 15.5px; line-height: 1.6; margin: 0; }
+.fdlg-go {
+ display: inline-block; margin-top: 20px; color: var(--acc);
+ font-size: 14.5px; font-weight: 500;
+}
+/* Same trap as .frail-nav: without this, a card with no link still shows one. */
+.fdlg-go[hidden] { display: none; }
+.fdlg-x {
+ position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
+ display: flex; align-items: center; justify-content: center;
+ background: none; border: 0; border-radius: 50%; color: var(--fg-3); cursor: pointer;
+}
+.fdlg-x:hover { color: var(--fg); background: var(--surface-2); }
+.fdlg-x svg { width: 17px; height: 17px; }