Hero video on the coming-soon page: coins stacking with amounts and chip sounds, autoplay muted with Tap for sound, OG poster

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-01 05:39:48 -05:00
parent f9531e1939
commit 0325b87e0b
3 changed files with 31 additions and 15 deletions
+31 -15
View File
@@ -7,34 +7,37 @@
<meta name="description" content="Your bag of POL from across the network, in one place to show off and share. Coming soon.">
<meta property="og:title" content="Stack POL · coming soon">
<meta property="og:description" content="Your bag of POL from across the network, in one place to show off and share.">
<meta property="og:image" content="https://stackpol.com/stackpol-hero-poster.jpg">
<meta property="og:video" content="https://stackpol.com/stackpol-hero.mp4">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 4l24 14v28L32 60 8 46V18z' fill='%238247e5'/%3E%3C/svg%3E">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@600;800&family=Manrope:wght@400;600&display=swap">
<style>
:root{color-scheme:dark;--ground:#0b0716;--ink:#f1edff;--muted:#a79fc4;--violet:#8247e5;--violet-hi:#b794ff;--gold:#ffc24b;--line:rgba(183,148,255,.22)}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;display:grid;place-items:center;padding:24px 16px;background:var(--ground);color:var(--ink);font:16px/1.6 Manrope,system-ui,sans-serif;
background-image:radial-gradient(ellipse 60% 45% at 50% 30%,rgba(130,71,229,.28),transparent 65%),radial-gradient(ellipse 40% 35% at 80% 90%,rgba(255,194,75,.10),transparent 60%)}
main{max-width:560px;text-align:center}
.coins{position:relative;width:180px;height:150px;margin:0 auto 26px}
.coin{position:absolute;left:50%;width:120px;height:30px;margin-left:-60px;border-radius:50%;background:linear-gradient(180deg,#c9a7ff,#8247e5 60%,#4b1f9e);box-shadow:0 0 0 2px rgba(255,255,255,.18) inset,0 8px 20px -6px rgba(0,0,0,.7)}
.coin::after{content:"";position:absolute;inset:6px 22px;border-radius:50%;border:2px solid rgba(255,255,255,.35)}
.coin:nth-child(1){bottom:0}.coin:nth-child(2){bottom:20px;margin-left:-56px}.coin:nth-child(3){bottom:40px;margin-left:-63px}.coin:nth-child(4){bottom:60px;margin-left:-58px}
.coin:nth-child(5){bottom:80px;margin-left:-61px;background:linear-gradient(180deg,#ffe9a8,#ffc24b 60%,#c27b00);animation:drop 2.6s ease-in-out infinite}
@keyframes drop{0%,20%{transform:translateY(-60px);opacity:0}45%{transform:translateY(0);opacity:1}100%{transform:translateY(0);opacity:1}}
@media (prefers-reduced-motion:reduce){.coin:nth-child(5){animation:none}}
h1{font:800 clamp(34px,8vw,52px)/1.05 Sora,sans-serif;letter-spacing:-.01em;margin:0 0 12px}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:24px 16px 40px;background:var(--ground);color:var(--ink);font:16px/1.6 Manrope,system-ui,sans-serif;
background-image:radial-gradient(ellipse 60% 45% at 50% 20%,rgba(130,71,229,.28),transparent 65%),radial-gradient(ellipse 40% 35% at 80% 90%,rgba(255,194,75,.10),transparent 60%)}
main{width:100%;max-width:960px;text-align:center}
.stage{position:relative;width:100%;aspect-ratio:16/9;border-radius:20px;overflow:hidden;background:#000;border:1px solid var(--line);box-shadow:0 40px 90px -30px rgba(0,0,0,.9),0 0 80px -20px rgba(130,71,229,.45);margin:8px 0 26px}
.stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.sound{position:absolute;right:14px;bottom:14px;z-index:2;display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(11,7,22,.7);color:#fff;font:600 13px Sora,sans-serif;cursor:pointer;backdrop-filter:blur(6px)}
.sound:hover{border-color:var(--violet-hi)}
h1{font:800 clamp(34px,7vw,52px)/1.05 Sora,sans-serif;letter-spacing:-.01em;margin:0 0 12px}
h1 span{background:linear-gradient(90deg,var(--violet-hi),var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent}
p{color:var(--muted);margin:0 auto 14px;max-width:46ch}
.pill{display:inline-block;margin-bottom:18px;padding:4px 12px;border:1px solid var(--line);border-radius:999px;font:600 12px Sora,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--violet-hi)}
p{color:var(--muted);margin:0 auto 14px;max-width:52ch}
.pill{display:inline-block;margin-bottom:14px;padding:4px 12px;border:1px solid var(--line);border-radius:999px;font:600 12px Sora,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--violet-hi)}
.links{margin-top:22px;display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.links a{color:var(--ink);text-decoration:none;padding:10px 16px;border-radius:12px;border:1px solid var(--line);background:rgba(130,71,229,.12);font-weight:600}
.links a:hover{border-color:var(--violet-hi)}
.fine{font-size:12px;color:#7d7699;margin-top:28px}
</style>
</head>
<body>
<main>
<div class="coins" aria-hidden="true"><i class="coin"></i><i class="coin"></i><i class="coin"></i><i class="coin"></i><i class="coin"></i></div>
<div class="stage">
<video id="hero" src="/stackpol-hero.mp4" poster="/stackpol-hero-poster.jpg" autoplay muted loop playsinline preload="auto"></video>
<button class="sound" id="sound" type="button" aria-pressed="false">🔇 Tap for sound</button>
</div>
<span class="pill">Coming soon</span>
<h1>Stack <span>POL</span></h1>
<p>Every site in the network that pays you POL, stacked into one bag you can show off and share.</p>
@@ -44,6 +47,19 @@ p{color:var(--muted);margin:0 auto 14px;max-width:46ch}
<a href="https://polhunter.com/">PolHunter</a>
<a href="https://driprunner.saasy.top/">Drip Runner</a>
</div>
<p class="fine">The amounts in the video are an illustration, not a promise of what anyone will earn.</p>
</main>
<script>
(function () {
var v = document.getElementById('hero'), b = document.getElementById('sound');
b.addEventListener('click', function () {
v.muted = !v.muted;
if (!v.muted) { v.currentTime = 0; v.play().catch(function () {}); }
b.textContent = v.muted ? '🔇 Tap for sound' : '🔊 Sound on';
b.setAttribute('aria-pressed', String(!v.muted));
});
v.play().catch(function () {}); // some phones need a nudge even for muted autoplay
})();
</script>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.