VBB v1: Marty's approved numbers as config defaults (1 free credit/day; packs 10 for $3, 40 for $10; look $2; split 30/70 kept for later; 150 views per cycle; weekly prizes $15/$7/$3 per leaderboard, display only); packages page shows planned prices as coming soon; smoke test (99/99); OG image + icon; env example + compose (not deployed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@
|
||||
<meta name="theme-color" content="#0b1030">
|
||||
<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=Archivo:wght@700;800;900&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=1">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=2">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 252 KiB |
@@ -2,6 +2,14 @@
|
||||
(async function () {
|
||||
VBB.renderNav('/leaders'); VBB.renderFooter();
|
||||
const $ = VBB.$, esc = VBB.esc;
|
||||
// weekly prizes from config (Marty 2026-11-13): displayed only, no payout code yet
|
||||
const c = await VBB.getConfig().catch(() => ({}));
|
||||
const pz = c.prizes || {}; const place = ['1st', '2nd', '3rd', '4th', '5th', '6th', '7th', '8th', '9th', '10th'];
|
||||
const plist = (title, arr) => '<div><h3>' + title + '</h3><ul class="pk-list">' + arr.map((v, i) => '<li>' + place[i] + ': $' + VBB.n(v) + ' in POL</li>').join('') + '</ul></div>';
|
||||
if ((pz.visitors || []).length || (pz.sources || []).length) {
|
||||
$('pz').innerHTML = ((pz.visitors || []).length ? plist('Most visitors sent', pz.visitors) : '') + ((pz.sources || []).length ? plist('Most traffic sources', pz.sources) : '');
|
||||
$('prizes').hidden = false;
|
||||
}
|
||||
const d = await VBB.getJSON('/api/leaders');
|
||||
if (d.error) return VBB.status(d.error, 'err');
|
||||
const wk = new Date(d.week + 'T12:00:00Z').toLocaleDateString('en-US', { month: 'long', day: 'numeric', timeZone: 'UTC' });
|
||||
|
||||
@@ -7,4 +7,9 @@
|
||||
if (c.perShift) set('perShift', c.perShift);
|
||||
if (c.viewsPerCycle != null) set('views', VBB.n(c.viewsPerCycle));
|
||||
if (c.visitSeconds) set('secs', c.visitSeconds);
|
||||
// planned package prices from config (Marty 2026-11-13); still coming soon, nothing is sold here
|
||||
const money = v => '$' + (Number.isInteger(v) ? v : Number(v).toFixed(2));
|
||||
const pp = document.getElementById('pkPacks');
|
||||
if (pp && c.packs && c.packs.length) pp.innerHTML = c.packs.map(p => '<li>' + VBB.n(p.credits) + ' post credits for ' + money(p.usd) + '</li>').join('');
|
||||
const lk = document.getElementById('pkLook'); if (lk && c.lookUsd) lk.textContent = money(c.lookUsd) + ' per banner';
|
||||
})();
|
||||
|
||||
@@ -128,9 +128,16 @@ tr:nth-child(2) .rank{background:var(--amber);color:var(--hot-ink)}
|
||||
.mine .item .s a{word-break:break-all}
|
||||
.pill{display:inline-block;font:700 11px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;padding:4px 8px;border-radius:999px;margin-bottom:5px}
|
||||
.pill.queued{background:var(--sky-soft);color:var(--sky)} .pill.loop{background:var(--amber-soft);color:var(--amber)} .pill.cycled{background:var(--ok-soft);color:var(--ok)}
|
||||
.share{display:flex;gap:8px;flex-wrap:wrap}.share input{flex:1;min-width:200px}
|
||||
.share{display:flex;gap:8px;flex-wrap:wrap}.share input{flex:1;min-width:200px;background:#0a0f2a;border:1px solid var(--line2);border-radius:10px;padding:11px 12px;color:var(--ink);font:14px var(--mono)}
|
||||
.soon{border:1.5px dashed var(--line2);border-radius:var(--r);padding:26px 20px;text-align:center}
|
||||
.soon .tag{display:inline-block;font:700 12px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--hot);background:var(--hot-soft);padding:5px 10px;border-radius:999px;margin-bottom:10px}
|
||||
/* packages + prizes */
|
||||
.pk{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:6px}
|
||||
.pk .card{margin:0}
|
||||
.pk-price{font:900 24px/1.15 var(--disp);color:var(--amber);margin:4px 0}
|
||||
.pk-list{list-style:none;padding:0;margin:6px 0}.pk-list li{font:700 16px/1.5 var(--body)}
|
||||
.tag-soon{display:inline-block;font:700 11px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--hot);background:var(--hot-soft);padding:4px 9px;border-radius:999px;margin-top:6px}
|
||||
.pz{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
|
||||
/* footer + toasts */
|
||||
footer.foot{margin-top:48px;padding:28px 0 40px;border-top:1px solid var(--line);color:var(--muted);font-size:13.5px;text-align:center}
|
||||
footer.foot a{color:var(--muted)} footer.foot p{margin:6px 0}
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<meta name="theme-color" content="#0b1030">
|
||||
<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=Archivo:wght@700;800;900&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=1">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=2">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
<meta name="theme-color" content="#0b1030">
|
||||
<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=Archivo:wght@700;800;900&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=1">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=2">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
+3
-2
@@ -22,16 +22,17 @@
|
||||
<meta name="theme-color" content="#0b1030">
|
||||
<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=Archivo:wght@700;800;900&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=1">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=2">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
<section class="hero"><div class="eyebrow"><i></i>This week</div><h1>Weekly leaderboards</h1><p class="lead" id="weekLbl">Monday to Sunday, Central time. Only verified visitors count: a real browser, on the page a few seconds, once a day per visitor.</p></section>
|
||||
<div class="card" id="prizes" hidden><h2>Weekly prizes</h2><p class="muted small">Paid in POL to the top three on each leaderboard for the week (dollar value, converted to POL).</p><div class="pz" id="pz"></div></div>
|
||||
<div class="card"><h2>Most visitors sent</h2><div class="scroll" id="lbVisitors"></div></div>
|
||||
<div class="card"><h2>Most traffic sources</h2><p class="muted small">Different websites your visitors came from (the referring site), so spreading your link widely counts.</p><div class="scroll" id="lbSources"></div></div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/leaders.js?v=1"></script>
|
||||
<script src="/assets/leaders.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<meta name="theme-color" content="#0b1030">
|
||||
<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=Archivo:wght@700;800;900&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=1">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=2">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<meta name="theme-color" content="#0b1030">
|
||||
<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=Archivo:wght@700;800;900&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=1">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=2">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -30,13 +30,17 @@
|
||||
<div class="soon">
|
||||
<div class="tag">Coming soon</div>
|
||||
<h2>One-time purchases. Never a subscription.</h2>
|
||||
<p class="muted">Every package will be a single purchase you make once. Nothing renews, nothing bills you again.</p>
|
||||
<p class="muted">Until packages open, every member gets one free post credit each day they sign in.</p>
|
||||
<div class="row" style="justify-content:center;margin-top:14px"><a class="btn" href="/my">Use my free credit</a></div>
|
||||
<p class="muted">Every package will be a single purchase you make once. Nothing renews, nothing bills you again. Here is what is planned.</p>
|
||||
</div>
|
||||
<div class="pk" id="pk">
|
||||
<div class="card pk-item"><h3>Post credit packs</h3><ul class="pk-list" id="pkPacks"><li>10 post credits for $3</li><li>40 post credits for $10</li></ul><p class="muted small">Each credit posts one banner into the loop.</p><span class="tag-soon">Coming soon</span></div>
|
||||
<div class="card pk-item"><h3>Banner look</h3><p class="pk-price" id="pkLook">$2 per banner</p><p class="muted small">A border and a hover teaser that make your banner stand out in the loop.</p><span class="tag-soon">Coming soon</span></div>
|
||||
<div class="card pk-item"><h3>Tokens</h3><p class="pk-price">Network visits</p><p class="muted small">Each token is a visit to your site from the network, at the InstantAdPay visit rate.</p><span class="tag-soon">Coming soon</span></div>
|
||||
</div>
|
||||
<div class="card center"><p>Until packages open, every member gets one free post credit each day they sign in.</p><a class="btn" href="/my">Use my free credit</a></div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=1"></script>
|
||||
<script src="/assets/static.js?v=1"></script>
|
||||
<script src="/assets/static.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user