Promo tools: replace the team-build-link tiers infographic with clean team-link cards

Marty 2026-11-18. The 300x250 AI infographic (commission tiers, income-tier
figures) leaves the Banners pane; the file stays on disk so pasted URLs keep
working. New iap-team-box (300x250), iap-team-wide (600x300) and
iap-team-small (250x250): one invite link, joiners placed in your team line,
no tiers, percentages, amounts or income wording. my.js?v bumped. QA member
run: 0 bugs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-18 10:43:20 -06:00
parent f000dfc7e4
commit e57efd9e7c
6 changed files with 25 additions and 7 deletions
+5 -3
View File
@@ -3011,11 +3011,13 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str
{ title: '600×300 · traffic exchanges and splash pages', items: [
{ file: 'iap-advertise-earn-600x300.png', size: '600×300 · advertise and earn · traffic exchanges, splash pages, safelist mailers' },
{ file: 'iap-core-wide.png', size: '600×300 · advertise and earn · Join free' },
{ file: 'iap-ledger-wide.png', size: '600×300 · advertising that pays you on-chain · See the ledger' } ] },
{ file: 'iap-ledger-wide.png', size: '600×300 · advertising that pays you on-chain · See the ledger' },
{ file: 'iap-team-wide.png', size: '600×300 · build your team with one link · Join free' } ] },
{ title: '250×250 · small squares', items: [
{ file: 'iap-core-small.png', size: '250×250 · advertise and earn · Join free' },
{ file: 'iap-earn-small.png', size: '250×250 · advertise and earn · globe art' },
{ file: 'iap-ledger-small.png', size: '250×250 · advertising that pays you on-chain · See the ledger' } ] },
{ file: 'iap-ledger-small.png', size: '250×250 · advertising that pays you on-chain · See the ledger' },
{ file: 'iap-team-small.png', size: '250×250 · one link, your team · Join free' } ] },
{ title: '1200×630 · social posts, link previews, Daily News covers', items: [
{ file: 'iap-hero-1200x630.png', size: '1200×630 · hero · advertise and earn' },
{ file: 'iap-advertise-earn-1200x630.jpg', size: '1200×630 · advertise and earn instantly, locked in code' },
@@ -3053,7 +3055,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str
{ file: 'iap-advertise-earn-v2-336x280.png', size: '336×280 · advertise and earn · variant 2' },
{ file: 'iap-300x250.png', size: '300×250 · rectangle' },
{ file: 'iap-advertise-earn-300x250.png', size: '300×250 · advertise and earn instantly' },
{ file: 'iap-team-build-link-300x250.jpg', size: '300×250 · team build and instant payments · "link in the description"' },
{ file: 'iap-team-box.png', size: '300×250 · build your team with one link · Join free' },
{ file: 'iap-125x125.png', size: '125×125 · square button' } ] },
{ title: 'Skyscrapers · 160×600, 120×600', items: [
{ file: 'iap-160x600.png', size: '160×600 · wide skyscraper' },
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

+1 -1
View File
@@ -1313,7 +1313,7 @@
<script src="/assets/promo.js?v=20261103gp"></script>
<script src="/assets/support.js?v=20261116sg"></script>
<script src="/assets/netkits.js?v=20261117ypb"></script>
<script src="/assets/my.js?v=20261118kit"></script>
<script src="/assets/my.js?v=20261118team"></script>
<script src="/assets/fuel.js?v=20261113sso"></script><script src="/assets/tankfeed.js?v=20261115tb"></script>
<script src="/assets/engine-room.js?v=20261113sso"></script>
<script src="/assets/netsso.js?v=20261113sso"></script>
+19 -3
View File
@@ -1,6 +1,6 @@
// Renders the 600x300 ("wide") and 250x250 ("small") promo kit cards (member request, Marty 2026-11-18) for each display
// design the kit already has: the core "Advertise & earn" card, the advertise-and-earn globe art (small only: its 600x300
// already exists), the ledger card, Wired Wednesday and Five Dollar Friday.
// already exists), the ledger card, the team-build link card (also a 300x250 box), Wired Wednesday and Five Dollar Friday.
// Run from the site dir with the qa-tester playwright: node tools/gen-card-banners.cjs
// Output: public/banners/iap-<design>-<wide|small>.png (exact pixel sizes, DSF 1). Neutral names: no size tokens.
const path = require('path');
@@ -63,6 +63,21 @@ const D = {
<h1 style="font-size:29px">Advertising that <em>pays you on-chain.</em></h1>
<span class="cta" style="font-size:16px;padding:9px 20px;align-self:flex-start">See the ledger →</span></div>`
},
team: { // the team-build link card (Marty 2026-11-18: replaces the old 300x250 tiers infographic). Mechanic: whoever opens
// a member's invite link is tagged to them, and the sponsor locks when the account is created (chatbot "sponsor" entry).
wide: () => `<div class="lines"></div><div class="glow"></div>${CIRCUIT(600, 300)}<div class="wrap" style="padding:28px 34px;justify-content:space-between">
<img class="logo" src="${LOGO}" style="height:42px;align-self:flex-start">
<div><h1 style="font-size:42px">Build your team<br><em>with one link.</em></h1><p style="font-size:15px;margin-top:8px">Everyone who joins through your invite link is placed in your team line.</p></div>
<div style="display:flex;align-items:center;gap:18px"><span class="cta" style="font-size:18px;padding:11px 26px">Join free →</span><span class="url" style="font-size:12.5px;white-space:nowrap">Ad credits buy advertising, not income.</span></div></div>`,
box: () => `<div class="lines"></div><div class="glow"></div>${CIRCUIT(300, 250)}<div class="wrap" style="padding:20px 22px;justify-content:space-between">
<img class="logo" src="${LOGO}" style="height:32px;align-self:flex-start">
<div><h1 style="font-size:29px">Build your team <em>with one link.</em></h1><p style="font-size:12.5px;margin-top:7px">Everyone who joins through your link is placed in your team line.</p></div>
<span class="cta" style="font-size:16px;padding:9px 22px;align-self:flex-start">Join free →</span></div>`,
small: () => `<div class="lines"></div><div class="glow"></div>${CIRCUIT(250, 250)}<div class="wrap" style="padding:20px;justify-content:space-between">
<img class="logo" src="${LOGO}" style="height:32px;align-self:flex-start">
<h1 style="font-size:31px">One link.<br><em>Your team.</em></h1>
<span class="cta" style="font-size:16px;padding:9px 22px;align-self:flex-start">Join free →</span></div>`
},
'wired-wednesday': {
wide: () => `<div class="lines"></div><div class="glow"></div>${CIRCUIT(600, 300)}<div class="wrap" style="padding:30px 34px;justify-content:center;gap:16px">
<div style="display:flex;align-items:center;gap:16px"><div class="disc" style="width:64px;height:64px">${BOLT(64)}</div><h1 style="font-size:46px">Wired <em>Wednesday</em></h1></div>
@@ -84,11 +99,12 @@ const D = {
<span class="cta" style="font-size:16px;padding:9px 24px">Join free</span></div>`
}
};
const SIZE = { wide: [600, 300], small: [250, 250] };
const SIZE = { wide: [600, 300], small: [250, 250], box: [300, 250] };
const ONLY = (process.argv[2] || '').split(',').filter(Boolean); // e.g. node tools/gen-card-banners.cjs team
(async () => {
const browser = await chromium.launch();
for (const [design, shapes] of Object.entries(D)) for (const [shape, body] of Object.entries(shapes)) {
for (const [design, shapes] of Object.entries(D)) if (!ONLY.length || ONLY.includes(design)) for (const [shape, body] of Object.entries(shapes)) {
const [w, h] = SIZE[shape];
const page = await browser.newPage({ viewport: { width: w, height: h }, deviceScaleFactor: 1 });
await page.setContent(`<!doctype html><html><head><meta charset="utf-8">${FONT}<style>:root{--w:${w}px;--h:${h}px}${CSS}</style></head><body>${body()}</body></html>`, { waitUntil: 'networkidle' });