diff --git a/promokit.js b/promokit.js index ef75dcc..95ea4c9 100644 --- a/promokit.js +++ b/promokit.js @@ -12,7 +12,7 @@ const C = require('./config').get(); const netsites = require('./netsites'); // tracked links: LinkSpin network link for this site, ?src= (2026-11-14) 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'], +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'] }; const ANGLES = { free: 'Free daily banner post', loop: 'Every visitor pushes the loop', prize: 'Weekly leaderboard prizes' }; @@ -80,7 +80,7 @@ function kit(u) { const track = seg => netsites.tracked('vbb', 'vbb', { s1: ref, s2: seg }); const t = copy(); return { - v: 1, site: C.site, name: C.siteName, updated: '2026-11-14', username: ref || null, + v: 1, site: C.site, name: C.siteName, updated: '2026-11-16', username: ref || null, tagline: 'One shared loop of 125x125 banners. Real visitors push it.', links: [ { key: 'home', label: 'Your link (the loop)', url: link, tracked: track('') }, diff --git a/public/art/kit/vbb-free-panel.png b/public/art/kit/vbb-free-panel.png new file mode 100644 index 0000000..559d1ae Binary files /dev/null and b/public/art/kit/vbb-free-panel.png differ diff --git a/public/art/kit/vbb-loop-panel.png b/public/art/kit/vbb-loop-panel.png new file mode 100644 index 0000000..5973d86 Binary files /dev/null and b/public/art/kit/vbb-loop-panel.png differ diff --git a/public/art/kit/vbb-prize-panel.png b/public/art/kit/vbb-prize-panel.png new file mode 100644 index 0000000..a44d277 Binary files /dev/null and b/public/art/kit/vbb-prize-panel.png differ diff --git a/qa/smoke.mjs b/qa/smoke.mjs index ce00c3a..65c1922 100644 --- a/qa/smoke.mjs +++ b/qa/smoke.mjs @@ -190,7 +190,7 @@ async function main() { ok(k.lines.length === 5 && k.headlines.length === 3 && k.posts.length === 2 && k.email && k.email.subject && k.email.body.includes('?ref=smokeleader'), 'promo kit: 5 lines, 3 headlines, 1 email, 2 posts, link filled in'); const words = JSON.stringify([k.lines, k.headlines, k.email, k.posts, k.note, k.tagline]); ok(!/[—–]/.test(words) && !/\$50|passive income|guaranteed (income|returns|profit)|earn (cash|money)|make money/i.test(words) && /at least \$20/.test(words), 'promo kit copy: no dashes, no cap, no income promises, pot shown as at least $20'); - ok(k.creatives.length === 21 && new Set(k.creatives.map(c => c.angle)).size === 3, 'promo kit: 21 creatives in 3 angles', k.creatives.length); + ok(k.creatives.length === 24 && new Set(k.creatives.map(c => c.angle)).size === 3, 'promo kit: 24 creatives in 3 angles', k.creatives.length); const badName = k.creatives.filter(c => /\d{2,4}x\d{2,4}|banner|[-_/]ads?[-_./]/i.test(c.url.replace('https://viralbannerblitz.com', ''))); ok(badName.length === 0, 'promo kit: creative paths are ad-blocker neutral (no size tokens, no banner/ad words)', badName.map(c => c.url)); let dimOk = true; const dimBad = []; diff --git a/tools/kit-art.mjs b/tools/kit-art.mjs index c1b0c2a..cbedb2b 100644 --- a/tools/kit-art.mjs +++ b/tools/kit-art.mjs @@ -1,6 +1,8 @@ // Promo kit art for Downline Banners and Viral Banner Blitz (2026-11-14). Renders every creative from HTML with Playwright so // 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 +// 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. // 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'; @@ -10,12 +12,14 @@ 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], tower: [160, 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] }; +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' }; const SITES = { dlb: { - out: ROOT + '/banner-line/app/public/art/kit', domain: 'downlinebanners.com', name: ['Downline', 'Banners'], - mark: fs.readFileSync(ROOT + '/banner-line/app/public/art/mark.svg', 'utf8'), + out: APPS.dlb + '/public/art/kit', domain: 'downlinebanners.com', name: ['Downline', 'Banners'], + 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'] }, @@ -24,8 +28,8 @@ const SITES = { } }, vbb: { - out: ROOT + '/vbb/app/public/art/kit', domain: 'viralbannerblitz.com', name: ['Viral Banner', 'Blitz'], - mark: fs.readFileSync(ROOT + '/vbb/app/public/art/mark.svg', 'utf8'), + out: APPS.vbb + '/public/art/kit', domain: 'viralbannerblitz.com', name: ['Viral Banner', 'Blitz'], + 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'] }, @@ -36,8 +40,8 @@ const SITES = { }; const esc = s => String(s).replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c])); -// shrink every .fit element until its text fits its box (one line or the box height) -const FIT = ``; +// shrink every .fit element until its text fits its box (one line or the box height); .wfit (wrapping) until its longest word fits +const FIT = ``; function dlbCss() { return ` @@ -121,6 +125,25 @@ function body(site, a, shape) { .b .sub{font-size:12.5px;line-height:1.35} .b .cta{font-size:15px;padding:10px 16px;margin-top:auto;align-self:flex-start} ${d ? '' : 'body{--edge:3px;--stroke:.5px;--ts:1.5px}'}
${m}${wm}
${esc(a.eyebrow)}
${esc(a.h1)}${h2.replace('
${esc(a.sub)}
${esc(a.cta)} →
`; + case 'panel': return `
${m}${wm}
${esc(a.eyebrow)}
${esc(a.h1)}${h2}
${esc(a.sub)}
${esc(a.cta)} →${esc(S.domain)}
`; + case 'pillar': return `
${m}${d ? 'Downline
Banners
' : 'Viral Banner Blitz'}${esc(a.eyebrow)}
${esc(a.h1)}${h2}
${esc(a.sub)}
${esc(a.cta)}
${esc(S.domain)}
`; case 'tower': return `