5xYourTeam card + Draft Day art (2026-11-15, LOCAL ONLY): kie.ai tier frames, Envato rings/medals/holo/back, Draft Day confetti/spotlights/scoreboard, Champiun

- Trading cards: five kie.ai nano-banana-pro tier frames (Rookie steel, Starter silver, Pro gold trim, All-Star gold + holo,
  Hall of Fame ornate gold + laurels), F4 avatar ring + B1 rank medal per tier, F5 holo foil on Pro/All-Star/HoF, sized in cqw
- Card back from F1 (text layers hidden, green re-tinted gold): tap/Enter flips a card to the stats layout (team, how drafted,
  milestone, games played, the tier ladder); landscape, takes two grid slots. Milestones only, never earnings.
- Draft Day 1080 card: D2 spotlights, D1 gold confetti, D5 scoreboard plate (blank) for the totals
- Champiun (T3, Basic Latin WOFF subset) only for the ON THE CLOCK headline and pick numbers
- tools/derive-art.py builds the web derivatives from ../assets-src (raw packs stay out of public/); public/art/MANIFEST.md maps
  each file to its source item, author and license code; tools/art.mjs renders kit/OG/proof/tier art with the same cards
- ?v= tags bumped to 2; unit 62/62, smoke 156/156 (UI_FONTS=1), iap-tank 23/23

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-15 07:45:43 -06:00
parent 8645b471ae
commit f6dbbfdcd3
69 changed files with 322 additions and 82 deletions
+17 -3
View File
@@ -76,12 +76,26 @@ window.FX = (function () {
tick(); setInterval(tick, 25000);
}
// a trading card (milestones only, never earnings)
// Front: the tier frame (public/art/tc, see public/art/MANIFEST.md), the avatar ring with initials, the rank medal, name + team
// + milestone. Tap or Enter flips it to the back (the stats layout: team, how drafted, milestone, games played, the tier ladder).
const CARD_TIERS = [['rookie', 'Rookie', 'Drafted'], ['starter', 'Starter', 'Wallet'], ['pro', 'Pro', 'Payouts'], ['allstar', 'All-Star', 'Purchase'], ['hof', 'Hall of Fame', 'Own team']];
function card(c, opts) {
const o = opts || {};
return '<article class="tc ' + esc(c.tier) + (c.status === 'returned' ? ' faded' : '') + '"><div class="tier">' + esc(c.tierName) + '</div><div class="face">' + esc(initials(c.username)) + '</div>'
+ '<div class="info"><b>@' + esc(c.username || 'player') + '</b><span>Team @' + esc(c.coach) + (c.round ? ' · Round ' + esc(c.round) : c.kind === 'instant' ? ' · Instant pick' : '') + '</span><span>' + esc(c.milestone) + '</span>'
+ '<span>Games played: ' + (c.plays == null ? 'not tracked yet' : n(c.plays)) + '</span>' + (c.status === 'returned' ? '<span class="dim">Back in the pool</span>' : '') + (o.extra || '') + '</div></article>';
const how = c.round ? 'Round ' + esc(c.round) : c.kind === 'instant' ? 'Instant pick' : 'Drafted';
const games = c.plays == null ? 'not tracked yet' : n(c.plays);
const at = Math.max(0, CARD_TIERS.findIndex(t => t[0] === c.tier));
const back = c.status === 'returned' ? '<span class="dim">Back in the pool</span>' : '';
return '<article class="tc ' + esc(c.tier) + (c.status === 'returned' ? ' faded' : '') + '" tabindex="0" role="button" aria-pressed="false" aria-label="@' + esc(c.username || 'player') + ', ' + esc(c.tierName) + ' card. Flip for the stats.">'
+ '<div class="fr"><div class="tier">' + esc(c.tierName) + '</div><div class="face"><span>' + esc(initials(c.username)) + '</span></div><i class="medal" aria-hidden="true"></i>'
+ '<div class="info"><b>@' + esc(c.username || 'player') + '</b><span>Team @' + esc(c.coach) + (c.round ? ' · Round ' + esc(c.round) : c.kind === 'instant' ? ' · Instant pick' : '') + '</span><span>' + esc(c.milestone) + '</span>' + back + (o.extra || '') + '</div></div>'
+ '<div class="bk" aria-hidden="true"><b class="nm">@' + esc(c.username || 'player') + '</b><span class="tg">' + esc(c.tierName) + '</span>'
+ '<dl><dt>Team</dt><dd>@' + esc(c.coach) + '</dd><dt>Joined the team</dt><dd>' + how + '</dd><dt>Latest milestone</dt><dd>' + esc(c.milestone) + '</dd><dt>Games played</dt><dd>' + games + '</dd>' + (back ? '<dt>Status</dt><dd>' + back + '</dd>' : '') + '</dl>'
+ '<p class="cap">CARD LADDER</p><div class="lad">' + CARD_TIERS.map((t, i) => '<span' + (i <= at ? ' class="on"' : '') + '><em>' + esc(t[1]) + '</em><i>' + esc(t[2]) + '</i><u>' + (i <= at ? '✓' : '-') + '</u></span>').join('') + '</div>'
+ '<p class="ft">5xyourteam.com/cards · milestones only, never earnings</p></div></article>';
}
document.addEventListener('click', e => { const t = e.target.closest && e.target.closest('.tc'); if (t && !e.target.closest('a,button')) flip(t); });
document.addEventListener('keydown', e => { if ((e.key === 'Enter' || e.key === ' ') && e.target.classList && e.target.classList.contains('tc')) { e.preventDefault(); flip(e.target); } });
function flip(t) { const on = t.classList.toggle('flip'); t.setAttribute('aria-pressed', on ? 'true' : 'false'); t.querySelector('.bk').setAttribute('aria-hidden', on ? 'false' : 'true'); }
// signed in on InstantAdPay already? one quick hop there and back signs you in here too
async function silentSso(to) { try { const ss = await getJSON('/api/sso/status'); if (ss && ss.check) { location.replace('/sso/start?mode=check&via=iap&to=' + encodeURIComponent(to)); return true; } } catch (e) {} return false; }
function signInBlock(to) {