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: fix screenshot aspect ratio, embed the live demo, GitHub button in hero

Duarte Santosae399cd1dd94
diff --git a/website/about.html b/website/about.html
index 05e21a90d..bde610637 100644
--- a/website/about.html
+++ b/website/about.html
@@ -21,6 +21,7 @@
<div class="nav-links">
<a href="/#features" class="hide-s">Features</a>
<a href="/#screens" class="hide-s">Screenshots</a>
+ <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>
diff --git a/website/docs.html b/website/docs.html
index dc3509d25..525083484 100644
--- a/website/docs.html
+++ b/website/docs.html
@@ -21,6 +21,7 @@
<div class="nav-links">
<a href="/#features" class="hide-s">Features</a>
<a href="/#screens" class="hide-s">Screenshots</a>
+ <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>
diff --git a/website/index.html b/website/index.html
index ffececfd8..7c715861b 100644
--- a/website/index.html
+++ b/website/index.html
@@ -35,6 +35,7 @@
<div class="nav-links">
<a href="#features" class="hide-s">Features</a>
<a href="#screens" class="hide-s">Screenshots</a>
+ <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>
@@ -52,7 +53,8 @@
No subscription, no account required, no telemetry — ever.</p>
<div class="hero-btns">
<a class="btn" href="#download">Get openGym</a>
- <a class="btn ghost" href="https://duartesantos8.github.io/openGym/" rel="noopener">Try the live demo</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>
</div>
</div></header>
@@ -89,6 +91,18 @@
</div>
</div></section>
+<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>
+ </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">
<p class="kicker">Get openGym</p>
<h2>One app, two flavors</h2>
diff --git a/website/styles.css b/website/styles.css
index f87d538b0..c633e025f 100644
--- a/website/styles.css
+++ b/website/styles.css
@@ -75,11 +75,21 @@ h2 { font-size: clamp(26px, 4.5vw, 34px); letter-spacing: -.02em; margin: 6px 0
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
.shots figure { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shots img {
- width: min(240px, 62vw); border-radius: 22px; border: 1px solid var(--line);
- display: block; background: var(--card);
+ width: min(240px, 62vw); height: auto; border-radius: 22px;
+ border: 1px solid var(--line); display: block; background: var(--card);
}
.shots figcaption { color: var(--faint); font-size: 13px; margin-top: 8px; }
+/* ---------- embedded live demo ---------- */
+.demo-wrap { display: flex; justify-content: center; padding: 10px 0 6px; }
+.phone {
+ width: 384px; max-width: 92vw; height: min(720px, 78vh); border-radius: 42px;
+ border: 10px solid #1c1f26; overflow: hidden; background: #000;
+ box-shadow: 0 34px 90px rgba(0, 0, 0, .55);
+}
+.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
+.demo-note { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 14px; }
+
/* ---------- flavors ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.card {