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
+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>
|
||||
|
||||
Reference in new issue
Block a user