Promo kit: add 600x300 wide and 250x250 small creatives for all 3 angles

Member request. Wide = headline + one trading card; small = headline and one
CTA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-18 10:04:00 -06:00
parent 17ab4280f7
commit 214f348503
8 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ const netsites = require('./netsites');
const KIT_DIR = path.join(__dirname, 'public', 'art', 'kit');
const SHAPES = { tile: [125, 125, 'Square button'], strip: [468, 60, 'Strip'], leader: [728, 90, 'Leaderboard'], box: [300, 250, 'Box'], panel: [336, 280, 'Large box'],
tower: [160, 600, 'Skyscraper'], social: [1200, 630, 'Social share'], square: [1080, 1080, 'Square post'] };
tower: [160, 600, 'Skyscraper'], social: [1200, 630, 'Social share'], square: [1080, 1080, 'Square post'],
wide: [600, 300, 'Wide card'], small: [250, 250, 'Small square'] };
const ANGLES = { draft: 'The weekly draft', coach: 'Coach your picks', cards: 'Trading cards that level up' };
function copy() {
Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

+11
View File
@@ -53,6 +53,17 @@ function kitHtml(angle, shape, w, h) {
if (shape === 'strip' || shape === 'leader') { const big = shape === 'leader';
return `<body style="display:flex;align-items:center;gap:${big ? 16 : 9}px;padding:0 ${big ? 16 : 9}px;border-bottom:4px solid #ffc93c"><div class="stripes"></div>${WM(big ? 24 : 15)}<div style="flex:1;min-width:0"><div style="font-family:Oswald,sans-serif;font-size:${big ? 12 : 9}px;letter-spacing:2px;color:#ffc93c">${a.k}</div><div class="d" style="font-size:${big ? 30 : 19}px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">${a.h1} <span class="g">${a.h2}</span></div></div><span class="cta" style="font-size:${big ? 19 : 12}px;padding:${big ? '8px 14px' : '4px 8px'}">${a.cta}</span></body>`; }
if (shape === 'tower') return `<body style="display:flex;flex-direction:column;padding:14px 12px;gap:14px;border-top:6px solid #ffc93c"><div class="stripes"></div>${WM(19)}<span class="tag" style="font-size:10px;padding:3px 6px;align-self:flex-start">${a.k}</span><div class="d" style="font-size:32px">${a.h1}<br><span class="g">${a.h2}</span></div><div style="font-size:12px;color:#b8c4e0;line-height:1.35">${a.s}</div><div style="display:flex;justify-content:center">${tcard('allstar', 'gamerdad', 'you', .45)}</div><div style="margin-top:auto;text-align:center"><span class="cta" style="font-size:16px;padding:7px 8px;display:block">${a.cta}</span><div style="font-size:11px;margin-top:8px;font-weight:700">5xyourteam.com</div></div></body>`;
if (shape === 'wide') return `<body style="display:flex;align-items:center;gap:20px;padding:14px 26px 14px 24px;border-top:6px solid #ffc93c"><div class="stripes"></div>
<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:9px">
<div style="display:flex;align-items:center;gap:10px">${WM(21)}<span class="tag" style="font-size:10px;padding:2px 7px">${a.k}</span></div>
<div class="d" style="font-size:46px">${a.h1}<br><span class="g">${a.h2}</span></div>
<div style="font-size:13px;color:#b8c4e0;line-height:1.35">${a.s}</div>
<div style="display:flex;align-items:center;gap:12px"><span class="cta" style="font-size:17px;padding:6px 14px">${a.cta}</span><span style="font-size:11px;font-weight:700">5xyourteam.com</span></div></div>
${tcard(angle === 'cards' ? 'hof' : angle === 'coach' ? 'pro' : 'allstar', angle === 'cards' ? 'cryptomike' : angle === 'coach' ? 'lunaclicks' : 'gamerdad', 'you', .7)}</body>`;
if (shape === 'small') return `<body style="display:flex;flex-direction:column;justify-content:space-between;padding:16px 18px 18px;border-top:6px solid #ffc93c"><div class="stripes"></div>
<div style="display:flex;flex-direction:column;gap:7px">${WM(19)}<span class="tag" style="font-size:9px;padding:2px 6px;align-self:flex-start">${a.k}</span></div>
<div class="d" style="font-size:33px">${a.h1}<br><span class="g">${a.h2}</span></div>
<div><span class="cta" style="font-size:17px;padding:6px 14px">${a.cta}</span></div></body>`;
const f = m / 250; const wide = shape === 'social' || shape === 'square';
return `<body style="display:flex;flex-direction:column;border-top:${Math.round(6 * f)}px solid #ffc93c"><div class="stripes"></div>
<div style="flex:1;padding:${Math.round(16 * f)}px ${Math.round(18 * f)}px;display:flex;gap:${Math.round(18 * f)}px;align-items:center;${shape === 'square' ? 'flex-direction:column;justify-content:center' : ''}">