website: the feature cards just hold their text now

The dialog is gone. It showed the same paragraph that was already on the card,
only unclamped — so a click bought you nothing, which is a bad trade for making
fourteen cards look like something you have to interact with. The cards are
plain <article>s now and the text is simply on them, no line clamp.

What is left of the click: four cards point into the docs — importing,
self-hosting, the MCP server, backups — where there genuinely is more to read.
Those are ordinary links at the foot of their card rather than a click target
covering the whole box.

Cards are a little wider (250-310px) to carry the full text without turning into
columns of two words, and the rail still snaps and scrolls the same way.

Verified in the browser at 1440 and 390: fourteen cards, no dialog left in the
DOM, no buttons inside the rail, all four docs links present, nothing clipped
(every .fcard-b has scrollHeight == clientHeight), every card the same height,
still flush with the text above, no horizontal overflow, no JS errors.
This commit is contained in:
Duarte Santos committed 2026-08-25 22:56:39 +02:00
1 parent 1290db11b5
commit 5314b342ff
5 files changed
+50 -148

No files matched your search

+35 -46
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=8">
<link rel="stylesheet" href="styles.css?v=9">
<!-- 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>
@@ -185,7 +185,7 @@ try {
<div class="more rv">
<h3>And the rest of it</h3>
<p class="more-hint">Fourteen more things it does. Open any one for the detail.</p>
<p class="more-hint">Fourteen more things it does.</p>
</div>
</div>
@@ -194,80 +194,80 @@ try {
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">
<article class="fcard">
<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">
</article>
<article class="fcard">
<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">
</article>
<article class="fcard">
<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">
</article>
<article class="fcard">
<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">
</article>
<article class="fcard">
<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">
</article>
<article class="fcard">
<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">
</article>
<article class="fcard">
<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">
</article>
<article class="fcard">
<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">
<a class="fcard-link" href="docs.html#import">How importing works →</a>
</article>
<article class="fcard">
<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">
</article>
<article class="fcard">
<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">
</article>
<article class="fcard">
<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">
<a class="fcard-link" href="docs.html#selfhost">Self-hosting guide →</a>
</article>
<article class="fcard">
<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">
</article>
<article class="fcard">
<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">
<a class="fcard-link" href="docs.html#mcp">Set up the MCP server →</a>
</article>
<article class="fcard">
<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>
<a class="fcard-link" href="docs.html#backup">Backups →</a>
</article>
</div>
</div>
<div class="wrap">
@@ -467,17 +467,6 @@ try {
</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>
@@ -490,6 +479,6 @@ try {
</div>
</div></footer>
<script src="site.js?v=8" defer></script>
<script src="site.js?v=9" defer></script>
</body>
</html>