diff --git a/promokit.js b/promokit.js index 95ea4c9..0c9f3a5 100644 --- a/promokit.js +++ b/promokit.js @@ -13,7 +13,8 @@ const netsites = require('./netsites'); // tracked links: LinkSpin network link const KIT_DIR = path.join(__dirname, 'public', 'art', 'kit'); const SHAPES = { tile: [125, 125, 'Square button (loop size)'], 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 = { free: 'Free daily banner post', loop: 'Every visitor pushes the loop', prize: 'Weekly leaderboard prizes' }; function copy() { diff --git a/public/art/kit/vbb-free-small.png b/public/art/kit/vbb-free-small.png new file mode 100644 index 0000000..e46abde Binary files /dev/null and b/public/art/kit/vbb-free-small.png differ diff --git a/public/art/kit/vbb-free-wide.png b/public/art/kit/vbb-free-wide.png new file mode 100644 index 0000000..2540c28 Binary files /dev/null and b/public/art/kit/vbb-free-wide.png differ diff --git a/public/art/kit/vbb-loop-small.png b/public/art/kit/vbb-loop-small.png new file mode 100644 index 0000000..3615563 Binary files /dev/null and b/public/art/kit/vbb-loop-small.png differ diff --git a/public/art/kit/vbb-loop-wide.png b/public/art/kit/vbb-loop-wide.png new file mode 100644 index 0000000..ee21519 Binary files /dev/null and b/public/art/kit/vbb-loop-wide.png differ diff --git a/public/art/kit/vbb-prize-small.png b/public/art/kit/vbb-prize-small.png new file mode 100644 index 0000000..4fb0520 Binary files /dev/null and b/public/art/kit/vbb-prize-small.png differ diff --git a/public/art/kit/vbb-prize-wide.png b/public/art/kit/vbb-prize-wide.png new file mode 100644 index 0000000..08050fd Binary files /dev/null and b/public/art/kit/vbb-prize-wide.png differ diff --git a/tools/kit-art.mjs b/tools/kit-art.mjs index cbedb2b..d9575f8 100644 --- a/tools/kit-art.mjs +++ b/tools/kit-art.mjs @@ -2,7 +2,8 @@ // the text is crisp, at the exact pixel size of each slot. Same file in both repos (banner-line/app/tools, vbb/app/tools). // node tools/kit-art.mjs dlb|vbb|all [shape,shape...] (a shape list renders only those shapes, e.g. panel,pillar) // Env DLB_APP / VBB_APP = the app folder to read the mark from and write into (default the repos under D:/Projects/HighRisk). -// Shapes per site: DLB also has pillar (120x600, Marty 2026-11-16); panel (336x280) on both. +// Shapes per site: DLB also has pillar (120x600, Marty 2026-11-16); panel (336x280) on both; wide (600x300) and small +// (250x250) on both (member request 2026-11-18). sm = the short headline for the small square (6 words max). // Output: /public/art/kit/--.png. Neutral names on purpose: no IAB size tokens, no "banner"/"ad" // (EasyList hides those). The copy here must match the facts in each app (DLB SPEC.md + contract, VBB config.js + how.html). import { pathToFileURL } from 'url'; @@ -12,7 +13,7 @@ const PW = process.env.PLAYWRIGHT || 'D:/Projects/MarketingAgent/qa-tester/node_ const pwm = await import(pathToFileURL(PW).href); const chromium = pwm.chromium || (pwm.default && pwm.default.chromium); const ROOT = 'D:/Projects/HighRisk'; -const SHAPES = { tile: [125, 125], strip: [468, 60], leader: [728, 90], box: [300, 250], panel: [336, 280], tower: [160, 600], pillar: [120, 600], social: [1200, 630], square: [1080, 1080] }; +const SHAPES = { tile: [125, 125], strip: [468, 60], leader: [728, 90], box: [300, 250], panel: [336, 280], tower: [160, 600], pillar: [120, 600], social: [1200, 630], square: [1080, 1080], wide: [600, 300], small: [250, 250] }; const SITE_SHAPES = { dlb: Object.keys(SHAPES), vbb: Object.keys(SHAPES).filter(k => k !== 'pillar') }; const APPS = { dlb: process.env.DLB_APP || ROOT + '/banner-line/app', vbb: process.env.VBB_APP || ROOT + '/vbb/app' }; @@ -22,9 +23,9 @@ const SITES = { mark: fs.readFileSync(APPS.dlb + '/public/art/mark.svg', 'utf8'), fonts: 'family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Inter:wght@500;600;700', angles: { - spot: { eyebrow: '$5 spot', h1: 'A $5 spot.', h2: '300 guaranteed views.', line: 'A $5 spot. 300 guaranteed views.', sub: 'Your banner on the board, paid on-chain on Polygon.', cta: 'Get a spot', tA: '$5 spot', tB: '300 views', chips: ['$5 spot', '300 guaranteed views', 'Paid on-chain'] }, - line: { eyebrow: '10 levels', h1: '10 levels pay', h2: 'as spots sell after yours.', line: '10 levels pay as spots sell after yours', sub: 'Sponsor 30%. Each of 10 levels 5.5%. Fixed in the contract.', cta: 'See the line', tA: '10 levels', tB: 'paid on-chain', chips: ['Sponsor 30%', '10 levels x 5.5%', 'Splits fixed on-chain'] }, - instant: { eyebrow: 'Nothing to withdraw', h1: 'No withdrawals.', h2: 'Paid in the same transaction.', line: 'No withdrawals. Paid in the same transaction.', sub: 'A Polygon contract splits every $5 spot the moment it sells.', cta: 'See how', tA: 'No withdrawals', tB: 'paid same tx', chips: ['Same-transaction payouts', 'Verified contract', '$5 spot'] } + spot: { eyebrow: '$5 spot', h1: 'A $5 spot.', h2: '300 guaranteed views.', line: 'A $5 spot. 300 guaranteed views.', sub: 'Your banner on the board, paid on-chain on Polygon.', cta: 'Get a spot', tA: '$5 spot', tB: '300 views', sm: ['A $5 spot.', '300 guaranteed views.'], chips: ['$5 spot', '300 guaranteed views', 'Paid on-chain'] }, + line: { eyebrow: '10 levels', h1: '10 levels pay', h2: 'as spots sell after yours.', line: '10 levels pay as spots sell after yours', sub: 'Sponsor 30%. Each of 10 levels 5.5%. Fixed in the contract.', cta: 'See the line', tA: '10 levels', tB: 'paid on-chain', sm: ['10 levels', 'paid on chain.'], chips: ['Sponsor 30%', '10 levels x 5.5%', 'Splits fixed on-chain'] }, + instant: { eyebrow: 'Nothing to withdraw', h1: 'No withdrawals.', h2: 'Paid in the same transaction.', line: 'No withdrawals. Paid in the same transaction.', sub: 'A Polygon contract splits every $5 spot the moment it sells.', cta: 'See how', tA: 'No withdrawals', tB: 'paid same tx', sm: ['No withdrawals.', 'Paid as it sells.'], chips: ['Same-transaction payouts', 'Verified contract', '$5 spot'] } } }, vbb: { @@ -32,9 +33,9 @@ const SITES = { mark: fs.readFileSync(APPS.vbb + '/public/art/mark.svg', 'utf8'), fonts: 'family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@500;700&family=Space+Mono:wght@700', angles: { - free: { eyebrow: 'Free daily post', h1: 'Post a banner', h2: 'free every day.', line: 'Post a banner free every day', sub: 'InstantAdPay and LinkSpin members get a free post credit each day they sign in.', cta: 'Post yours', tA: 'FREE', tB: 'daily post', chips: ['125x125 banners', 'Free daily post', 'No subscription'] }, - loop: { eyebrow: 'Real visitors only', h1: 'Every visitor', h2: 'pushes the loop.', line: 'Every visitor pushes the loop', sub: 'Real visitors move every banner forward. Ride out and earn network ad views.', cta: 'Join the loop', tA: 'Every visit', tB: 'moves it', chips: ['Verified visitors', 'Bots do not count', 'Network ad views'] }, - prize: { eyebrow: 'Weekly leaderboards', h1: 'Send visitors.', h2: 'Climb the weekly board.', line: 'Weekly prizes, at least $20 a week', sub: 'Prize pot of at least $20 a week, paid in POL to the top three on each board.', cta: 'See the leaders', tA: 'Weekly', tB: 'prizes', chips: ['At least $20 a week', 'Paid in POL', 'Two leaderboards'] } + free: { eyebrow: 'Free daily post', h1: 'Post a banner', h2: 'free every day.', line: 'Post a banner free every day', sub: 'InstantAdPay and LinkSpin members get a free post credit each day they sign in.', cta: 'Post yours', tA: 'FREE', tB: 'daily post', sm: ['Post a banner', 'free every day.'], chips: ['125x125 banners', 'Free daily post', 'No subscription'] }, + loop: { eyebrow: 'Real visitors only', h1: 'Every visitor', h2: 'pushes the loop.', line: 'Every visitor pushes the loop', sub: 'Real visitors move every banner forward. Ride out and earn network ad views.', cta: 'Join the loop', tA: 'Every visit', tB: 'moves it', sm: ['Every visitor', 'pushes the loop.'], chips: ['Verified visitors', 'Bots do not count', 'Network ad views'] }, + prize: { eyebrow: 'Weekly leaderboards', h1: 'Send visitors.', h2: 'Climb the weekly board.', line: 'Weekly prizes, at least $20 a week', sub: 'Prize pot of at least $20 a week, paid in POL to the top three on each board.', wsub: 'A weekly prize pot, paid in POL to the top three on each board.', cta: 'See the leaders', tA: 'Weekly', tB: 'prizes', sm: ['Send visitors.', 'Climb the board.'], chips: ['At least $20 a week', 'Paid in POL', 'Two leaderboards'] } } } }; @@ -153,6 +154,23 @@ function body(site, a, shape) { .v .cta{font-size:15px;padding:11px 14px;margin-top:auto} .v .dom{font-size:10.5px;font-weight:700;opacity:.8} ${d ? '' : 'body{--edge:3px;--stroke:.6px;--ts:2px} .v .wm b{display:block}'}
${m}${d ? 'Downline
Banners
' : 'Viral Banner Blitz'}${esc(a.eyebrow)}
${esc(a.h1)}${h2}
${esc(a.sub)}
${esc(a.cta)}
${esc(S.domain)}
`; + case 'wide': return `${d ? '' : vTiles(9)}
${m}${wm}
${esc(a.eyebrow)}
${esc(a.h1)}${h2}
${esc(a.wsub || a.sub)}
${esc(a.cta)} →${esc(S.domain)}
`; + case 'small': return `
${m}${wm}
${esc(a.sm[0])}${d ? '' + esc(a.sm[1]) + '' : '' + esc(a.sm[1]) + ''}
${esc(a.cta)} →
`; case 'social': return d ? `