Files
linkspin/public/ads.html
T

68 lines
5.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=20261011b">
<style>
.body{padding:16px 24px;display:grid;gap:16px}
.two{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px}
.cl .hd,.cl .rw{grid-template-columns:minmax(0,1.4fr) minmax(0,1.4fr) 110px 80px 60px 110px 130px}
.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){.two{grid-template-columns:1fr}.cl .hd{display:none}.cl .rw{grid-template-columns:1fr 1fr}.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 style="display:grid;gap:16px;align-content:start">
<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=20261011b"></script>
<script src="/assets/ads-screen.js?v=20261008b"></script>
</body>
</html>