diff --git a/public/admin.html b/public/admin.html index e23f7c9..d486975 100644 --- a/public/admin.html +++ b/public/admin.html @@ -19,7 +19,7 @@ - +
@@ -28,7 +28,7 @@

Best Coach pot (last week)

Old-link map (JSON {"oldrefs": {"old": "network username"}})

- - + + diff --git a/public/art/MANIFEST.md b/public/art/MANIFEST.md new file mode 100644 index 0000000..f81a031 --- /dev/null +++ b/public/art/MANIFEST.md @@ -0,0 +1,37 @@ +# 5xYourTeam art manifest + +Every derived art file in `public/art/tc`, `public/art/dd` and the web font, with its source. Built by `python tools/derive-art.py` +from the source packs in `../assets-src` (outside the app, never in a public folder). Envato Elements items are licensed to +Marty Bostick under the license name **5xYourTeam.com** (2026-11-15); certificates in `../assets-src/envato/licenses/`. +kie.ai frames: nano-banana-pro, 2K, 2:3, generated 2026-11-15; masters + prompts in `../assets-src/kie/`. + +| Derived file | Source | Item / author | License code | +|---|---|---|---| +| tc/frame-rookie.jpg | kie.ai `r1-rookie` | kie.ai nano-banana-pro (generated for 5xYourTeam) | n/a | +| tc/frame-starter.jpg | kie.ai `r2-starter-b` | kie.ai nano-banana-pro | n/a | +| tc/frame-pro.jpg | kie.ai `r1-pro` | kie.ai nano-banana-pro | n/a | +| tc/frame-allstar.jpg | kie.ai `r1-allstar` | kie.ai nano-banana-pro | n/a | +| tc/frame-hof.jpg | kie.ai `r1-hof` | kie.ai nano-banana-pro | n/a | +| tc/ring-rookie.png | F4, Tier Frame 18 | Tier 3D Frame / Unerispace | M6S5QHEDNX | +| tc/ring-starter.png | F4, Tier Frame 20 | Tier 3D Frame / Unerispace | M6S5QHEDNX | +| tc/ring-pro.png | F4, Tier Frame 12 | Tier 3D Frame / Unerispace | M6S5QHEDNX | +| tc/ring-allstar.png | F4, Tier Frame 15 | Tier 3D Frame / Unerispace | M6S5QHEDNX | +| tc/ring-hof.png | F4, Tier Frame 17 | Tier 3D Frame / Unerispace | M6S5QHEDNX | +| tc/medal-rookie.png | B1, ri_4_12 | Game Rank Icons Vol.4 / myteamart | Z9LXSK35WR | +| tc/medal-starter.png | B1, ri_4_07 | Game Rank Icons Vol.4 / myteamart | Z9LXSK35WR | +| tc/medal-pro.png | B1, ri_4_09 | Game Rank Icons Vol.4 / myteamart | Z9LXSK35WR | +| tc/medal-allstar.png | B1, ri_4_03 | Game Rank Icons Vol.4 / myteamart | Z9LXSK35WR | +| tc/medal-hof.png | B1, ri_4_05 | Game Rank Icons Vol.4 / myteamart | Z9LXSK35WR | +| tc/holo.jpg (Pro, All-Star, Hall of Fame overlay) | F5, Holographic Foil_12 | 15 Holographic Foil Textures Vol.2 / DavidBalev | HDWZ83U4YK | +| tc/back.jpg (card back, text layers hidden, green re-tinted gold) | F1, Back-Baseball-Trading-Card-Template.psd | Futuristic Baseball Trading Card PSD Template / bornx | FV8QTMNUXL | +| dd/confetti.png | D1, overlay 6 | 10 Golden Foil Confetti Overlays / PartikusiDesign | ZRT2PWEJDN | +| dd/spotlight.jpg | D2, background 2 | Stage Spotlight Overlay / Pitchlook | XWF8DYE2K4 | +| dd/scoreboard.png (blank plate: printed text covered with its own texture) | D5, k_049-01 preview | Sports scoreboard - set of vector isolated objects / BoykoPictures | B8JMRDXUKQ | +| ../assets/champiun.woff (Bold, Basic Latin subset) | T3, Champiun-Bold.ttf | Champiun - Bold and Powerful Sports Fonts / DikasStudio | L7KSTFCHAQ | + +Used where: the trading cards (`FX.card` in `public/assets/common.js`, styles in `public/assets/fx.css`, and the static renders in +`tools/art.mjs`: cards/, kit/, proof/, og-share.png); the Draft Day card (`public/draftday.html` from `tools/pages.mjs`). +Champiun is only for the "ON THE CLOCK" headline (`#heroKick`) and pick numbers (draft tracker, Draft Day rows). + +Files not listed here (icon-192.png, og-share.png, cards/, kit/, proof/, draftday/week-*.png) are rendered by `tools/art.mjs` +from HTML; their card images come from the files above. diff --git a/public/art/cards/fx-coach-card.png b/public/art/cards/fx-coach-card.png index 1b86a01..719ba51 100644 Binary files a/public/art/cards/fx-coach-card.png and b/public/art/cards/fx-coach-card.png differ diff --git a/public/art/cards/fx-tiers.png b/public/art/cards/fx-tiers.png index f965a47..cbdd184 100644 Binary files a/public/art/cards/fx-tiers.png and b/public/art/cards/fx-tiers.png differ diff --git a/public/art/dd/confetti.png b/public/art/dd/confetti.png new file mode 100644 index 0000000..02432ef Binary files /dev/null and b/public/art/dd/confetti.png differ diff --git a/public/art/dd/scoreboard.png b/public/art/dd/scoreboard.png new file mode 100644 index 0000000..917b035 Binary files /dev/null and b/public/art/dd/scoreboard.png differ diff --git a/public/art/dd/spotlight.jpg b/public/art/dd/spotlight.jpg new file mode 100644 index 0000000..8b1cd4f Binary files /dev/null and b/public/art/dd/spotlight.jpg differ diff --git a/public/art/kit/fx-cards-social.png b/public/art/kit/fx-cards-social.png index 8bdf611..e46aeaa 100644 Binary files a/public/art/kit/fx-cards-social.png and b/public/art/kit/fx-cards-social.png differ diff --git a/public/art/kit/fx-cards-square.png b/public/art/kit/fx-cards-square.png index 9237e7c..4f2d649 100644 Binary files a/public/art/kit/fx-cards-square.png and b/public/art/kit/fx-cards-square.png differ diff --git a/public/art/kit/fx-cards-tower.png b/public/art/kit/fx-cards-tower.png index bc132cc..b4ce9f5 100644 Binary files a/public/art/kit/fx-cards-tower.png and b/public/art/kit/fx-cards-tower.png differ diff --git a/public/art/kit/fx-coach-social.png b/public/art/kit/fx-coach-social.png index a71b0d2..5f6ffd0 100644 Binary files a/public/art/kit/fx-coach-social.png and b/public/art/kit/fx-coach-social.png differ diff --git a/public/art/kit/fx-coach-square.png b/public/art/kit/fx-coach-square.png index c60b41a..ba2f155 100644 Binary files a/public/art/kit/fx-coach-square.png and b/public/art/kit/fx-coach-square.png differ diff --git a/public/art/kit/fx-coach-tower.png b/public/art/kit/fx-coach-tower.png index fbf1919..614f94e 100644 Binary files a/public/art/kit/fx-coach-tower.png and b/public/art/kit/fx-coach-tower.png differ diff --git a/public/art/kit/fx-draft-leader.png b/public/art/kit/fx-draft-leader.png index ce1ebdb..be564a1 100644 Binary files a/public/art/kit/fx-draft-leader.png and b/public/art/kit/fx-draft-leader.png differ diff --git a/public/art/kit/fx-draft-social.png b/public/art/kit/fx-draft-social.png index 6e33668..296f0a3 100644 Binary files a/public/art/kit/fx-draft-social.png and b/public/art/kit/fx-draft-social.png differ diff --git a/public/art/kit/fx-draft-square.png b/public/art/kit/fx-draft-square.png index 50ead50..d2fd5ac 100644 Binary files a/public/art/kit/fx-draft-square.png and b/public/art/kit/fx-draft-square.png differ diff --git a/public/art/kit/fx-draft-tower.png b/public/art/kit/fx-draft-tower.png index ea16f65..d543395 100644 Binary files a/public/art/kit/fx-draft-tower.png and b/public/art/kit/fx-draft-tower.png differ diff --git a/public/art/og-share.png b/public/art/og-share.png index 5dc1069..5803c20 100644 Binary files a/public/art/og-share.png and b/public/art/og-share.png differ diff --git a/public/art/proof/fx-proof-field.png b/public/art/proof/fx-proof-field.png index 6ce0e87..0bd68a1 100644 Binary files a/public/art/proof/fx-proof-field.png and b/public/art/proof/fx-proof-field.png differ diff --git a/public/art/proof/fx-proof-gold.png b/public/art/proof/fx-proof-gold.png index 0f2236d..e4b5ed8 100644 Binary files a/public/art/proof/fx-proof-gold.png and b/public/art/proof/fx-proof-gold.png differ diff --git a/public/art/proof/fx-proof-navy.png b/public/art/proof/fx-proof-navy.png index 320e61f..82a88c2 100644 Binary files a/public/art/proof/fx-proof-navy.png and b/public/art/proof/fx-proof-navy.png differ diff --git a/public/art/tc/back.jpg b/public/art/tc/back.jpg new file mode 100644 index 0000000..bab8585 Binary files /dev/null and b/public/art/tc/back.jpg differ diff --git a/public/art/tc/frame-allstar.jpg b/public/art/tc/frame-allstar.jpg new file mode 100644 index 0000000..44b1184 Binary files /dev/null and b/public/art/tc/frame-allstar.jpg differ diff --git a/public/art/tc/frame-hof.jpg b/public/art/tc/frame-hof.jpg new file mode 100644 index 0000000..53d7268 Binary files /dev/null and b/public/art/tc/frame-hof.jpg differ diff --git a/public/art/tc/frame-pro.jpg b/public/art/tc/frame-pro.jpg new file mode 100644 index 0000000..927763d Binary files /dev/null and b/public/art/tc/frame-pro.jpg differ diff --git a/public/art/tc/frame-rookie.jpg b/public/art/tc/frame-rookie.jpg new file mode 100644 index 0000000..d2c1a93 Binary files /dev/null and b/public/art/tc/frame-rookie.jpg differ diff --git a/public/art/tc/frame-starter.jpg b/public/art/tc/frame-starter.jpg new file mode 100644 index 0000000..224b450 Binary files /dev/null and b/public/art/tc/frame-starter.jpg differ diff --git a/public/art/tc/holo.jpg b/public/art/tc/holo.jpg new file mode 100644 index 0000000..3e0c4af Binary files /dev/null and b/public/art/tc/holo.jpg differ diff --git a/public/art/tc/medal-allstar.png b/public/art/tc/medal-allstar.png new file mode 100644 index 0000000..c89042c Binary files /dev/null and b/public/art/tc/medal-allstar.png differ diff --git a/public/art/tc/medal-hof.png b/public/art/tc/medal-hof.png new file mode 100644 index 0000000..753e0e9 Binary files /dev/null and b/public/art/tc/medal-hof.png differ diff --git a/public/art/tc/medal-pro.png b/public/art/tc/medal-pro.png new file mode 100644 index 0000000..65890e4 Binary files /dev/null and b/public/art/tc/medal-pro.png differ diff --git a/public/art/tc/medal-rookie.png b/public/art/tc/medal-rookie.png new file mode 100644 index 0000000..b6d3d11 Binary files /dev/null and b/public/art/tc/medal-rookie.png differ diff --git a/public/art/tc/medal-starter.png b/public/art/tc/medal-starter.png new file mode 100644 index 0000000..e21e889 Binary files /dev/null and b/public/art/tc/medal-starter.png differ diff --git a/public/art/tc/ring-allstar.png b/public/art/tc/ring-allstar.png new file mode 100644 index 0000000..e0fa17c Binary files /dev/null and b/public/art/tc/ring-allstar.png differ diff --git a/public/art/tc/ring-hof.png b/public/art/tc/ring-hof.png new file mode 100644 index 0000000..b7079d0 Binary files /dev/null and b/public/art/tc/ring-hof.png differ diff --git a/public/art/tc/ring-pro.png b/public/art/tc/ring-pro.png new file mode 100644 index 0000000..01aa6e9 Binary files /dev/null and b/public/art/tc/ring-pro.png differ diff --git a/public/art/tc/ring-rookie.png b/public/art/tc/ring-rookie.png new file mode 100644 index 0000000..e9d69f2 Binary files /dev/null and b/public/art/tc/ring-rookie.png differ diff --git a/public/art/tc/ring-starter.png b/public/art/tc/ring-starter.png new file mode 100644 index 0000000..ce7efde Binary files /dev/null and b/public/art/tc/ring-starter.png differ diff --git a/public/assets/champiun.woff b/public/assets/champiun.woff new file mode 100644 index 0000000..a9d3e5d Binary files /dev/null and b/public/assets/champiun.woff differ diff --git a/public/assets/common.js b/public/assets/common.js index 3e2f850..cc9179f 100644 --- a/public/assets/common.js +++ b/public/assets/common.js @@ -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 '
' + esc(c.tierName) + '
' + esc(initials(c.username)) + '
' - + '
@' + esc(c.username || 'player') + 'Team @' + esc(c.coach) + (c.round ? ' · Round ' + esc(c.round) : c.kind === 'instant' ? ' · Instant pick' : '') + '' + esc(c.milestone) + '' - + 'Games played: ' + (c.plays == null ? 'not tracked yet' : n(c.plays)) + '' + (c.status === 'returned' ? 'Back in the pool' : '') + (o.extra || '') + '
'; + 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' ? 'Back in the pool' : ''; + return '
' + + '
' + esc(c.tierName) + '
' + esc(initials(c.username)) + '
' + + '
@' + esc(c.username || 'player') + 'Team @' + esc(c.coach) + (c.round ? ' · Round ' + esc(c.round) : c.kind === 'instant' ? ' · Instant pick' : '') + '' + esc(c.milestone) + '' + back + (o.extra || '') + '
' + + '
'; } + 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) { diff --git a/public/assets/fx.css b/public/assets/fx.css index 8c6edbc..46fd005 100644 --- a/public/assets/fx.css +++ b/public/assets/fx.css @@ -117,17 +117,61 @@ textarea{min-height:84px;resize:vertical} .help .h{display:flex;gap:12px;align-items:center;justify-content:space-between;background:var(--panel2);padding:10px 12px;flex-wrap:wrap} .help .h b{font-family:var(--disp);font-size:17px} /* trading cards */ -.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px} -.tc{border:6px solid var(--rookie);background:#e5e9f4;color:var(--paperInk);min-height:380px;display:flex;flex-direction:column} -.tc .tier{font-family:var(--disp);letter-spacing:3px;text-align:center;padding:6px;background:var(--rookie);color:var(--paperInk);text-transform:uppercase} -.tc .face{height:150px;display:flex;align-items:center;justify-content:center;font-family:var(--disp);font-size:48px;background:#c6cde0;color:var(--paperMuted)} -.tc .info{padding:12px;display:flex;flex-direction:column;gap:4px;font-size:13px} -.tc .info b{font-family:var(--disp);font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} -.tc.starter{border-color:var(--starter);background:#eaf6ef}.tc.starter .tier{background:var(--starter);color:#fff}.tc.starter .face{background:#bfe3cf;color:#1f5c40} -.tc.pro{border-color:var(--pro);background:#e8eefc}.tc.pro .tier{background:var(--pro);color:#fff}.tc.pro .face{background:#c3d2fa;color:#1d3a96} -.tc.allstar{border-color:var(--allstar);background:#fff7df;box-shadow:0 0 0 3px var(--paperInk),0 0 24px rgba(255,201,60,.6)}.tc.allstar .tier{background:var(--allstar)}.tc.allstar .face{background:#ffe8a3;color:#7a5a00} -.tc.hof{border-color:var(--gold);background:#1a1030;color:#fff;box-shadow:0 0 0 3px var(--red)}.tc.hof .tier{background:linear-gradient(90deg,var(--gold),var(--red))}.tc.hof .face{background:#2a1a4a;color:var(--gold)} -.tc.faded{opacity:.55} +/* Art (public/art/tc, sources in public/art/MANIFEST.md): kie.ai tier frames (2:3), F4 avatar rings, B1 rank medals, F5 holo + foil on Pro / All-Star / Hall of Fame, F1 card back. Every size is in cqw (card width) so a card reads the same at any width. + Per tier: --hy/--hh header ribbon, --cy/--cd the round window (centre, diameter), --py/--ph/--px the name plaque. */ +.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;align-items:start} +.tc{--hy:8.4;--hh:10.5;--hx:8.8;--cy:62.8;--cd:72.5;--py:111.5;--ph:27.9;--px:9.7;--ink:#d7deef;--ring:url(/art/tc/ring-rookie.png);--medal:url(/art/tc/medal-rookie.png);--holo:0; + container-type:inline-size;position:relative;aspect-ratio:2/3;cursor:pointer;color:#fff;outline-offset:4px;user-select:none;-webkit-tap-highlight-color:transparent} +.tc .fr{position:absolute;inset:0;background:#0b1530 url(/art/tc/frame-rookie.jpg) center/100% 100% no-repeat;box-shadow:0 10px 26px rgba(0,0,0,.45)} +.tc .fr::before{content:"";position:absolute;inset:0;background:url(/art/tc/holo.jpg) center/cover;mix-blend-mode:soft-light;opacity:var(--holo);pointer-events:none} +.tc .tier{position:absolute;left:calc(var(--hx)*1cqw);right:calc(var(--hx)*1cqw);top:calc(var(--hy)*1cqw);height:calc(var(--hh)*1cqw);display:flex;align-items:center;justify-content:center; + font-family:var(--disp);font-weight:700;font-size:6.2cqw;letter-spacing:.9cqw;text-transform:uppercase;color:var(--ink);white-space:nowrap;text-shadow:0 .3cqw .8cqw rgba(0,0,0,.6)} +.tc .face{position:absolute;left:50%;top:calc(var(--cy)*1cqw);width:calc(var(--cd)*.84cqw);aspect-ratio:1;transform:translate(-50%,-50%);background:var(--ring) center/contain no-repeat; + display:flex;align-items:center;justify-content:center} +.tc .face span{font-family:var(--disp);font-weight:700;font-size:13.5cqw;color:#fff;letter-spacing:.4cqw;text-shadow:0 .4cqw 1.6cqw rgba(0,0,0,.7);margin-top:-1cqw} +.tc .medal{position:absolute;width:18cqw;aspect-ratio:1;left:calc(50% + var(--cd)*.22cqw);top:calc((var(--cy) + var(--cd)*.18)*1cqw);background:var(--medal) center/contain no-repeat;filter:drop-shadow(0 .6cqw 1cqw rgba(0,0,0,.6))} +.tc .info{position:absolute;left:calc(var(--px)*1cqw);right:calc(var(--px)*1cqw);top:calc(var(--py)*1cqw);height:calc(var(--ph)*1cqw);padding:1.2cqw 4cqw;display:flex;flex-direction:column;justify-content:center;gap:.3cqw; + font-size:max(4.7cqw,9.5px);line-height:1.2;color:#cfd8ee;overflow:hidden;text-align:center} +.tc .info b{font-family:var(--disp);font-size:8cqw;line-height:1.05;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} +.tc .info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} +.tc .info .dim{color:#ff8a8a} +.tc.starter{--hy:6.9;--hh:8.25;--hx:7.2;--cy:50.9;--cd:61.2;--py:90.9;--ph:50.4;--px:9;--ink:#fff;--ring:url(/art/tc/ring-starter.png);--medal:url(/art/tc/medal-starter.png)} +.tc.starter .fr{background-image:url(/art/tc/frame-starter.jpg)} +.tc.starter .info{justify-content:flex-start;padding-top:3.5cqw;gap:5cqw} +.tc.pro{--hy:14.7;--hh:7.5;--hx:14.3;--cy:65;--cd:64.4;--py:108.3;--ph:27.6;--px:13.7;--ink:var(--gold);--ring:url(/art/tc/ring-pro.png);--medal:url(/art/tc/medal-pro.png);--holo:.28} +.tc.pro .fr{background-image:url(/art/tc/frame-pro.jpg)} +.tc.allstar{--hy:12.9;--hh:8.4;--hx:12.8;--cy:61.7;--cd:61.2;--py:105.9;--ph:29.7;--px:13.8;--ink:var(--gold);--ring:url(/art/tc/ring-allstar.png);--medal:url(/art/tc/medal-allstar.png);--holo:.5} +.tc.allstar .fr{background-image:url(/art/tc/frame-allstar.jpg);box-shadow:0 0 0 2px #0b1530,0 0 26px rgba(255,201,60,.55)} +.tc.hof{--hy:13.35;--hh:7.05;--hx:13.5;--cy:62.9;--cd:58.4;--py:105;--ph:28.35;--px:14.7;--ink:var(--gold);--ring:url(/art/tc/ring-hof.png);--medal:url(/art/tc/medal-hof.png);--holo:.36} +.tc.hof .fr{background-image:url(/art/tc/frame-hof.jpg);box-shadow:0 0 0 2px var(--red),0 0 30px rgba(255,77,77,.4)} +.tc.hof .tier{font-size:5.4cqw;letter-spacing:.6cqw} +.tc.faded .fr{filter:grayscale(.7) brightness(.8)} +.tc:focus-visible{outline:3px solid var(--gold)} +/* the back (F1 template, re-tinted gold): landscape, so a flipped card takes two grid slots (two 2:3 cards side by side are + about the back's own 1125:825) */ +.tc .bk{display:none} +.tc.flip{grid-column:span 2;aspect-ratio:1125/825} +.tc.flip .fr{display:none} +.tc.flip .bk{display:block;position:absolute;inset:0;background:#fff url(/art/tc/back.jpg) center/100% 100% no-repeat;color:#0b1530;box-shadow:0 10px 26px rgba(0,0,0,.45);font-size:max(2.8cqw,10px);line-height:1.25} +.tc .bk .nm{position:absolute;left:12cqw;top:10.9cqw;width:40cqw;font-family:var(--disp);font-size:4.4cqw;line-height:1;color:#0b1530;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} +.tc .bk .tg{position:absolute;left:62cqw;top:11.3cqw;font-family:var(--disp);font-size:3.4cqw;letter-spacing:.5cqw;text-transform:uppercase;color:#fff} +.tc .bk dl{position:absolute;left:10.4cqw;right:7.5cqw;top:20.8cqw;margin:0;display:grid;grid-template-columns:auto 1fr;gap:1cqw 3cqw} +.tc .bk dt{font-weight:700;text-transform:uppercase;letter-spacing:.1cqw;color:#4a587e;white-space:nowrap} +.tc .bk dd{margin:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} +.tc .bk .cap{position:absolute;left:10.4cqw;top:46.4cqw;margin:0;font-weight:700;font-size:max(2cqw,9px);letter-spacing:.2cqw;color:#0b1530} +.tc .bk .lad{position:absolute;left:10.1cqw;right:6.9cqw;top:49.5cqw;height:10cqw;display:grid;grid-template-columns:repeat(5,1fr);text-align:center} +.tc .bk .lad span{display:grid;grid-template-rows:repeat(3,1fr);align-items:center;font-size:max(1.9cqw,8px);line-height:1;color:#4a587e;white-space:nowrap;overflow:hidden} +.tc .bk .lad em,.tc .bk .lad i,.tc .bk .lad u{font-style:normal;text-decoration:none;overflow:hidden;text-overflow:ellipsis} +.tc .bk .lad em{font-weight:700;color:#0b1530;text-transform:uppercase} +.tc .bk .lad u{font-weight:700;color:rgba(11,21,48,.45)}.tc .bk .lad span.on u{color:#0b1530} +.tc .bk .lad span.on i{color:#0b1530;font-weight:600} +@container (max-width:210px){.tc .info>span:first-of-type{display:none}} +.tc .bk .ft{position:absolute;left:10.4cqw;right:7.5cqw;top:63.2cqw;margin:0;font-size:max(1.7cqw,8px);color:#4a587e} +/* Champiun (T3, subset WOFF): only the "ON THE CLOCK" headline and pick numbers */ +@font-face{font-family:Champiun;src:url(/assets/champiun.woff) format('woff');font-weight:700;font-display:swap} +#heroKick{font-family:Champiun,var(--disp);font-weight:700;font-size:30px;letter-spacing:2px;line-height:1.1} +#track td:first-child{font-family:Champiun,var(--disp);font-weight:700;color:var(--gold);font-size:17px;letter-spacing:1px} /* coach card */ .ccard{display:flex;flex-wrap:wrap;gap:0;background:var(--paper);color:var(--paperInk)} .ccard .l{flex:1 1 260px;background:var(--panel);color:#fff;padding:22px;display:flex;flex-direction:column;gap:8px;border-left:8px solid var(--gold)} @@ -156,7 +200,7 @@ footer.foot p{margin:4px 0}footer.foot a{color:var(--gold)}footer.foot .here{col .wm{font-size:24px}nav.top .links{gap:12px;font-size:13px} .hero h1{font-size:38px}h2{font-size:24px} .pool{grid-template-columns:minmax(0,1fr)}.team{grid-template-columns:repeat(2,minmax(0,1fr))}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px} - .tc{min-height:300px}.tc .face{height:100px;font-size:36px} + .steps{grid-template-columns:repeat(2,minmax(0,1fr))}.how{grid-template-columns:minmax(0,1fr)} .toasts{left:16px;right:16px;bottom:16px;max-width:none} } diff --git a/public/builder.html b/public/builder.html index 72d887a..013a92b 100644 --- a/public/builder.html +++ b/public/builder.html @@ -19,7 +19,7 @@ - +
@@ -28,8 +28,8 @@
- - - + + + diff --git a/public/cards.html b/public/cards.html index d740c3a..1aa525d 100644 --- a/public/cards.html +++ b/public/cards.html @@ -19,16 +19,16 @@ - +

CARD COLLECTION

Trading cards: they level up as your picks do

Public cards show milestones, never earnings.

The five tiers

-

Rookie when drafted, Starter when they link a wallet, Pro when they switch on payouts, All-Star at their first purchase, Hall of Fame when they hold a position of their own and coach a team.

+

Rookie when drafted, Starter when they link a wallet, Pro when they switch on payouts, All-Star at their first purchase, Hall of Fame when they hold a position of their own and coach a team. Tap a card to flip it for the stats on the back.

- - + + diff --git a/public/coach.html b/public/coach.html index 949f0ca..3477671 100644 --- a/public/coach.html +++ b/public/coach.html @@ -19,7 +19,7 @@ - +
@@ -27,7 +27,7 @@

The team

Milestones only. Every Monday this coach drafts people who joined the network without a sponsor and helps them get started.

- - + + diff --git a/public/contract.html b/public/contract.html index f94c1b7..2b48712 100644 --- a/public/contract.html +++ b/public/contract.html @@ -19,14 +19,14 @@ - +

CONTRACT

Check the contract yourself

Read live from Polygon. No owner withdraw, no proxy, the split fixed in the code.

- - + + diff --git a/public/disclaimer.html b/public/disclaimer.html index 0091695..353e41e 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -19,7 +19,7 @@ - +
@@ -30,7 +30,7 @@

Prices and taxes

Positions are priced in US dollars and paid in POL, whose price moves. You are responsible for any taxes on what you receive where you live.

Who to ask

TrustClickz, 615 Green Valley Drive, Moody, AL 35004. Network support.

- - + + diff --git a/public/draftday.html b/public/draftday.html index bb78015..146407d 100644 --- a/public/draftday.html +++ b/public/draftday.html @@ -1,13 +1,18 @@ Draft Day | 5xYourTeam
5XYOURTEAM
+h1{margin:0;font-family:Oswald,Impact,sans-serif;font-weight:700;font-size:108px;line-height:.95;text-shadow:0 6px 24px rgba(0,0,0,.55)}h1 span{color:#ffc93c} +.rows{display:flex;flex-direction:column;gap:12px;font-size:30px;background:rgba(7,16,42,.86);padding:16px 24px;border-left:6px solid #ffc93c}.dd-r{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #2a3a6e;padding-bottom:8px}.dd-r:last-child{border-bottom:0;padding-bottom:0} +.dd-r .s{font-family:Champiun,Oswald,sans-serif;font-weight:700;color:#ffc93c;font-size:34px;letter-spacing:1px;min-width:90px} +.ft{margin-top:auto;height:216px;background:url(/art/dd/scoreboard.png) center/100% 100% no-repeat;padding:34px 48px;display:flex;justify-content:space-between;align-items:center;filter:drop-shadow(0 10px 24px rgba(0,0,0,.6))} +.ft div{display:flex;flex-direction:column;gap:10px;font-family:Oswald,sans-serif;font-size:32px;letter-spacing:.5px}.ft .p{color:#ffc93c}.url{font-family:Oswald,sans-serif;font-size:26px;color:#b8c4e0;align-self:flex-end} +
5XYOURTEAM

DRAFT DAY
RESULTS

5xyourteam.com
- + diff --git a/public/index.html b/public/index.html index 12942e5..c82355b 100644 --- a/public/index.html +++ b/public/index.html @@ -19,7 +19,7 @@ - +
@@ -53,7 +53,7 @@

A position buys a draft spot and coaching tools, not income. Nothing is promised.

- - + + diff --git a/public/join.html b/public/join.html index c4e1994..a11e9e0 100644 --- a/public/join.html +++ b/public/join.html @@ -19,7 +19,7 @@ - +
@@ -34,8 +34,8 @@

Your sponsor gets 25% and levels 2 to 5 of your network sponsor line get 5% each. Only people who hold a position can receive a share: anyone in your line who does not is passed over and the share goes up to the next person who does. 10% goes to the weekly Best Coach pot and 45% to 5xYourTeam. The contract keeps nothing. Check it on the contract page and every payment on the ledger.

A position buys a draft spot and coaching tools, not income. Nothing is promised.

- - - + + + diff --git a/public/ledger.html b/public/ledger.html index 6c93eb8..6b18e5c 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -19,7 +19,7 @@ - +
@@ -28,7 +28,7 @@
WHENPOSITIONPAID IN THE SAME TRANSACTION

Best Coach payouts

WEEKCOACHPOL
- - + + diff --git a/public/privacy.html b/public/privacy.html index 707a0f9..6359752 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -19,7 +19,7 @@ - +
@@ -32,7 +32,7 @@

Your choices

You can ask us to remove your account and messages here. Records on the blockchain cannot be removed by anyone.

Contact

TrustClickz, 615 Green Valley Drive, Moody, AL 35004. Network support. Last updated November 15, 2026.

- - + + diff --git a/public/promote.html b/public/promote.html index f70df63..19c3a64 100644 --- a/public/promote.html +++ b/public/promote.html @@ -19,7 +19,7 @@ - +
@@ -28,8 +28,8 @@
- - - + + + diff --git a/public/team.html b/public/team.html index 41d0761..6b4e97a 100644 --- a/public/team.html +++ b/public/team.html @@ -19,7 +19,7 @@ - +
@@ -52,8 +52,8 @@
- - - + + + diff --git a/public/terms.html b/public/terms.html index 6bacca0..80ff63c 100644 --- a/public/terms.html +++ b/public/terms.html @@ -19,7 +19,7 @@ - +
@@ -37,7 +37,7 @@

The service

The site is provided as it is. We work to keep it running but cannot promise it will always be available or free of errors. The smart contract runs on Polygon on its own; its rules are public on the contract page. We may change features, draft settings, the price of future positions or these terms; changes apply from the date they are posted here. As far as the law allows, our total responsibility to you is limited to what you paid for the purchase in question. These terms are governed by the laws of the State of Alabama, USA.

Contact

TrustClickz, 615 Green Valley Drive, Moody, AL 35004. Network support. Last updated November 15, 2026.

- - + + diff --git a/qa/out/desktop-board.png b/qa/out/desktop-board.png index f8dfa70..407e607 100644 Binary files a/qa/out/desktop-board.png and b/qa/out/desktop-board.png differ diff --git a/qa/out/desktop-cards.png b/qa/out/desktop-cards.png index 32628a2..2a6384c 100644 Binary files a/qa/out/desktop-cards.png and b/qa/out/desktop-cards.png differ diff --git a/qa/out/desktop-coachann.png b/qa/out/desktop-coachann.png index 974aa9d..e538b97 100644 Binary files a/qa/out/desktop-coachann.png and b/qa/out/desktop-coachann.png differ diff --git a/qa/out/desktop-ledger.png b/qa/out/desktop-ledger.png index ea26a4b..c5b1e39 100644 Binary files a/qa/out/desktop-ledger.png and b/qa/out/desktop-ledger.png differ diff --git a/qa/out/desktop-promote.png b/qa/out/desktop-promote.png index ead6cc5..be229a8 100644 Binary files a/qa/out/desktop-promote.png and b/qa/out/desktop-promote.png differ diff --git a/qa/out/draftday-2026-11-16.png b/qa/out/draftday-2026-11-16.png index 2c04201..a6e90c6 100644 Binary files a/qa/out/draftday-2026-11-16.png and b/qa/out/draftday-2026-11-16.png differ diff --git a/qa/out/phone-board.png b/qa/out/phone-board.png index d041698..a017882 100644 Binary files a/qa/out/phone-board.png and b/qa/out/phone-board.png differ diff --git a/qa/out/phone-cards.png b/qa/out/phone-cards.png index 50916f0..2605fdd 100644 Binary files a/qa/out/phone-cards.png and b/qa/out/phone-cards.png differ diff --git a/qa/out/phone-coachann.png b/qa/out/phone-coachann.png index b3cdf0a..2f612e5 100644 Binary files a/qa/out/phone-coachann.png and b/qa/out/phone-coachann.png differ diff --git a/qa/out/phone-ledger.png b/qa/out/phone-ledger.png index b6e6fd4..c3387a1 100644 Binary files a/qa/out/phone-ledger.png and b/qa/out/phone-ledger.png differ diff --git a/qa/out/phone-promote.png b/qa/out/phone-promote.png index 9ed952c..ed999a7 100644 Binary files a/qa/out/phone-promote.png and b/qa/out/phone-promote.png differ diff --git a/qa/out/smoke.txt b/qa/out/smoke.txt index d0bdacc..a288e46 100644 --- a/qa/out/smoke.txt +++ b/qa/out/smoke.txt @@ -1 +1 @@ -2026-11-15T12:15:13.035Z 156 passed, 0 failed +2026-11-15T13:45:12.044Z 156 passed, 0 failed diff --git a/tools/art.mjs b/tools/art.mjs index 6be1fa3..3bdeb0b 100644 --- a/tools/art.mjs +++ b/tools/art.mjs @@ -24,19 +24,21 @@ body{background:#0b1530;color:#fff;font-family:Inter,sans-serif;position:relativ .g{color:#ffc93c}.tag{display:inline-block;background:#ff4d4d;color:#fff;font-family:Oswald,sans-serif;letter-spacing:2px;white-space:nowrap} .cta{display:inline-block;background:#ffc93c;color:#0b1530;font-family:Oswald,sans-serif;letter-spacing:1px;text-transform:uppercase;white-space:nowrap} .stripes{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 9.5%,rgba(255,255,255,.045) 9.5% 10%);pointer-events:none} -.tc{border-style:solid;display:flex;flex-direction:column;color:#0b1530}.tc .t{font-family:Oswald,sans-serif;letter-spacing:3px;text-align:center}.tc .f{display:flex;align-items:center;justify-content:center;font-family:Oswald,sans-serif}`; +`; const WM = px => `5XYOURTEAM`; const TIERS = { rookie: ['ROOKIE', '#e5e9f4', '#9aa6c4', '#0b1530', '#c6cde0', '#4a587e', 'Drafted'], starter: ['STARTER', '#eaf6ef', '#1f8a5b', '#fff', '#bfe3cf', '#1f5c40', 'Wallet linked'], pro: ['PRO', '#e8eefc', '#2f5be0', '#fff', '#c3d2fa', '#1d3a96', 'Payouts switched on'], allstar: ['ALL-STAR', '#fff7df', '#ffc93c', '#0b1530', '#ffe8a3', '#7a5a00', 'First purchase'], hof: ['HALL OF FAME', '#1a1030', '#ffc93c', '#0b1530', '#2a1a4a', '#ffc93c', 'Built a team of their own'] }; -// one trading card at scale f (base 220 x 380) +// one trading card at scale f (base 220 wide, 2:3): the same front as the site's FX.card (public/assets/common.js), with the +// card CSS lifted from public/assets/fx.css and its /art/tc images inlined as data URIs (setContent pages have no origin) +const FXCSS = fs.readFileSync(path.join(APP, 'public', 'assets', 'fx.css'), 'utf8'); +const CARDCSS = ':root{--disp:Oswald,Impact,sans-serif;--gold:#ffc93c;--red:#ff4d4d}' + FXCSS.slice(FXCSS.indexOf('/* Art (public/art/tc'), FXCSS.indexOf('/* Champiun')) + .replace(/url\((\/art\/tc\/[\w.-]+)\)/g, (m, u) => 'url(data:image/' + (u.endsWith('.png') ? 'png' : 'jpeg') + ';base64,' + fs.readFileSync(path.join(APP, 'public', u)).toString('base64') + ')'); +const ini = u => String(u || '').replace(/[^A-Za-z0-9]/g, '').slice(0, 2).toUpperCase() || '?'; function tcard(tier, name, team, f) { - const [lab, bg, bd, ink, face, fink, ms] = TIERS[tier]; - const hof = tier === 'hof'; - return `
-
${lab}
-
${name.slice(0, 2).toUpperCase()}
-
@${name}Team @${team}${ms}
`; + const [lab, , , , , , ms] = TIERS[tier]; + return `
${lab}
${ini(name)}
+
@${name}Team @${team}${ms}
`; } const ANG = { draft: { k: 'EVERY MONDAY', h1: 'Draft your team', h2: 'every Monday', s: 'Coaches draft people who joined the network without a sponsor. Draft order is earned.', cta: 'Get a position' }, @@ -79,7 +81,7 @@ const coachHtml = () => `' + (fonts ? FONTS : '') + '' + html + '', { waitUntil: 'load' }); + await pg.setContent('' + (fonts ? FONTS : '') + '' + html + '', { waitUntil: 'load' }); await pg.evaluate(() => document.fonts && document.fonts.ready).catch(() => {}); await pg.screenshot({ path: file, clip: { x: 0, y: 0, width: w, height: h } }); await pg.close(); } diff --git a/tools/derive-art.py b/tools/derive-art.py new file mode 100644 index 0000000..c88ec17 --- /dev/null +++ b/tools/derive-art.py @@ -0,0 +1,133 @@ +# Builds the web derivatives in public/art/tc (trading cards) and public/art/dd (Draft Day card) plus the subset web font +# public/assets/champiun.woff from the licensed source packs in ../assets-src (Envato Elements, licence "5xYourTeam.com", +# certificates in ../assets-src/envato/licenses) and the kie.ai frame masters in ../assets-src/kie. The raw packs never go in +# public/: only these resized, flattened files do. Local only. Run: python tools/derive-art.py (needs Pillow, numpy, scipy, +# fontTools). See public/art/MANIFEST.md for which file comes from which item. +import os, sys, glob, colorsys +from PIL import Image, ImageFilter +import numpy as np +from scipy import ndimage as nd + +Image.MAX_IMAGE_PIXELS = None +APP = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) +SRC = os.path.abspath(os.path.join(APP, '..', 'assets-src')) +ENV = os.path.join(SRC, 'envato') +TC = os.path.join(APP, 'public', 'art', 'tc'); DD = os.path.join(APP, 'public', 'art', 'dd') +os.makedirs(TC, exist_ok=True); os.makedirs(DD, exist_ok=True) +TIERS = ['rookie', 'starter', 'pro', 'allstar', 'hof'] + +def pack(code): + d = [p for p in glob.glob(os.path.join(ENV, code + '__*')) if os.path.isdir(p)] + if not d: sys.exit('missing pack ' + code) + return d[0] + +def one(code, pattern): + f = sorted(glob.glob(os.path.join(pack(code), '**', pattern), recursive=True)) + f = [x for x in f if '__MACOSX' not in x] + if not f: sys.exit('missing ' + code + ' ' + pattern) + return f[0] + +def trim(im): + bb = im.getchannel('A').point(lambda a: 255 if a > 8 else 0).getbbox(); return im.crop(bb) + +def square(im, size): + im = trim(im); s = max(im.size); c = Image.new('RGBA', (s, s), (0, 0, 0, 0)); c.paste(im, ((s - im.width) // 2, (s - im.height) // 2)) + return c.resize((size, size), Image.LANCZOS) + +def save_png(im, path, colors=None): + if colors: im = im.quantize(colors=colors, method=Image.FASTOCTREE, dither=Image.FLOYDSTEINBERG) + im.save(path, optimize=True); print(os.path.relpath(path, APP), os.path.getsize(path) // 1024, 'KB') + +def save_jpg(im, path, q=84): + im.convert('RGB').save(path, quality=q, optimize=True, progressive=True); print(os.path.relpath(path, APP), os.path.getsize(path) // 1024, 'KB') + +# 1. card frames (kie.ai nano-banana-pro, 1696x2528 masters, 2:3) -> 600x900 +KIE = {'rookie': 'r1-rookie', 'starter': 'r2-starter-b', 'pro': 'r1-pro', 'allstar': 'r1-allstar', 'hof': 'r1-hof'} +for t in TIERS: + save_jpg(Image.open(os.path.join(SRC, 'kie', KIE[t] + '.png')).convert('RGB').resize((600, 900), Image.LANCZOS), os.path.join(TC, 'frame-' + t + '.jpg'), 86) + +# 2. avatar rings (F4 Tier 3D Frame, Unerispace) -> 320x320 +RING = {'rookie': '18', 'starter': '20', 'pro': '12', 'allstar': '15', 'hof': '17'} +for t in TIERS: + save_png(square(Image.open(one('F4', 'Tier Frame ' + RING[t] + '.png')).convert('RGBA'), 320), os.path.join(TC, 'ring-' + t + '.png'), 200) + +# 3. rank medals (B1 Game Rank Icons Vol.4, myteamart) -> 160x160 +MEDAL = {'rookie': '12', 'starter': '07', 'pro': '09', 'allstar': '03', 'hof': '05'} +for t in TIERS: + save_png(square(Image.open(one('B1', 'ri_4_' + MEDAL[t] + '.png')).convert('RGBA'), 160), os.path.join(TC, 'medal-' + t + '.png'), 160) + +# 4. holo foil overlay (F5 15 Holographic Foil Textures Vol.2, DavidBalev, foil 12) -> portrait 600x900 +h = Image.open(one('F5', 'Holographic Foil_12.jpg')).convert('RGB'); w = int(h.height * 2 / 3) +save_jpg(h.crop(((h.width - w) // 2, 0, (h.width - w) // 2 + w, h.height)).resize((600, 900), Image.LANCZOS), os.path.join(TC, 'holo.jpg'), 78) + +# 5. card back (F1 Futuristic Baseball Trading Card PSD Template, bornx): the back with every text + logo layer hidden, the +# template's green re-tinted to 5xYourTeam gold, 1125x825 -> 900x660 +from psd_tools import PSDImage +p = PSDImage.open(one('F1', 'Back-Baseball-Trading-Card-Template.psd')) +for l in p.descendants(): + if l.kind == 'type' or 'Logo' in l.name: l.visible = False +b = np.asarray(p.composite(force=True).convert('RGB')).astype(float) / 255 +r, g, bl = b[..., 0], b[..., 1], b[..., 2] +mx = b.max(2); mn = b.min(2); green = (g > r + .08) & (g > bl + .04) +lum = (0.3 * r + 0.59 * g + 0.11 * bl) +gold = np.array([1.0, 0.788, 0.235]); deep = np.array([0.80, 0.55, 0.05]) +k = np.clip((lum - 0.25) / 0.45, 0, 1)[..., None] +tint = deep * (1 - k) + gold * k +out = np.where(green[..., None], tint, b) +save_jpg(Image.fromarray((out * 255).astype('uint8')).resize((900, 660), Image.LANCZOS), os.path.join(TC, 'back.jpg'), 86) + +# 6. Draft Day: gold confetti (D1, PartikusiDesign, overlay 6) 4000x2000 -> 1080x1080 transparent +c = Image.open(one('D1', '6.png')).convert('RGBA').resize((2160, 1080), Image.LANCZOS).crop((540, 0, 1620, 1080)) +save_png(c, os.path.join(DD, 'confetti.png'), 128) +# 7. Draft Day: stage spotlights (D2, Pitchlook, background 2) on black, blended with screen -> 1080x1080 +s = Image.open(one('D2', 'Stage Spotlight Overlay Background 2.jpg')).convert('RGB').resize((1620, 1080), Image.LANCZOS).crop((270, 0, 1350, 1080)) +save_jpg(s, os.path.join(DD, 'spotlight.jpg'), 80) + +# 8. Draft Day: scoreboard plate (D5, BoykoPictures). The pack is EPS + a 4167px preview on a baked checkerboard; no EPS +# rasteriser here, so the preview's checkerboard (period 4167/30 px) is modelled and removed, the board plate is cut out +# and its printed TIME / HOME / GUEST / digits are covered with the plate's own clean texture (a blank board). +im = Image.open(one('D5', 'k_049-01.jpg')).convert('RGB'); a = np.asarray(im).astype(int); L = a.mean(2); H, W = L.shape +S = W / 30.0; yy, xx = np.mgrid[0:H, 0:W] +par = (np.floor((yy + .5) / S).astype(int) + np.floor((xx + .5) / S).astype(int)) % 2 +v0 = np.median(L[:130, :130]); v1 = np.median(L[:130, 145:270]); exp = np.where(par == 0, v0, v1) +band = (np.abs((yy + .5) / S - np.round((yy + .5) / S)) * S < 2) | (np.abs((xx + .5) / S - np.round((xx + .5) / S)) * S < 2) +bg = ((np.abs(L - exp) <= 7) | (band & (L > 30) & (L < 60))) & ((a.max(2) - a.min(2)) <= 10) +lab, n = nd.label(bg); edge = set(np.unique(np.concatenate([lab[0], lab[-1], lab[:, 0], lab[:, -1]]))) - {0} +fg = nd.binary_opening(~np.isin(lab, list(edge)), iterations=2) +lab2, n2 = nd.label(fg); sizes = nd.sum(fg, lab2, range(1, n2 + 1)); big = int(np.argmax(sizes)) + 1 # the board + posts +board = nd.binary_fill_holes(lab2 == big) +rows = np.where(board.any(1))[0]; cols = np.where(board.any(0))[0] +# the plate is the wide part: rows where the board spans more than 60% of its width (posts are narrow) +wide = [y for y in rows if board[y].sum() > 0.6 * (cols[-1] - cols[0])]; y0, y1 = wide[0], wide[-1] +x0, x1 = cols[0], cols[-1] +orig = np.asarray(im).astype(float); plate = orig.copy() +# clean texture: a strip just inside the left edge of the plate (no print there), mirrored across the interior, then shaded +# left to right toward a clean strip on the right edge (the plate darkens to the right) and feathered into the original +inset = int(0.035 * (x1 - x0)); sx0 = x0 + inset; sw = int(0.04 * (x1 - x0)) +strip = orig[:, sx0:sx0 + sw].copy() +ix0, ix1 = x0 + inset, x1 - inset; iy0, iy1 = y0 + int(inset * .55), y1 - inset +fill = np.zeros((iy1 - iy0, ix1 - ix0, 3)); x = 0; flip = False +while x < ix1 - ix0: + wpart = min(sw, ix1 - ix0 - x); part = strip[iy0:iy1, :wpart] if not flip else strip[iy0:iy1, ::-1][:, :wpart] + fill[:, x:x + wpart] = part; x += wpart; flip = not flip +lm = strip[iy0:iy1].mean((1, 2)); rm = orig[iy0:iy1, ix1 - sw:ix1].mean((1, 2)) +lm = nd.uniform_filter1d(lm, 61); rm = nd.uniform_filter1d(rm, 61) +t = np.linspace(0, 1, ix1 - ix0)[None, :]; ratio = (1 + t * (rm / np.maximum(lm, 1) - 1)[:, None])[..., None] +fill = fill * ratio +m = np.zeros(L.shape); m[iy0:iy1, ix0:ix1] = 1; m = nd.gaussian_filter(m, 4)[iy0:iy1, ix0:ix1][..., None] +plate[iy0:iy1, ix0:ix1] = fill * m + orig[iy0:iy1, ix0:ix1] * (1 - m) +plate = np.clip(plate, 0, 255).astype('uint8') +alpha = Image.fromarray((board * 255).astype('uint8')).filter(ImageFilter.GaussianBlur(1.2)) +pl = Image.fromarray(plate); pl.putalpha(alpha); pl = pl.crop((x0 - 4, y0 - 4, x1 + 5, y1 + 5)) +# the Draft Day card wants a wide, short panel (900 x 210): drop rows from the plate's uniform middle instead of squashing it +th = int(210 * pl.width / 900); keep = th // 2 +pl = Image.fromarray(np.concatenate([np.asarray(pl)[:keep], np.asarray(pl)[-(th - keep):]])) +save_png(pl.resize((900, 210), Image.LANCZOS), os.path.join(DD, 'scoreboard.png'), 96) + +# 9. Champiun (T3, DikasStudio) Bold, subset to Basic Latin, WOFF (only the "ON THE CLOCK" headline and pick numbers use it) +from fontTools import subset +from fontTools.ttLib import TTFont +f = TTFont(one('T3', 'Champiun-Bold.ttf')) +sub = subset.Subsetter(subset.Options(layout_features=['kern', 'liga'], flavor='woff', desubroutinize=True)) +sub.populate(unicodes=list(range(0x20, 0x7f)) + [0x2019, 0xb7]); sub.subset(f) +f.flavor = 'woff'; fp = os.path.join(APP, 'public', 'assets', 'champiun.woff'); f.save(fp); print('public/assets/champiun.woff', os.path.getsize(fp) // 1024, 'KB') diff --git a/tools/pages.mjs b/tools/pages.mjs index dcf0326..ccc1991 100644 --- a/tools/pages.mjs +++ b/tools/pages.mjs @@ -8,7 +8,7 @@ import path from 'node:path'; import { fileURLToPath } from 'node:url'; const PUB = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'public'); const SITE = 'https://5xyourteam.com'; -const V = { css: 1, js: 1 }; +const V = { css: 2, js: 2 }; const F = { co: 'TrustClickz', addr: '615 Green Valley Drive, Moody, AL 35004', updated: 'November 15, 2026', usd: 10, picks: 5, rounds: 5, returnDays: 3, maxOpen: 10 }; const FONTS = 'https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Inter:wght@400;600;700&display=swap'; const NOTE = 'A position buys a draft spot and coaching tools, not income. Nothing is promised.'; @@ -118,7 +118,7 @@ page('cards.html', { path: '/cards', title: 'Card Collection | 5xYourTeam', desc

CARD COLLECTION

Trading cards: they level up as your picks do

Public cards show milestones, never earnings.

The five tiers

-

Rookie when drafted, Starter when they link a wallet, Pro when they switch on payouts, All-Star at their first purchase, Hall of Fame when they hold a position of their own and coach a team.

+

Rookie when drafted, Starter when they link a wallet, Pro when they switch on payouts, All-Star at their first purchase, Hall of Fame when they hold a position of their own and coach a team. Tap a card to flip it for the stats on the back.

`, ['cards.js']); @@ -184,13 +184,18 @@ page('admin.html', { path: '/admin', title: 'Admin | 5xYourTeam', desc: 'Admin.' fs.writeFileSync(path.join(PUB, 'draftday.html'), `Draft Day | 5xYourTeam
5XYOURTEAM
+h1{margin:0;font-family:Oswald,Impact,sans-serif;font-weight:700;font-size:108px;line-height:.95;text-shadow:0 6px 24px rgba(0,0,0,.55)}h1 span{color:#ffc93c} +.rows{display:flex;flex-direction:column;gap:12px;font-size:30px;background:rgba(7,16,42,.86);padding:16px 24px;border-left:6px solid #ffc93c}.dd-r{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #2a3a6e;padding-bottom:8px}.dd-r:last-child{border-bottom:0;padding-bottom:0} +.dd-r .s{font-family:Champiun,Oswald,sans-serif;font-weight:700;color:#ffc93c;font-size:34px;letter-spacing:1px;min-width:90px} +.ft{margin-top:auto;height:216px;background:url(/art/dd/scoreboard.png) center/100% 100% no-repeat;padding:34px 48px;display:flex;justify-content:space-between;align-items:center;filter:drop-shadow(0 10px 24px rgba(0,0,0,.6))} +.ft div{display:flex;flex-direction:column;gap:10px;font-family:Oswald,sans-serif;font-size:32px;letter-spacing:.5px}.ft .p{color:#ffc93c}.url{font-family:Oswald,sans-serif;font-size:26px;color:#b8c4e0;align-self:flex-end} +
5XYOURTEAM

DRAFT DAY
RESULTS

5xyourteam.com