Compare commits

...

2 Commits

Author SHA1 Message Date
martbost afb367cafc Promo kit: add 600x300 wide and 250x250 small creatives for all 3 angles
Member request. kit-art.mjs synced with Downline Banners (wide + small
layouts, short headlines for the small square; prize wide card keeps the
pot figure out).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:01:06 -06:00
martbost f3aabd75aa Tutorial video: 2-minute narrated walkthrough on /how (Watch how it works) + 'Watch the 2-minute walkthrough' link under the home hero buttons; server sends .mp4/.webm with byte ranges (sendMedia); chatbot fact; vbb.css?v=9 (Marty 2026-11-18: tutorial explainer videos for each rebuilt site)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 08:21:06 -06:00
30 changed files with 70 additions and 28 deletions
+2 -1
View File
@@ -13,7 +13,7 @@
const core = require('./chatcore');
const C = require('./config').get();
const KNOWLEDGE_DATE = '2026-11-17';
const KNOWLEDGE_DATE = '2026-11-18';
const URL_ = 'https://' + C.site;
const SUPPORT = 'https://instantadpay.com/support';
const NOT_INCOME = 'You buy advertising for your own banners, not an income opportunity.';
@@ -97,6 +97,7 @@ const FACTS = () => [
'- PACKAGES (one-time, POL at the live price, never a subscription, overpayment returned; read from the VBBShop contract just now): ' + livePacksText() + '; banner look $' + C.lookUsd + ' per banner (border + hover teaser, on a waiting or in-loop banner, one per banner); tokens (network visits at the InstantAdPay visit rate) coming soon.',
'- SPLIT (VBBShop constants, no owner withdraw): 30% to the member who introduced the buyer (bound once, by a keeper-signed voucher, on the first purchase; none = company), 10% to the weekly prize pot, 60% company, same transaction. Failed sends wait in the contract for their owner to claim.',
'- LEADERBOARDS (Monday to Sunday Central): most verified visitors sent (the member\'s ?ref= link) and most different traffic sources (referring sites). Prize pot = 10% of the week\'s sales, half per board, top three ' + places + ' percent, paid in POL to the winners\' VBB wallets the following Monday at the POL price at payout; ties to whoever got there first. Never state a maximum or a cap.',
'- VIDEO (2026-11-18): a short walkthrough video (free daily credit, posting a banner, how visitors move the loop, your link and the weekly leaderboards, packages, where to start) is on ' + URL_ + '/how.',
'- PAGES: / (the loop), /how, /packages, /my (My Banners), /leaders, /promote, /ledger, /contract, /terms, /disclaimer, /privacy. GUIDES (point people to them): /guides (index), /guides/is-it-legit (contract, ledger, split), /guides/free-account (free daily credit, network-verified, tips), /guides/prize-boards (weekly leaderboards and prizes), /guides/faq. Sign in through InstantAdPay, LinkSpin or a wallet signature.',
weekendFact(),
'- NO REFUNDS: blockchain payments are final. SUPPORT for account or payment problems: network support at ' + SUPPORT + ' (InstantAdPay runs the one desk for every network site). ' + NOT_INCOME
+2 -1
View File
@@ -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() {
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=8">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.
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

+6
View File
@@ -208,3 +208,9 @@ footer.foot .netline b{color:#fff} footer.foot .netline .here{color:#fff;font-we
.faq summary{cursor:pointer;font-weight:700;font-size:16px}
.faq details p{margin:8px 0 0;max-width:760px}
.addr{word-break:break-all}
/* tutorial video (2026-11-18): home watch link + the player on the how-it-works guide */
.watchlink{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.watchlink svg{color:var(--hot);flex:none}
.howvid video{display:block;width:100%;height:auto;aspect-ratio:16/9;border:var(--edge);border-radius:12px;background:#14121f;margin-top:8px}
.howvid p{margin:10px 0 0}
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=7">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=7">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap legal">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=8">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=8">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=8">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=8">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=8">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
+2 -1
View File
@@ -22,11 +22,12 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=7">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
<section class="hero"><h1>How the loop works</h1><p class="lead">One public page, one shared loop. The whole community moves it with real visitors.</p></section>
<div class="card howvid" id="watch"><h2 id="watchTitle">Watch how it works</h2><video controls playsinline preload="none" poster="/art/how-it-works.jpg?v=20261118a" width="1920" height="1080" aria-describedby="watchNote"><source src="/art/how-it-works.mp4?v=20261118a" type="video/mp4"></video><p class="muted small" id="watchNote">A short walkthrough in Marty's voice: your free daily credit, posting a banner, how visitors move the loop, your link and the weekly leaderboards, packages, and where to start.</p></div>
<ol class="how">
<li><b>Sign in, get a credit</b>Sign in through InstantAdPay, LinkSpin or a wallet. Network members (InstantAdPay or LinkSpin) get one free post credit every day they sign in.</li>
<li><b>Post a banner</b>A 125x125 image and a link. It waits in line, then enters the loop at the front.</li>
+2 -1
View File
@@ -23,7 +23,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=7">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
@@ -32,6 +32,7 @@
<h1>Every visitor pushes the loop. <em>Ride it out, earn advertising.</em></h1>
<p class="lead">This page is the loop: member banners in 125x125 tiles. Every <b data-k="perShift">10</b> verified visitors shift it one place, and the banner at the end rides out. That banner has cycled, and its owner earns <b data-k="views">150</b> network ad views.</p>
<div class="row"><a class="btn" href="/my">Post your banner</a><a class="btn sec" href="/how">How it works</a></div>
<a class="watchlink" href="/how#watch"><svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><circle cx="12" cy="12" r="11" fill="currentColor"/><path d="M10 8l6 4-6 4z" fill="#fff"/></svg>Watch the 2-minute walkthrough</a>
</section>
<section class="meter" aria-label="Next shift">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=7">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=7">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=8">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=7">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=7">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap legal">
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=7">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
<link rel="stylesheet" href="/assets/kit.css?v=1">
</head>
<body>
+1 -1
View File
@@ -22,7 +22,7 @@
<meta name="theme-color" content="#ffd400">
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
<link rel="stylesheet" href="/assets/vbb.css?v=7">
<link rel="stylesheet" href="/assets/vbb.css?v=9">
</head>
<body>
<main class="wrap legal">
+15 -1
View File
@@ -46,7 +46,7 @@ const hash = s => crypto.createHmac('sha256', SECRET).update(s).digest('hex').sl
// ---- http helpers ----
const MIME = { '.html': 'text/html; charset=utf-8', '.css': 'text/css', '.js': 'text/javascript', '.png': 'image/png', '.jpg': 'image/jpeg',
'.gif': 'image/gif', '.svg': 'image/svg+xml', '.ico': 'image/x-icon', '.json': 'application/json', '.txt': 'text/plain; charset=utf-8', '.xml': 'application/xml' };
'.gif': 'image/gif', '.svg': 'image/svg+xml', '.ico': 'image/x-icon', '.json': 'application/json', '.txt': 'text/plain; charset=utf-8', '.xml': 'application/xml', '.mp4': 'video/mp4', '.webm': 'video/webm' };
const CSP = "default-src 'self'; script-src 'self' https://cdn.jsdelivr.net https://linkspin.app https://polhunter.com; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; "
+ "img-src 'self' data: blob: https:; connect-src 'self' https://linkspin.app https://polhunter.com https://*.walletconnect.com wss://*.walletconnect.com https://*.walletconnect.org wss://*.walletconnect.org "
+ "https://*.reown.com wss://*.reown.com https://*.reown.org wss://*.reown.org https://*.web3modal.org https://*.drpc.org https://*.publicnode.com https://*.coinbase.com; "
@@ -61,6 +61,19 @@ function sendFile(res, file, extra) {
res.end(data);
});
}
// video needs byte ranges (Safari will not play it without them); tutorial videos 2026-11-18
function sendMedia(req, res, file) {
fs.stat(file, (err, st) => {
if (err || !st.isFile()) { res.writeHead(404, headers({ 'Content-Type': 'text/plain' })); return res.end('Not found'); }
const base = { 'Content-Type': MIME[path.extname(file).toLowerCase()], 'Accept-Ranges': 'bytes', 'Cache-Control': 'public, max-age=86400' };
const m = /^bytes=(\d*)-(\d*)$/.exec(req.headers.range || '');
if (!m || (!m[1] && !m[2])) { res.writeHead(200, headers(Object.assign(base, { 'Content-Length': st.size }))); return fs.createReadStream(file).pipe(res); }
let a = m[1] ? +m[1] : Math.max(0, st.size - +m[2]), b = m[1] && m[2] ? Math.min(+m[2], st.size - 1) : st.size - 1;
if (a > b || a >= st.size) { res.writeHead(416, headers({ 'Content-Range': 'bytes */' + st.size })); return res.end(); }
res.writeHead(206, headers(Object.assign(base, { 'Content-Range': 'bytes ' + a + '-' + b + '/' + st.size, 'Content-Length': b - a + 1 })));
fs.createReadStream(file, { start: a, end: b }).pipe(res);
});
}
function readRaw(req, max) {
return new Promise((resolve, reject) => { const ch = []; let n = 0;
req.on('data', c => { n += c.length; if (n > max * 8) { req.destroy(); return; } if (n <= max) ch.push(c); });
@@ -266,6 +279,7 @@ const server = http.createServer(async (req, res) => {
if (p === '/robots.txt') { res.writeHead(200, headers({ 'Content-Type': 'text/plain; charset=utf-8' })); return res.end('User-agent: *\nAllow: /\nDisallow: /my\nDisallow: /admin\nDisallow: /api/\nDisallow: /go/\nDisallow: /sso/\n\nSitemap: https://' + C.site + '/sitemap.xml\n'); }
if (p.startsWith('/assets/') || p.startsWith('/art/') || p === '/favicon.ico') {
const f = path.normalize(path.join(PUB, p === '/favicon.ico' ? '/art/icon-192.png' : p)); if (!f.startsWith(PUB + path.sep)) { res.writeHead(400); return res.end(); }
if (/\.(mp4|webm)$/i.test(f)) return sendMedia(req, res, f);
return sendFile(res, f);
}
if (p.startsWith('/u/')) {
+26 -8
View File
@@ -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)} &rarr;</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)} &rarr;</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}