Retro bar chart windows
A heading, two chart windows on dotted panels with captions, and a pair of big stats underneath.
snippet.html65 lines
<section class="rbww">
<h2 class="rbww__title" data-block="Title">Heading that makes the claim in two lines.</h2>
<div class="rbww__grid">
<article class="rbww__panel">
<div class="rbww__stage" data-block="Card">
<div class="rbww__win">
<div class="rbww__bar"></div>
<div class="rbww__row"><span></span><i style="width:6%"></i></div>
<div class="rbww__row"><span></span><i style="width:14%"></i></div>
<div class="rbww__row"><span></span><i style="width:30%"></i></div>
<div class="rbww__row"><span></span><i style="width:84%"></i></div>
<div class="rbww__row"><span></span><i style="width:22%"></i></div>
</div>
</div>
<h3 class="rbww__cap" data-block="Subtitle">Chart caption</h3>
<p class="rbww__copy" data-block="Text">One or two lines explaining what the chart shows and why it matters.</p>
</article>
<article class="rbww__panel">
<div class="rbww__stage" data-block="Card">
<div class="rbww__win">
<div class="rbww__bar"></div>
<div class="rbww__row"><span></span><i style="width:100%"></i></div>
<div class="rbww__row"><span></span><i style="width:44%"></i></div>
<div class="rbww__row"><span></span><i style="width:20%"></i></div>
<div class="rbww__row"><span></span><i style="width:8%"></i></div>
<div class="rbww__row"><span></span><i style="width:2%"></i></div>
</div>
</div>
<h3 class="rbww__cap" data-block="Subtitle">Chart caption</h3>
<p class="rbww__copy" data-block="Text">One or two lines explaining what the chart shows and why it matters.</p>
</article>
</div>
<dl class="rbww__stats" data-block="List">
<div><dt>$42</dt><dd>Stat label</dd></div>
<div><dt>238x</dt><dd>Stat label</dd></div>
</dl>
</section>
<style>
.rbww { box-sizing: border-box; padding: 80px 80px 72px; background: #ffffff; color: #111111; font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif; }
.rbww *, .rbww *::before, .rbww *::after { box-sizing: border-box; }
.rbww__title { margin: 0 0 56px 80px; max-width: 900px; font-size: clamp(30px, 4.2vw, 58px); font-weight: 700; line-height: 0.95; letter-spacing: -0.05em; }
.rbww__grid { display: grid; grid-template-columns: 1fr 1fr; }
.rbww__panel { border-left: 1px solid #111111; padding-bottom: 12px; }
.rbww__stage { margin: 0 10px; padding: 48px 24px; background: #f2f2f2; background-image: radial-gradient(#cfcfcf 1px, transparent 1.2px); background-size: 5px 5px; }
.rbww__win { background: #ffffff; border: 1px solid #111111; }
.rbww__bar { height: 18px; background: #111111; }
.rbww__row { padding: 10px 8px 0; }
.rbww__row:last-child { padding-bottom: 12px; }
.rbww__row span { display: block; width: 90px; height: 10px; margin-bottom: 4px; background: #bdbdbd; }
.rbww__row i { display: block; height: 16px; background: #111111; min-width: 3px; }
.rbww__cap { margin: 20px 10px 4px; font-size: 17px; font-weight: 600; }
.rbww__copy { margin: 0 10px; max-width: 44ch; font-size: 15px; line-height: 1.35; color: #555555; }
.rbww__stats { display: flex; margin: 56px 0 0; padding-left: 10px; }
.rbww__stats div { flex: 0 0 380px; }
.rbww__stats dt { font-size: 56px; font-weight: 700; letter-spacing: -0.06em; line-height: 1; }
.rbww__stats dd { margin: 6px 0 0; font-size: 16px; color: #555555; }
@media (max-width: 900px) {
.rbww { padding: 48px 16px; }
.rbww__title { margin-left: 0; margin-bottom: 36px; }
.rbww__grid { grid-template-columns: 1fr; gap: 32px; }
.rbww__stats { flex-wrap: wrap; gap: 24px; }
.rbww__stats div { flex: 1 1 140px; }
}
</style>




