Leaderboard window
A yellow retro window holds a bordered contributor table with colored pill tags and point totals, beside an illustrated square and a verification note.
snippet.html73 lines
<section class="lbw">
<div class="lbw__head">
<h2 class="lbw__title">Credit Where Due</h2>
<p class="lbw__text">Whoever keeps a trip plan moving deserves a mention. Edit a route, scout a stop, join a thread or break a tie, and each one adds points to a running tally of what you fixed.</p>
</div>
<div class="lbw__grid">
<div class="lbw__window">
<div class="lbw__chrome" aria-hidden="true"><i></i><i></i><i></i></div>
<div class="lbw__tablewrap">
<table class="lbw__table">
<thead><tr><th scope="col">Contributor</th><th scope="col">Contributions</th><th scope="col">Points added</th></tr></thead>
<tbody>
<tr><th scope="row"><span class="lbw__av" style="--a:#e5483f"></span>Dana</th><td><span class="lbw__tag" style="--t:#ffb3d1">Day plan done</span></td><td>+3200</td></tr>
<tr><th scope="row"><span class="lbw__av" style="--a:#2e7fe0"></span>Sol</th><td><span class="lbw__tag" style="--t:#ffe14d">14 Edits</span></td><td>+2100</td></tr>
<tr><th scope="row"><span class="lbw__av" style="--a:#2fa84f"></span>Remi</th><td><span class="lbw__tag" style="--t:#8fb8ff">Scouted first</span></td><td>+6800</td></tr>
<tr><th scope="row"><span class="lbw__av" style="--a:#8a5aff"></span>Priya</th><td><span class="lbw__tag" style="--t:#c9a4ff">2 New plans</span></td><td>+2430</td></tr>
</tbody>
</table>
</div>
</div>
<div class="lbw__art" aria-hidden="true">
<svg viewBox="0 0 240 230" preserveAspectRatio="xMidYMid slice"><rect width="240" height="230" fill="#4aa3e8"/><ellipse cx="60" cy="40" rx="50" ry="14" fill="#fff" opacity=".8"/><ellipse cx="190" cy="150" rx="46" ry="12" fill="#fff" opacity=".7"/><g stroke="#121a0e" stroke-width="3" stroke-linejoin="round"><path d="M100 0h52l-6 60c-4 16-40 16-46 0z" fill="#2fc23b"/><path d="M0 110 80 100l40 36-30 30-90-10z" fill="#e5322d"/><path d="M240 100l-90 4-30 36 40 30 80-10z" fill="#1c1c1c"/><ellipse cx="124" cy="126" rx="46" ry="26" fill="#e8b48a"/><ellipse cx="118" cy="134" rx="30" ry="16" fill="#b9753f"/></g></svg>
</div>
</div>
<p class="lbw__note"><span aria-hidden="true">✓</span> Every member signs in with a real account.<br>No bot accounts, ever.</p>
</section>
<style>
.lbw {
--lbw-ink: #121a0e;
--lbw-paper: #fdfde3;
--lbw-yellow: #ffec6b;
box-sizing: border-box;
padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem);
background: var(--lbw-paper);
color: var(--lbw-ink);
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.lbw *, .lbw *::before, .lbw *::after { box-sizing: border-box; }
.lbw__head, .lbw__grid { max-width: 1100px; margin: 0 auto; }
.lbw__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.lbw__title { margin: 0; max-width: 8ch; font: 400 clamp(2.25rem, 4vw, 2.75rem)/1.25 ui-serif, Georgia, serif; letter-spacing: -0.02em; }
.lbw__text { margin: 0.5rem 0 0; max-width: 46ch; text-align: right; font-size: 0.9375rem; line-height: 1.35; color: rgb(18 26 14 / 0.65); }
.lbw__grid { display: grid; grid-template-columns: minmax(0, 1fr) 234px; gap: 12px; margin-top: clamp(2rem, 5vw, 4rem); align-items: start; }
.lbw__window { border: 1px solid var(--lbw-ink); background: var(--lbw-paper); }
.lbw__chrome { display: flex; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--lbw-ink); background: #ffe45e; }
.lbw__chrome i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--lbw-ink); }
.lbw__chrome i:nth-child(1) { background: #ff4b2b; } .lbw__chrome i:nth-child(2) { background: #ffb21a; } .lbw__chrome i:nth-child(3) { background: #2fc23b; }
.lbw__tablewrap { padding: 20px; overflow-x: auto; }
.lbw__table { width: 100%; min-width: 440px; border: 1px solid var(--lbw-ink); border-collapse: collapse; font-size: 0.875rem; }
.lbw__table th, .lbw__table td { padding: 0 12px; height: 50px; text-align: left; font-weight: 400; }
.lbw__table thead th { height: 38px; font-size: 0.75rem; text-transform: uppercase; }
.lbw__table th:last-child, .lbw__table td:last-child { text-align: right; }
.lbw__table tbody tr { border-top: 1px solid var(--lbw-ink); transition: background-color 0.15s; }
.lbw__table tbody tr:hover { background: var(--lbw-yellow); }
.lbw__table tbody th { display: flex; align-items: center; gap: 10px; height: 50px; }
.lbw__table tbody th:not(:first-child) { display: table-cell; }
.lbw__av { width: 26px; height: 26px; border: 1px solid var(--lbw-ink); background: radial-gradient(circle at 50% 36%, #e8b48a 0 24%, #0000 25%), linear-gradient(var(--a), var(--a)); }
.lbw__tag { display: inline-block; padding: 0 9px; border: 1px solid var(--lbw-ink); border-radius: 999px; background: var(--t); font-size: 0.625rem; line-height: 1.5; }
.lbw__art { border: 1px solid var(--lbw-ink); overflow: hidden; aspect-ratio: 234 / 229; }
.lbw__art svg { display: block; width: 100%; height: 100%; }
.lbw__note { margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; text-align: center; font-size: 1rem; line-height: 1.35; }
@media (max-width: 860px) {
.lbw__head { flex-direction: column; }
.lbw__text { max-width: none; text-align: left; }
.lbw__title { max-width: none; }
.lbw__grid { grid-template-columns: minmax(0, 1fr); }
.lbw__art { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lbw__table tbody tr { transition: none; } }
</style>