From ef6c6b584e25b590fae41efbf0daa5dc28a9deb0 Mon Sep 17 00:00:00 2001 From: martbost Date: Sat, 10 Oct 2026 18:07:32 -0500 Subject: [PATCH] Games page: a strip of featured warriors from the PolyWarriors market (rarest listings, forged art, links into the market) Co-Authored-By: Claude Fable 5.1 --- public/assets/games-page.js | 7 +++++++ public/games.html | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/public/assets/games-page.js b/public/assets/games-page.js index 6dcd96a..4c36451 100644 --- a/public/assets/games-page.js +++ b/public/assets/games-page.js @@ -23,4 +23,11 @@ if (live.length) L.innerHTML = '

Open now ยท ' + live.length + ' game' + (live.length === 1 ? '' : 's') + '

' + live.map(card).join('') + '
'; if (soon.length) S.innerHTML = '

Opening next

' + soon.map(card).join('') + '
'; }).catch(function () { document.getElementById('gEmpty').hidden = false; }); + // featured warriors from the PolyWarriors market (2026-10-10): the rarest listings, with the forged art + fetch('https://www.polywarriors.com/api/public/featured').then(function (r) { return r.json(); }).then(function (d) { + var f = (d && d.featured) || []; if (!f.length) return; var S = document.getElementById('gSoon'); var host = document.createElement('div'); host.id = 'gFeatured'; + host.innerHTML = '

From the PolyWarriors market open the market

'; + S.parentNode.insertBefore(host, S.nextSibling); + }).catch(function () {}); })(); diff --git a/public/games.html b/public/games.html index f3c392e..6267f6d 100644 --- a/public/games.html +++ b/public/games.html @@ -44,6 +44,12 @@ .cta p{margin:0;color:var(--muted);max-width:60ch} .cta .btn{display:inline-block;padding:12px 18px;border-radius:12px;background:var(--mint);color:#04261f;font-weight:800;text-decoration:none;font-family:var(--disp)} #gEmpty{color:var(--muted)} + .fgrid{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,1fr);gap:12px;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x mandatory} + .fcard{scroll-snap-align:start;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.03);border:1px solid var(--line);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 35%,transparent);text-decoration:none;color:var(--text);display:flex;flex-direction:column} + .fpic{aspect-ratio:3/4;background:#061417;position:relative}.fpic img{width:100%;height:100%;object-fit:cover;display:block} + .ftag{position:absolute;left:8px;top:8px;font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;padding:3px 7px;border-radius:999px;background:rgba(0,0,0,.6);color:var(--rc);border:1px solid var(--rc)} + .fsale{position:absolute;right:8px;top:8px;font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;padding:3px 7px;border-radius:999px;background:var(--mint);color:#04261f;font-weight:800} + .fb{padding:8px 10px 10px;display:grid;gap:2px}.fb b{font-size:14px}.fb small{color:var(--muted);font-size:11px}.fb .fp{color:var(--gold,#e2b04a);font-weight:800;font-size:13px} @@ -72,6 +78,6 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- +