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

**"And the rest of it"** was fourteen items as a two-column definition list — the
part of the page nobody finishes reading. It is now a horizontal rail of cards,
one icon each, tapping one opens the full paragraph in a dialog. Four of them
carry a link into the docs, where there is genuinely more to say: importing,
self-hosting, the MCP server and backups. Twelve new icons in the existing
sprite style (24x24, stroke 1.7) to go with it.

The dialog only ever shows text that is already in the card, so nothing is
hidden from a reader without JS: the cards are unclamped and fully readable, the
arrows stay hidden, and there is nothing to open. Arrows are for pointers that
cannot swipe and are dropped on touch.

**The docs and about pages were squished on a phone**, and it was one character:
`.prose` set `padding: <top> 0 0`, and the trailing zeros overwrote the left and
right padding `.wrap` had already set. On a desktop nothing showed, because 720px
of text has room to spare either way; on a phone the text ran into both edges of
the screen. Both pages share that class, which is why both looked wrong.

Two traps in the CSS I added and then found: `.frail-nav` and `.fdlg-go` both set
`display`, which beats the UA's `[hidden] { display: none }`. The arrows would
have shown without JS, and a card with no link would have shown a "read more"
pointing at whatever the previous card linked to. Both now honour the attribute.

Cache busters go to v=6 — the markup needs the new CSS and JS, and a returning
visitor holding v=5 would have got the new page with the old stylesheet.
This commit is contained in:
Duarte Santos committed 2026-08-25 22:39:04 +02:00
1 parent 3c985babea
commit 57ab683bf6
5 files changed
+267 -23

No files matched your search

+116 -18
View File
@@ -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>