Website: fix screenshot aspect ratio, embed the live demo, GitHub button in hero
The screenshot img tags carry width/height attributes; with only a CSS width the height attribute won (240x2532 — stretched). height:auto fixes it. New #demo section runs the GitHub-Pages demo in a phone frame right on the page; nav gets a Demo link and the hero a GitHub star button.
This commit is contained in:
1 parent
becd2357ff
commit
ae399cd1dd
4 files changed
+29
-3
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
+15
-1
@@ -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>
|
||||
|
||||
+12
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user