Downline Banners (Marty 2026-11-13: keep the name): renamed everywhere members see it, new stacked-banner logo + favicon; network sign-in (arrive signed in from InstantAdPay/LinkSpin as your wallet); share links, sponsor and directs use network usernames (?ref=username resolves through InstantAdPay)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-13 07:35:22 -06:00
parent 63199e767a
commit 0507c1a815
15 changed files with 302 additions and 55 deletions
+1 -1
View File
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="468" height="60" viewBox="0 0 468 60"><defs><linearGradient id="g" x1="0" x2="1"><stop offset="0" stop-color="#2a1f55"/><stop offset="1" stop-color="#0e0c18"/></linearGradient></defs><rect width="468" height="60" rx="6" fill="url(#g)"/><rect x="1" y="1" width="466" height="58" rx="6" fill="none" stroke="#9b7bff" stroke-opacity=".6"/><text x="18" y="27" font-family="Segoe UI,Arial,sans-serif" font-size="19" font-weight="700" fill="#f3f1fa">Banner Line: this slot is open</text><text x="18" y="46" font-family="Segoe UI,Arial,sans-serif" font-size="12.5" fill="#c9c3e3">A $5 spot = 300 guaranteed views and a place in the line.</text><rect x="368" y="17" width="84" height="26" rx="13" fill="#c6f432"/><text x="410" y="34.5" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-size="12.5" font-weight="700" fill="#141a02">Get a spot</text></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="468" height="60" viewBox="0 0 468 60"><defs><linearGradient id="g" x1="0" x2="1"><stop offset="0" stop-color="#2a1f55"/><stop offset="1" stop-color="#0e0c18"/></linearGradient></defs><rect width="468" height="60" rx="6" fill="url(#g)"/><rect x="1" y="1" width="466" height="58" rx="6" fill="none" stroke="#9b7bff" stroke-opacity=".6"/><text x="18" y="27" font-family="Segoe UI,Arial,sans-serif" font-size="19" font-weight="700" fill="#f3f1fa">Downline Banners: slot open</text><text x="18" y="46" font-family="Segoe UI,Arial,sans-serif" font-size="12.5" fill="#c9c3e3">A $5 spot = 300 guaranteed views and a place in the line.</text><rect x="368" y="17" width="84" height="26" rx="13" fill="#c6f432"/><text x="410" y="34.5" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-size="12.5" font-weight="700" fill="#141a02">Get a spot</text></svg>

Before

Width:  |  Height:  |  Size: 909 B

After

Width:  |  Height:  |  Size: 906 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><defs><linearGradient id="dbg" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#c6f432"/><stop offset=".55" stop-color="#7ef0c8"/><stop offset="1" stop-color="#6fd8ff"/></linearGradient><linearGradient id="dbb" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#211b3a"/><stop offset="1" stop-color="#110e1d"/></linearGradient></defs><rect x="1" y="1" width="62" height="62" rx="16" fill="url(#dbb)" stroke="#9b7bff" stroke-opacity=".45" stroke-width="2"/><rect x="11" y="13" width="30" height="9" rx="3" fill="url(#dbg)"/><rect x="17" y="27.5" width="30" height="9" rx="3" fill="url(#dbg)" opacity=".8"/><rect x="23" y="42" width="30" height="9" rx="3" fill="url(#dbg)" opacity=".6"/><path d="M14 25v8.5a3 3 0 0 0 3 3h0M20 39.5v6a3 3 0 0 0 3 3" fill="none" stroke="#9b7bff" stroke-width="2.4" stroke-linecap="round"/></svg>

After

Width:  |  Height:  |  Size: 924 B

+2 -2
View File
@@ -18,8 +18,8 @@ window.BL = (function () {
const c = await getConfig().catch(() => ({}));
const n = document.createElement('nav');
const links = [['/', 'Home'], ['/board', 'Board'], ['/how', 'How it works'], ['/join', 'Get a spot'], ['/my', 'My Spots']];
n.innerHTML = '<div class="wrap"><div class="logo-wrap"><a class="logo" href="/">Banner <b>Line</b></a>'
+ '<span class="byline">Part of the <b>Crypto Team Build</b> Network</span></div><div class="links">'
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>';
document.body.prepend(n);
if (c && c.chainId && c.chainId !== 137) {
+3
View File
@@ -45,3 +45,6 @@ nav .links a.active{color:var(--mint-ink);background:var(--mint)}
.logo b{background:linear-gradient(92deg,var(--mint),var(--cyan));-webkit-background-clip:text;background-clip:text;color:transparent}
.btn{box-shadow:0 6px 28px -6px rgba(198,244,50,.45)}
.steps li.on{background:var(--mint-soft)}
.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none!important;min-width:0}
.brand img{flex:none;filter:drop-shadow(0 4px 14px rgba(155,123,255,.35))}
.brand .logo{letter-spacing:-.02em}
+4 -2
View File
@@ -7,6 +7,8 @@
const c = await BL.getConfig();
const me = await BL.getJSON('/api/me');
if (!me.signedIn) {
// network sign-in (2026-11-13): signed in on InstantAdPay already? One quick hop there and back signs you in here too
try { const ss = await BL.getJSON('/api/sso/status'); if (ss && ss.check) { location.replace('/sso/start?mode=check&to=' + encodeURIComponent('/my' + location.hash)); return; } } catch (e) {}
$('signin').hidden = false;
$('signBtn').onclick = async () => {
try { BL.status('Check your wallet for the sign-in message.'); await BLWallet.signIn(); location.reload(); }
@@ -18,7 +20,7 @@
async function load() {
const d = await BL.getJSON('/api/my');
if (d.error) return BL.status(d.error, 'err');
$('dash').hidden = false; $('me').textContent = d.address;
$('dash').hidden = false; $('me').textContent = d.username ? '@' + d.username + ' (' + BL.short(d.address) + ')' : d.address;
const delivered = d.spots.reduce((t, s) => t + s.views, 0);
$('stats').innerHTML = [['Spots owned', d.spots.length], ['Views delivered', delivered + ' of ' + d.spots.filter(s => s.kind !== 3).length * c.viewsOwed],
['POL paid in', BL.fmtPol(d.paidInWei)], ['POL paid out to you', BL.fmtPol(d.paidOutWei)]]
@@ -30,7 +32,7 @@
for (const s of d.spots) box.appendChild(editor('spot', s));
$('defaults').innerHTML = ''; $('defaults').appendChild(editor('default', { img: d.defaults.img || '', link: d.defaults.link || '', showing: { img: d.defaults.img || '/art/house-line.svg' } }));
$('payouts').innerHTML = d.payouts.length ? '<table class="tbl"><tr><th>Spot sold</th><th>Why</th><th>POL</th><th>Tx</th></tr>' + d.payouts.map(p => '<tr><td>#' + p.spotId + '</td><td>' + esc(ROLE[p.role] || p.role) + '</td><td>' + BL.fmtPol(p.amount, 6) + '</td><td class="mono small">' + txLink(p.tx) + '</td></tr>').join('') + '</table>' : '<p class="muted">No payments yet. You are paid when spots sell after yours, or when someone you referred buys.</p>';
$('directs').innerHTML = d.directs.length ? '<table class="tbl"><tr><th>Member</th><th>Joined</th><th>Spots</th><th>Paid spots</th><th>POL paid in</th></tr>' + d.directs.map(m => '<tr><td class="mono small">' + esc(BL.short(m.address)) + '</td><td>' + new Date(m.joinedAt).toLocaleDateString() + '</td><td>' + m.spots + '</td><td>' + m.paidSpots + '</td><td>' + BL.fmtPol(m.paidInWei) + '</td></tr>').join('') + '</table>' : '<p class="muted">Nobody has joined through your link yet.</p>';
$('directs').innerHTML = d.directs.length ? '<table class="tbl"><tr><th>Member</th><th>Joined</th><th>Spots</th><th>Paid spots</th><th>POL paid in</th></tr>' + d.directs.map(m => '<tr><td class="mono small">' + esc(m.username ? '@' + m.username : BL.short(m.address)) + '</td><td>' + new Date(m.joinedAt).toLocaleDateString() + '</td><td>' + m.spots + '</td><td>' + m.paidSpots + '</td><td>' + BL.fmtPol(m.paidInWei) + '</td></tr>').join('') + '</table>' : '<p class="muted">Nobody has joined through your link yet.</p>';
}
const txLink = h => c.explorer ? '<a target="_blank" rel="noopener" href="' + esc(c.explorer + '/tx/' + h) + '">' + esc(h.slice(0, 10)) + '...</a>' : esc(h.slice(0, 10)) + '...';
function editor(kind, s) {
+2 -2
View File
@@ -1,4 +1,4 @@
// Banner Line wallet plumbing: InstantAdPay's wallet.js (same AppKit build, chain guard, fee fix, dead-session
// Downline Banners wallet plumbing: InstantAdPay's wallet.js (same AppKit build, chain guard, fee fix, dead-session
// recovery), with buy(sponsor) / buyFor(owner, sponsor) in place of the IAP product buy. Selectors come from
// /api/config (server abi.js), so the ABI lives in one module.
// Wallet plumbing via Reown AppKit — the universal connector every wallet is
@@ -49,7 +49,7 @@ window.BLWallet = (function () {
const wagmiAdapter = new WagmiAdapter({ networks: allNets, projectId });
modal = createAppKit({
adapters: [wagmiAdapter], networks: allNets, projectId, defaultNetwork: net,
metadata: { name: 'Banner Line', description: 'Spots on the board, split on-chain when spots sell.',
metadata: { name: 'Downline Banners', description: 'Spots on the board, split on-chain when spots sell.',
url: location.origin, icons: [location.origin + '/logo-icon.png'] },
features: { analytics: false, email: false, socials: [] },
// Picker order: wallets without Trust's balance-proportion block go first.
+5 -5
View File
@@ -2,12 +2,12 @@
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Board | Banner Line</title>
<meta name="description" content="Banner Line: a $5 spot buys 300 guaranteed views on the board and a place in the line. Paid instantly on-chain when spots sell.">
<link rel="icon" type="image/png" href="/logo-icon.png">
<title>Board | Downline Banners</title>
<meta name="description" content="Downline Banners: a $5 spot buys 300 guaranteed views on the board and a place in the line. Paid instantly on-chain when spots sell.">
<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=2">
<link rel="stylesheet" href="/assets/line.css?v=3">
</head>
<body>
<main class="wrap">
@@ -17,7 +17,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=1"></script>
<script src="/assets/common.js?v=2"></script>
<script src="/assets/board.js?v=1"></script>
</body>
</html>
+6 -6
View File
@@ -2,16 +2,16 @@
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>How it works | Banner Line</title>
<meta name="description" content="Banner Line: a $5 spot buys 300 guaranteed views on the board and a place in the line. Paid instantly on-chain when spots sell.">
<link rel="icon" type="image/png" href="/logo-icon.png">
<title>How it works | Downline Banners</title>
<meta name="description" content="Downline Banners: a $5 spot buys 300 guaranteed views on the board and a place in the line. Paid instantly on-chain when spots sell.">
<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=2">
<link rel="stylesheet" href="/assets/line.css?v=3">
</head>
<body>
<main class="wrap">
<section class="hero"><h1>How Banner Line works</h1><p class="lead">One global line of 468x60 spots. Plain rules, all on-chain, nothing held by the site.</p></section>
<section class="hero"><h1>How Downline Banners works</h1><p class="lead">One global line of 468x60 spots. Plain rules, all on-chain, nothing held by the site.</p></section>
<div class="card"><h3>What a spot buys</h3><p>A spot costs $5 in POL at the Chainlink POL/USD price. It buys two things: 300 guaranteed views on the board for your image and link (delivered within 30 days, newest spots on top), and a place in the line.</p></div>
<div class="card"><h3>Where the $5 goes, in the same transaction</h3>
<table class="tbl"><tr><th>Share</th><th>To</th></tr>
@@ -24,7 +24,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=1"></script>
<script src="/assets/common.js?v=2"></script>
<script src="/assets/how.js?v=1"></script>
</body>
</html>
+5 -5
View File
@@ -2,12 +2,12 @@
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Banner Line | Banner real estate in one line</title>
<meta name="description" content="Banner Line: a $5 spot buys 300 guaranteed views on the board and a place in the line. Paid instantly on&#8209;chain when spots sell.">
<link rel="icon" type="image/png" href="/logo-icon.png">
<title>Downline Banners | Banner real estate in one line</title>
<meta name="description" content="Downline Banners: a $5 spot buys 300 guaranteed views on the board and a place in the line. Paid instantly on&#8209;chain when spots sell.">
<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=2">
<link rel="stylesheet" href="/assets/line.css?v=3">
</head>
<body>
<main class="wrap">
@@ -37,7 +37,7 @@
</section>
<div id="status" class="note" hidden></div>
</main>
<script src="/assets/common.js?v=1"></script>
<script src="/assets/common.js?v=2"></script>
<script src="/assets/gate.js?v=1"></script>
</body>
</html>
+5 -5
View File
@@ -2,12 +2,12 @@
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Get a spot | Banner Line</title>
<meta name="description" content="Banner Line: a $5 spot buys 300 guaranteed views on the board and a place in the line. Paid instantly on-chain when spots sell.">
<link rel="icon" type="image/png" href="/logo-icon.png">
<title>Get a spot | Downline Banners</title>
<meta name="description" content="Downline Banners: a $5 spot buys 300 guaranteed views on the board and a place in the line. Paid instantly on-chain when spots sell.">
<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=2">
<link rel="stylesheet" href="/assets/line.css?v=3">
</head>
<body>
<main class="wrap">
@@ -34,7 +34,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>
</main>
<script src="/assets/common.js?v=1"></script>
<script src="/assets/common.js?v=2"></script>
<script src="/assets/wallet.js?v=1"></script>
<script src="/assets/join.js?v=2&o=1"></script>
</body>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 23 KiB

+6 -6
View File
@@ -2,12 +2,12 @@
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>My Spots | Banner Line</title>
<meta name="description" content="Banner Line: a $5 spot buys 300 guaranteed views on the board and a place in the line. Paid instantly on-chain when spots sell.">
<link rel="icon" type="image/png" href="/logo-icon.png">
<title>My Spots | Downline Banners</title>
<meta name="description" content="Downline Banners: a $5 spot buys 300 guaranteed views on the board and a place in the line. Paid instantly on-chain when spots sell.">
<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=2">
<link rel="stylesheet" href="/assets/line.css?v=3">
</head>
<body>
<main class="wrap">
@@ -26,8 +26,8 @@
</div>
<div id="status" class="note" hidden></div>
</main>
<script src="/assets/common.js?v=1"></script>
<script src="/assets/common.js?v=2"></script>
<script src="/assets/wallet.js?v=1"></script>
<script src="/assets/my.js?v=1"></script>
<script src="/assets/my.js?v=3"></script>
</body>
</html>