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: the feature cards just hold their text now
Duarte Santos5314b342ffe8
diff --git a/website/about.html b/website/about.htmlindex c66293713..38f89628b 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=8">+<link rel="stylesheet" href="styles.css?v=9"><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=8" defer></script>+<script src="site.js?v=9" defer></script></body></html>diff --git a/website/docs.html b/website/docs.htmlindex 9fc3ff8b6..7275ca4f4 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=8">+<link rel="stylesheet" href="styles.css?v=9"><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=8" defer></script>+<script src="site.js?v=9" defer></script></body></html>diff --git a/website/index.html b/website/index.htmlindex 2e1ddc3fa..9e247fb47 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=8">+<link rel="stylesheet" href="styles.css?v=9"><!-- Marks that JS is alive before first paint, so the scroll-reveal styles neverhide 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>diff --git a/website/site.js b/website/site.jsindex 1b6a8c0ff..bc0b72ae9 100644--- a/website/site.js+++ b/website/site.js@@ -177,45 +177,11 @@ 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. */+/* The "and the rest of it" rail: arrows for pointers that cannot swipe. The cards are plain+ reading, so there is nothing to activate on them. */;(() => {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()- })-+ if (!rail) returnconst nav = document.querySelector('.frail-nav')if (nav) {nav.hidden = falsediff --git a/website/styles.css b/website/styles.cssindex 5e4b9188a..9d11afcdc 100644--- a/website/styles.css+++ b/website/styles.css@@ -724,18 +724,16 @@ table.cfg td:first-child { white-space: nowrap; width: 1%; padding-right: 26px;.frail { align-items: stretch; padding-top: 10px; padding-bottom: 10px; }.more + .bleed, .bleed:has(.frail) { margin-top: clamp(18px, 2.4vw, 26px); }+/* Not interactive: the card holds its whole text, so there is nothing to open. Only the+ four cards that point into the docs carry a link, because that is the only place there is+ genuinely more to read. */.fcard {- flex: 0 0 auto; width: clamp(232px, 74vw, 290px); scroll-snap-align: center;+ flex: 0 0 auto; width: clamp(250px, 78vw, 310px); 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);+ color: var(--fg);}-.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;@@ -744,16 +742,11 @@ table.cfg td:first-child { white-space: nowrap; width: 1%; padding-right: 26px;.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;+.fcard-link {+ display: block; margin-top: auto; padding-top: 16px;color: var(--acc); font-size: 13.5px; font-weight: 500;}+.fcard-link:hover { text-decoration: underline; }/* `display: flex` here beats the UA's `[hidden] { display: none }`, so the attribute has tobe honoured explicitly — otherwise the arrows show up without JS, where they do nothing. */@@ -771,52 +764,6 @@ table.cfg td:first-child { white-space: nowrap; width: 1%; padding-right: 26px;/* Touch scrolls; the arrows are for pointers that cannot swipe. */@media (hover: none) { .frail-nav { display: none; } }-.fdlg {- /* margin:auto is what centres a modal dialog, and `* { margin: 0 }` at the top of this- file had taken it away — the dialog was rendering at its static position, which put it- off the top-left of the viewport on desktop and completely off-screen on a phone. */- /* Pinned to the viewport, not the document. Left to the browser it resolved to- `position: absolute`, so `inset: 0; margin: auto` centred it inside the initial- containing block — near the top of the PAGE — and opening it scrolled the whole page- up to meet it. `fixed` also makes this the containing block for the close button. */- position: fixed; inset: 0; margin: auto;- width: min(460px, calc(100% - 2 * var(--pad)));- height: fit-content;- max-height: calc(100dvh - 2 * var(--pad));- padding: 26px; border: 1px solid var(--hair); border-radius: var(--r-m);- background: var(--surface); color: var(--fg);- overflow: auto; overscroll-behavior: contain;-}-/* Fade in with the backdrop rather than snapping into place. */-.fdlg[open] { animation: dlgIn .26s var(--ease); }-.fdlg[open]::backdrop { animation: dlgBackdrop .26s var(--ease); }-@keyframes dlgIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }-@keyframes dlgBackdrop { from { opacity: 0; } }-@media (prefers-reduced-motion: reduce) {- .fdlg[open], .fdlg[open]::backdrop { animation: none; }-}-.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; }/* ------------------------------------------------------------ first-visit introThe hero settles in on the first load of a visit instead of appearing all at once.