Files
linkspin/public/ads.html
T
martbost 44d40863db Ads screen layout by real width + Qualified Start positions on Credits (wallet switch fix)
Ads: the campaign table squeezed its empty-state note (and the first column) to a
word or a letter per line beside the side cards. Container queries now stack the
side cards under the table and turn rows into cards when the table cannot hold
seven columns, whatever the rail state. cr.css: an empty-state row (one muted
note) spans every column on every Control Room table.

Wallet: Disconnect really lets go (keeps wagmi's disconnected marker, revokes the
injected permission, next connect opens the account picker), so MetaMask no longer
snaps back to the first account. Credits gains Switch account, Disconnect, Add a
position wallet and a Buy from picker (ported from the classic Buy pane), so a
member can add wallets #2..#5 and buy from each while staying signed in as
themselves. Classic dashboard and Wallet screen copy point to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 05:15:15 -05:00

76 lines
6.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="robots" content="noindex, nofollow">
<title>Ads · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<style>
/* layout by the space the screen really has (rail expanded or collapsed), not the viewport: the campaign table squeezed
its first column to a word, then a letter, per line once the rail and the side cards took the width (tester, 2026-10-18) */
.body{padding:16px 24px;display:grid;gap:16px;container:adsbody/inline-size}
.two{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.side{display:grid;gap:16px;align-content:start}
.cl{container:camptbl/inline-size}
.cl .hd,.cl .rw{grid-template-columns:minmax(150px,1.4fr) minmax(110px,1fr) 104px 64px 56px 96px 128px}
/* side cards drop under the table once beside it the table would fall under its seven-column width */
@container adsbody (max-width:1180px){.two{grid-template-columns:minmax(0,1fr)}.side{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}}
/* narrower than seven columns fit: each campaign becomes a two-column card */
@container camptbl (max-width:820px){.cl .hd{display:none}.cl .rw{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cl .rw > :first-child{grid-column:1/-1}.cl .rw > .r{text-align:left}.cl .rw > :nth-child(4)::before{content:"views "}.cl .rw > :nth-child(5)::before{content:"clicks "}.cl .rw > .r::before{color:var(--muted);font:700 10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase}}
.cl .rw > *{min-width:0;overflow-wrap:anywhere}
.thumb{width:72px;height:36px;object-fit:contain;background:var(--inset);border:1px solid var(--chrome-line);border-radius:4px;display:block}
.bar{margin-top:6px}
.field{width:100%;box-sizing:border-box}
#composer[hidden]{display:none}
.where{display:grid;gap:9px}.where div{display:flex;gap:10px;align-items:flex-start}.where b{min-width:60px;color:var(--accent-hi);font:700 11px var(--mono);letter-spacing:.06em;text-transform:uppercase;padding-top:2px}
@media (max-width:900px){.body{padding:12px 16px}}
</style>
</head>
<body>
<div id="page">
<div class="body">
<div class="tiles" id="tiles"></div>
<div class="panel" id="composer" hidden>
<h2 id="cmpTitle">New ad</h2>
<div class="seg" id="typeChips"><button class="chip on" type="button" data-t="banner">Banner</button><button class="chip" type="button" data-t="text">Text ad</button><button class="chip" type="button" data-t="login">Login ad</button></div>
<div class="muted" id="typeNote"></div>
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px">
<label class="lbl">Name<input class="field" id="fName" maxlength="60" placeholder="Fall promo"></label>
<label class="lbl">Budget, credits<input class="field mono" id="fBudget" type="number" min="10" step="1" value="50"></label>
<label class="lbl">Daily cap, credits (optional)<input class="field mono" id="fCap" type="number" min="10" step="1" placeholder="none"></label>
<label class="lbl">Show to<select class="field" id="fGeo"><option value="">Everyone</option><option value="1">Tier 1 countries</option><option value="1,2">Tier 1 and 2</option></select></label>
<label class="lbl">Audience<select class="field" id="fAud"><option value="">Everyone</option></select></label>
<label class="lbl" id="fAudModeRow" hidden>Audience rule<select class="field" id="fAudMode"><option value="include">Show only to them</option><option value="exclude">Never show to them</option></select></label>
</div>
<div style="display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;margin-top:12px" class="tgt">
<label class="lbl">Where the click goes<input class="field mono" id="fTarget" placeholder="https://"></label>
<label class="lbl">Or a spin link<select class="field" id="fSpin"><option value="">pick a spin</option></select></label>
</div>
<div id="bannerFields" style="display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px">
<label class="lbl">Size<select class="field" id="fSize"></select></label>
<label class="lbl">Image URL<input class="field mono" id="fImage" placeholder="https://"></label>
<label class="lbl">Or upload (PNG, JPG, WebP, GIF up to 3 MB)<input class="field" id="fFile" type="file" accept="image/png,image/jpeg,image/webp,image/gif"></label>
</div>
<div id="textFields" hidden style="display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px;margin-top:12px">
<label class="lbl">Headline (60)<input class="field" id="fTitle" maxlength="60"></label>
<label class="lbl">One line (140)<input class="field" id="fBody" maxlength="140"></label>
</div>
<div id="prev" style="margin-top:12px"></div>
<div style="display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;align-items:center"><button class="btn pri" type="button" id="fGo">Launch</button><button class="btn ghost" type="button" id="fCancel">Cancel</button><span class="led" id="fCost"></span></div>
</div>
<div class="two">
<div class="tbl cl"><div class="hd"><span>Campaign</span><span>Creative</span><span>Budget</span><span class="r">Views</span><span class="r">Clicks</span><span>Status</span><span></span></div><div id="rows"></div><div class="ft" id="foot"></div></div>
<div class="side">
<div class="panel"><h2>Earn credits</h2><div class="gauge" id="earnGauge"><i></i><i></i><i></i><i></i><i></i></div><div class="muted" id="earnLine" style="margin-top:8px">loading</div><div style="display:flex;gap:8px;flex-wrap:wrap;margin-top:12px"><button class="btn blue" type="button" id="earnNext">View an ad</button><button class="btn" type="button" id="earnClaim" hidden>Claim</button></div><div class="muted" id="earnNote" style="margin-top:8px"></div></div>
<div class="panel"><h2>Where your ads run</h2><div class="where ink2"><div><b>Banner</b><span>the ad viewer here, every member zone on outside sites, and the partner network</span></div><div><b>Text</b><span>the ad viewer and the partner network</span></div><div><b>Login</b><span>full screen to every member right after they sign in, one sponsor a day</span></div></div><div class="muted" id="rateLine" style="margin-top:10px"></div></div>
</div>
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/ads-screen.js?v=20261008b"></script>
</body>
</html>