Promo kit (Marty 2026-11-14: "get all the creatives built for downline banners and VBB, and put them in all the places they need to go"): promokit.js is the one source for the Downline Banners kit, published as GET /api/promo-kit?u=<network username or wallet> (public, CORS open, read by /promote and by InstantAdPay's Promo tools > Network sites): personal links (?ref=), 21 creatives (3 angles: $5 spot + 300 guaranteed views / 10 levels pay as spots sell after yours / no withdrawals, paid in the same transaction; each in 125x125, 468x60, 728x90, 300x250, 160x600, 1200x630, 1080x1080) at /art/kit/dlb-<angle>-<shape>.png (ad-blocker-neutral names, rendered crisp from HTML by tools/kit-art.mjs with Playwright), 5 lines, 3 headlines, 1 email, 2 posts (facts per SPEC.md + contract: sponsor 30%, 10 levels x 5.5%, splits fixed; nothing promised). /promote page (kitpage.js + promote.js + kit.css): username from sign-in, ?u= or typed; nav + footer link Promote; sitemap. server.js: one require + one hook line. common.js?v=20261114p. Smoke 106/106 (promo kit feed, every PNG at its exact size, Promote page signed in, desktop + phone screenshots; gate step now screenshots itself if it ever stalls).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 439 KiB |
|
After Width: | Height: | Size: 639 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 437 KiB |
|
After Width: | Height: | Size: 635 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 433 KiB |
|
After Width: | Height: | Size: 628 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 76 KiB |
@@ -17,7 +17,7 @@ window.BL = (function () {
|
||||
async function renderNav(active) {
|
||||
const c = await getConfig().catch(() => ({}));
|
||||
const n = document.createElement('nav');
|
||||
const links = [['/', 'Home'], ['/board', 'Board'], ['/how', 'How it works'], ['/ledger', 'Ledger'], ['/join', 'Get a spot'], ['/my', 'My Spots']];
|
||||
const links = [['/', 'Home'], ['/board', 'Board'], ['/how', 'How it works'], ['/ledger', 'Ledger'], ['/join', 'Get a spot'], ['/promote', 'Promote'], ['/my', 'My Spots']];
|
||||
n.innerHTML = '<div class="wrap"><a class="brand" href="/"><img src="/art/mark.svg" alt="" width="38" height="38"><span class="logo-wrap"><span class="logo">Downline <b>Banners</b></span>'
|
||||
+ '<span class="byline">Part of the <b>Crypto Team Build</b> Network</span></span></a><div class="links">'
|
||||
+ links.map(l => '<a href="' + l[0] + '"' + (l[0] === active ? ' class="active"' : '') + '>' + l[1] + '</a>').join('') + '</div></div>';
|
||||
@@ -37,7 +37,7 @@ window.BL = (function () {
|
||||
f.className = 'bl-foot';
|
||||
f.innerHTML = '<div class="wrap"><p>Part of the Crypto Team Build Network</p>'
|
||||
+ '<p class="muted small">A spot buys 300 guaranteed views on the board and a place in the line. Nothing is promised: you are paid only when spots sell after yours, and a spot can earn back less than it cost.</p>'
|
||||
+ '<p class="small"><a href="/how">How it works</a> · <a href="/board">Board</a> · <a href="/ledger">Live ledger</a> · <a href="/contract">Contract proof</a> · <a href="/my">My Spots</a></p></div>';
|
||||
+ '<p class="small"><a href="/how">How it works</a> · <a href="/board">Board</a> · <a href="/ledger">Live ledger</a> · <a href="/contract">Contract proof</a> · <a href="/promote">Promote</a> · <a href="/my">My Spots</a></p></div>';
|
||||
document.body.appendChild(f);
|
||||
toasts();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* Promote page (2026-11-14). Neutral class names (kit-*), no ad/banner words. */
|
||||
.kit-who{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
|
||||
.kit-who input{flex:1 1 220px;min-width:0;font:inherit;padding:11px 13px;border-radius:12px;border:1px solid var(--line-strong);background:var(--panel-solid);color:var(--ink)}
|
||||
.kit-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line)}
|
||||
.kit-row:first-of-type{border-top:0}
|
||||
.kit-l{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:3px}
|
||||
.kit-lab{display:block;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
|
||||
.kit-url{font-family:var(--mono);font-size:13.5px;overflow-wrap:anywhere;color:var(--mint)}
|
||||
.kit-txt{flex:1 1 300px;margin:0;min-width:0}
|
||||
.kit-pre{white-space:pre-wrap;font:14.5px/1.55 inherit;font-family:inherit;margin:10px 0 0;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--panel-solid);overflow-wrap:anywhere}
|
||||
.kit-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 14px}
|
||||
.kit-tab{font:600 13.5px/1 inherit;font-family:inherit;padding:9px 13px;border-radius:999px;border:1px solid var(--line-strong);background:transparent;color:var(--muted);cursor:pointer}
|
||||
.kit-tab.on{border-color:var(--mint);color:var(--mint)}
|
||||
.kit-set{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start}
|
||||
.kit-fig{margin:0;display:flex;flex-direction:column;gap:8px;max-width:100%}
|
||||
.kit-fig img{display:block;max-width:100%;height:auto;border-radius:6px;border:1px solid var(--line)}
|
||||
.kit-social img{width:600px} .kit-square img{width:360px}
|
||||
.kit-fig figcaption{font-size:13px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
|
||||
.kit-acts{display:flex;gap:6px;flex-wrap:wrap;width:100%}
|
||||
.kit-note{margin:6px 0 24px}
|
||||
@@ -0,0 +1,49 @@
|
||||
// Promote page renderer (2026-11-14). Draws a promo kit (GET /api/promo-kit) into a container: links, creatives grouped by angle,
|
||||
// swipe lines, headlines, an email and social posts, each with a copy button. Same file on Downline Banners and Viral Banner Blitz;
|
||||
// the page script decides the username and the look comes from the site's own CSS (.card, .btn, .kit-*).
|
||||
window.KitPage = (function () {
|
||||
const esc = s => String(s == null ? '' : s).replace(/[&<>"']/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
||||
async function copy(text, btn) {
|
||||
try { await navigator.clipboard.writeText(text); } catch (e) {
|
||||
const t = document.createElement('textarea'); t.value = text; document.body.appendChild(t); t.select(); try { document.execCommand('copy'); } catch (e2) {} t.remove();
|
||||
}
|
||||
if (btn) { const o = btn.textContent; btn.textContent = 'Copied'; setTimeout(() => { btn.textContent = o; }, 1400); }
|
||||
}
|
||||
const TXT = [];
|
||||
const cb = (text, label, cls) => { TXT.push(text); return '<button type="button" class="btn small ' + (cls || 'sec') + '" data-kc="' + (TXT.length - 1) + '">' + esc(label || 'Copy') + '</button>'; };
|
||||
// on the kit's own site, show creatives from this origin (same files; the copied URL stays absolute)
|
||||
function local(url, k) { try { const u = new URL(url); return u.hostname === k.site && location.hostname !== k.site ? u.pathname : url; } catch (e) { return url; } }
|
||||
function render(root, k) {
|
||||
TXT.length = 0;
|
||||
const angles = []; const by = {};
|
||||
(k.creatives || []).forEach(c => { if (!by[c.angle]) { by[c.angle] = []; angles.push(c); } by[c.angle].push(c); });
|
||||
let h = '';
|
||||
h += '<div class="card"><h3>Your links</h3>' + (k.username ? '<p class="muted small">Every link, creative and line below carries <b>' + esc(k.username) + '</b>.</p>' : '<p class="muted small">Add your network username above so these links carry it.</p>')
|
||||
+ k.links.map(l => '<div class="kit-row"><div class="kit-l"><span class="kit-lab">' + esc(l.label) + '</span><code class="kit-url">' + esc(l.url) + '</code></div>' + cb(l.url, 'Copy link', '') + '</div>').join('') + '</div>';
|
||||
h += '<div class="card"><h3>Creatives</h3><p class="muted small">Download them, or copy the HTML: it already links to you.</p><div class="kit-tabs" role="tablist">'
|
||||
+ angles.map((c, i) => '<button type="button" class="kit-tab' + (i ? '' : ' on') + '" data-ka="' + esc(c.angle) + '">' + esc(c.angleLabel) + '</button>').join('') + '</div>';
|
||||
angles.forEach((a, i) => {
|
||||
h += '<div class="kit-set" data-ks="' + esc(a.angle) + '"' + (i ? ' hidden' : '') + '>' + by[a.angle].map(c =>
|
||||
'<figure class="kit-fig kit-' + esc(c.shape) + '"><a href="' + esc(c.url) + '" target="_blank" rel="noopener"><img src="' + esc(local(c.url, k)) + '" alt="' + esc(k.name + ', ' + c.label) + '" width="' + c.w + '" height="' + c.h + '" loading="lazy"></a>'
|
||||
+ '<figcaption><b>' + esc(c.label) + '</b> <span class="muted">' + c.w + 'x' + c.h + '</span><span class="kit-acts"><a class="btn small sec" href="' + esc(c.url) + '" download>Download</a>' + cb(c.url, 'Copy URL') + cb(c.html, 'Copy HTML') + '</span></figcaption></figure>').join('') + '</div>';
|
||||
});
|
||||
h += '</div>';
|
||||
h += '<div class="card"><h3>Short lines</h3><p class="muted small">For chats, comments, text ads and signatures.</p>' + k.lines.map(t => '<div class="kit-row"><p class="kit-txt">' + esc(t) + '</p>' + cb(t) + '</div>').join('') + '</div>';
|
||||
h += '<div class="card"><h3>Headlines</h3>' + k.headlines.map(t => '<div class="kit-row"><p class="kit-txt"><b>' + esc(t) + '</b></p>' + cb(t) + '</div>').join('') + '</div>';
|
||||
h += '<div class="card"><h3>Email</h3><div class="kit-row"><p class="kit-txt"><span class="kit-lab">Subject</span>' + esc(k.email.subject) + '</p>' + cb(k.email.subject, 'Copy subject') + '</div>'
|
||||
+ '<pre class="kit-pre">' + esc(k.email.body) + '</pre><div class="kit-row" style="justify-content:flex-end">' + cb(k.email.body, 'Copy email') + '</div></div>';
|
||||
h += '<div class="card"><h3>Social posts</h3>' + k.posts.map(t => '<div class="kit-post"><pre class="kit-pre">' + esc(t) + '</pre><div class="kit-row" style="justify-content:flex-end">' + cb(t, 'Copy post') + '</div></div>').join('') + '</div>';
|
||||
if (k.note) h += '<p class="muted small kit-note">' + esc(k.note) + '</p>';
|
||||
root.innerHTML = h;
|
||||
root.querySelectorAll('[data-kc]').forEach(b => b.addEventListener('click', () => copy(TXT[Number(b.dataset.kc)], b)));
|
||||
root.querySelectorAll('[data-ka]').forEach(b => b.addEventListener('click', () => {
|
||||
root.querySelectorAll('[data-ka]').forEach(x => x.classList.toggle('on', x === b));
|
||||
root.querySelectorAll('[data-ks]').forEach(s => { s.hidden = s.dataset.ks !== b.dataset.ka; });
|
||||
}));
|
||||
}
|
||||
async function load(root, u) {
|
||||
const r = await fetch('/api/promo-kit' + (u ? '?u=' + encodeURIComponent(u) : ''), { cache: 'no-store' });
|
||||
const k = await r.json(); render(root, k); return k;
|
||||
}
|
||||
return { render, load, copy };
|
||||
})();
|
||||
@@ -0,0 +1,25 @@
|
||||
// Promote page (2026-11-14): the promo kit from /api/promo-kit with the member's network username in every link.
|
||||
// Username: ?u= first, then the signed-in member's (My Spots), then the last one typed here (this browser only).
|
||||
(async function () {
|
||||
await BL.renderNav('/promote'); BL.renderFooter();
|
||||
const $ = BL.$; const RE = /^(?:[A-Za-z0-9_.-]{2,40}|0x[0-9a-fA-F]{40})$/;
|
||||
let u = new URLSearchParams(location.search).get('u') || '';
|
||||
let signed = false;
|
||||
if (!RE.test(u)) {
|
||||
u = '';
|
||||
try { const me = await BL.getJSON('/api/me'); if (me.signedIn) { const d = await BL.getJSON('/api/my'); if (d && !d.error) { u = d.username || d.address || ''; signed = true; } } } catch (e) {}
|
||||
}
|
||||
if (!u) { try { u = localStorage.getItem('kit.u') || ''; } catch (e) {} if (!RE.test(u)) u = ''; }
|
||||
$('whoIn').value = u;
|
||||
if (signed) $('whoNote').textContent = 'Signed in: your links below use ' + (u.startsWith('0x') ? 'your wallet (no network username found yet)' : '@' + u) + '.';
|
||||
async function show(name) {
|
||||
try { await KitPage.load($('kit'), name); BL.status(''); } catch (e) { BL.status('Could not load the kit. Try again in a moment.', 'err'); }
|
||||
}
|
||||
$('whoForm').addEventListener('submit', e => {
|
||||
e.preventDefault(); const v = $('whoIn').value.trim().replace(/^@/, '');
|
||||
if (v && !RE.test(v)) return BL.status('That does not look like a username: letters, numbers, dot, dash or underscore.', 'err');
|
||||
try { localStorage.setItem('kit.u', v); } catch (e2) {}
|
||||
show(v);
|
||||
});
|
||||
show(u);
|
||||
})();
|
||||
@@ -31,7 +31,7 @@
|
||||
<div class="card"><h3>The line so far</h3><div id="stats" class="grid2"></div></div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261114a"></script>
|
||||
<script src="/assets/common.js?v=20261114p"></script>
|
||||
<script src="/assets/board.js?v=1"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<li>Open any sale in the <a href="/ledger">live ledger</a> and look at its <b>Logs</b>: one SpotBought event, then one Paid event per payment.</li></ol></div>
|
||||
<div id="zContract"></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261114a"></script>
|
||||
<script src="/assets/common.js?v=20261114p"></script>
|
||||
<script src="/assets/contract.js?v=z1"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<div class="card"><h3>The momentum fund</h3><p>When no spot has sold for 4 hours, the fund buys one (at most 12 a day). It gifts the spot to an active member who owns a paid spot and has not had a gift in 7 days, members who referred someone recently first. If nobody qualifies, the fund keeps the spot and its line money goes back into the fund.</p></div>
|
||||
<div class="card"><h3>The rest of the network</h3><p>Open board slots show network sites such as InstantAdPay and LinkSpin. On InstantAdPay, ad credits buy advertising, not income.</p></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261114a"></script>
|
||||
<script src="/assets/common.js?v=20261114p"></script>
|
||||
<script src="/assets/how.js?v=z1"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
</section>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261114a"></script>
|
||||
<script src="/assets/common.js?v=20261114p"></script>
|
||||
<script src="/assets/gate.js?v=1"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<div id="status" class="note" hidden></div>
|
||||
<div class="card" id="doneCard" hidden><h3>Your spot is in the line</h3><p>Next: add your image and link in My Spots. One free signature signs you in (it cannot move funds).</p><div class="row"><button class="btn" id="toMyBtn">Open My Spots</button></div><p class="small mono" id="txLink"></p><div id="zBought"></div></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261114a"></script>
|
||||
<script src="/assets/common.js?v=20261114p"></script>
|
||||
<script src="/assets/wallet.js?v=1"></script>
|
||||
<script src="/assets/join.js?v=20261114h"></script>
|
||||
</body>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<div class="card"><div class="row" style="justify-content:space-between"><h3 style="margin:0">Spot sales</h3><span class="muted small" id="upd"></span></div>
|
||||
<div id="rows"><p class="muted">Loading the ledger...</p></div><div id="zLedger"></div><div id="rows2"></div></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261114a"></script>
|
||||
<script src="/assets/common.js?v=20261114p"></script>
|
||||
<script src="/assets/ledger.js?v=z1"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261114a"></script>
|
||||
<script src="/assets/common.js?v=20261114p"></script>
|
||||
<script src="/assets/wallet.js?v=1"></script>
|
||||
<script src="/assets/my.js?v=z1"></script>
|
||||
</body>
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Promote | Downline Banners</title>
|
||||
<meta name="description" content="Promote Downline Banners: your personal links, ready-made creatives in every common size, short lines, headlines, an email and social posts.">
|
||||
<link rel="canonical" href="https://downlinebanners.com/promote">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="Downline Banners">
|
||||
<meta property="og:title" content="Promote | Downline Banners">
|
||||
<meta property="og:description" content="Promote Downline Banners: your personal links, ready-made creatives in every common size, short lines, headlines, an email and social posts.">
|
||||
<meta property="og:url" content="https://downlinebanners.com/promote">
|
||||
<meta property="og:image" content="https://downlinebanners.com/art/og-share.png">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="630">
|
||||
<meta property="og:image:alt" content="Downline Banners: banner real estate in one line, paid instantly on-chain">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="Promote | Downline Banners">
|
||||
<meta name="twitter:description" content="Promote Downline Banners: your personal links, ready-made creatives in every common size, short lines, headlines, an email and social posts.">
|
||||
<meta name="twitter:image" content="https://downlinebanners.com/art/og-share.png">
|
||||
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/logo-icon.png">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap">
|
||||
<link rel="stylesheet" href="/assets/site.css?v=2">
|
||||
<link rel="stylesheet" href="/assets/line.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/kit.css?v=1">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
<section class="hero"><h1>Promote Downline Banners</h1><p class="lead">Your links, creatives in every common size, and copy you can paste anywhere. Everything carries your network username.</p></section>
|
||||
<div class="card" id="who"><h3>Your network username</h3>
|
||||
<p class="muted small" id="whoNote">Your InstantAdPay or LinkSpin username works here too. Sign in on <a href="/my">My Spots</a> and it fills in by itself.</p>
|
||||
<form class="kit-who" id="whoForm"><input id="whoIn" autocomplete="off" spellcheck="false" maxlength="42" placeholder="your username"><button class="btn" type="submit">Use it</button></form></div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
<div id="kit"><p class="muted">Loading the kit...</p></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261114p"></script>
|
||||
<script src="/assets/kitpage.js?v=1"></script>
|
||||
<script src="/assets/promote.js?v=1"></script>
|
||||
</body>
|
||||
</html>
|
||||