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:
@@ -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' });
|
||||
|
||||
Reference in New Issue
Block a user