Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| afb367cafc |
+2
-1
@@ -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() {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
+26
-8
@@ -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: <app>/public/art/kit/<site>-<angle>-<shape>.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}'}
|
||||
</style><div class="v">${m}${d ? '<span class="wm">Downline<br><span class="g">Banners</span></span>' : '<span class="wm">Viral Banner <b>Blitz</b></span>'}<span class="eb">${esc(a.eyebrow)}</span><div class="h disp fit"><span>${esc(a.h1)}</span>${h2}</div><div class="sub">${esc(a.sub)}</div><span class="cta">${esc(a.cta)}</span><div class="dom">${esc(S.domain)}</div></div>`;
|
||||
case 'wide': return `<style>
|
||||
.w2{position:absolute;inset:0;display:flex;flex-direction:column;padding:24px 28px;gap:11px;${d ? '' : 'width:420px'}}
|
||||
.w2 .top{display:flex;align-items:center;gap:10px} .w2 .mark{width:40px;height:40px;flex:none} .w2 .wm{font-size:21px}
|
||||
.w2 .eb{font-size:11px;padding:4px 11px;align-self:flex-start}
|
||||
.w2 .h{font-size:40px;width:${d ? 544 : 370}px;white-space:normal;max-height:88px} .w2 .h span{display:block;white-space:nowrap}
|
||||
.w2 .sub{font-size:15px;line-height:1.35;max-width:${d ? 520 : 360}px}
|
||||
.w2 .bot{margin-top:auto;display:flex;align-items:center;gap:16px}
|
||||
.w2 .cta{font-size:17px;padding:10px 18px} .w2 .dom{font-size:12.5px;font-weight:700;opacity:.8;white-space:nowrap}
|
||||
${d ? '' : 'body{--edge:3px;--stroke:.6px;--ts:2px} .tiles{right:-26px;top:34px;width:200px;--tg:12px} .tiles i{border-radius:10px;box-shadow:4px 4px 0 var(--ink)}'}
|
||||
</style>${d ? '' : vTiles(9)}<div class="w2"><div class="top">${m}${wm}</div><span class="eb">${esc(a.eyebrow)}</span><div class="h disp fit"><span>${esc(a.h1)}</span>${h2}</div><div class="sub">${esc(a.wsub || a.sub)}</div><div class="bot"><span class="cta">${esc(a.cta)} →</span><span class="dom">${esc(S.domain)}</span></div></div>`;
|
||||
case 'small': return `<style>
|
||||
.q2{position:absolute;inset:0;display:flex;flex-direction:column;padding:16px 17px;gap:12px}
|
||||
.q2 .top{display:flex;align-items:center;gap:8px} .q2 .mark{width:30px;height:30px;flex:none} .q2 .wm{font-size:16px}
|
||||
.q2 .h{font-size:29px;width:216px;white-space:normal;margin-top:4px;line-height:1.04} .q2 .h span{display:block}
|
||||
.q2 .cta{font-size:16px;padding:10px 16px;margin-top:auto;align-self:flex-start}
|
||||
${d ? '' : 'body{--edge:3px;--stroke:.6px;--ts:2px}'}
|
||||
</style><div class="q2"><div class="top">${m}${wm}</div><div class="h disp wfit"><span>${esc(a.sm[0])}</span>${d ? '<span class="g">' + esc(a.sm[1]) + '</span>' : '<span class="hot">' + esc(a.sm[1]) + '</span>'}</div><span class="cta">${esc(a.cta)} →</span></div>`;
|
||||
case 'social': return d ? `<style>
|
||||
.o{position:absolute;inset:0;padding:64px 80px;display:flex;flex-direction:column}
|
||||
.o .top{display:flex;align-items:center;gap:26px} .o .mark{width:118px;height:118px} .o .wm{font-size:60px}
|
||||
|
||||
Reference in New Issue
Block a user