Showcase box
A rounded, tinted box holding a short description beside a browser-frame mock-up. Built for the top of a project or product page. Use it to introduce one project or product, with a screenshot or live demo in the frame.
<section class="blk-section" aria-labelledby="blk-showcase-h">
<div class="blk-container">
<div class="blk-showbox">
<div class="blk-showbox__text">
<h2 id="blk-showcase-h">Project name</h2>
<p>One paragraph that says what the project is, what problem it solves and where it stands today.</p>
<div class="blk-btn-row">
<a class="blk-btn blk-btn--primary" href="#">Open the demo</a>
<a class="blk-btn blk-btn--outline" href="#">Read the story</a>
</div>
</div>
<figure class="blk-frame" aria-label="Project screenshot">
<div class="blk-frame__bar"><span class="blk-frame__dots" aria-hidden="true"><i></i><i></i><i></i></span><span class="blk-frame__addr">example.com/project</span></div>
<div class="blk-frame__view" aria-hidden="true"><span class="blk-frame__bar1"></span><span class="blk-frame__bar2"></span><span class="blk-frame__bar3"></span></div>
</figure>
</div>
</div>
</section>.blk-showbox { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; background: var(--blk-band-b); border-radius: var(--blk-radius-lg); padding: clamp(28px, 4vw, 52px); }
.blk-showbox__text h2 { margin-bottom: .5em; }
.blk-showbox__text .blk-btn-row { margin-top: 1.6em; }
.blk-frame { margin: 0; background: var(--blk-surface); border: 1px solid var(--blk-line); border-radius: 14px; overflow: hidden; box-shadow: var(--blk-shadow); }
.blk-frame__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--blk-line); background: var(--blk-surface); }
.blk-frame__dots { display: inline-flex; gap: 6px; }
.blk-frame__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--blk-line); }
.blk-frame__addr { flex: 1; min-width: 0; padding: 4px 12px; border-radius: 999px; background: var(--blk-band-b); color: var(--blk-muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-frame__view { position: relative; display: grid; gap: 12px; padding: 18px; min-height: 240px; align-content: start; }
.blk-frame__view > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blk-frame__bar1, .blk-frame__bar2, .blk-frame__bar3 { display: block; height: 14px; border-radius: 7px; background: var(--blk-band-b); }
.blk-frame__bar1 { width: 45%; height: 20px; background: var(--blk-accent); opacity: .85; }
.blk-frame__bar2 { width: 90%; }
.blk-frame__bar3 { width: 70%; }
@media (min-width: 900px) { .blk-showbox { grid-template-columns: 1fr 1.25fr; } }How to customise it
- Replace the placeholder bars in the frame with an img (one child of blk-frame__view), or leave it as a loading-state sketch.
- Change the web address in the bar. It is only text.
- The tint is --blk-band-b. Change it in a theme, not here.
- Add the section below it with no top padding so the box and the content below feel connected.
Tokens it reads
--blk-band-b--blk-radius-lg--blk-surface--blk-line--blk-heading--blk-inkAdd the "Showcase box" block from Product Scope Blocks (https://resources.productscope.uk/blocks/blocks/showcase-box) to my page. Link https://resources.productscope.uk/blocks/blocks/kit/blocks.css once. Paste the HTML from https://resources.productscope.uk/blocks/blocks/kit/blocks/showcase-box.html and replace the placeholder text with my real content. Do not change the class names, add inline styles or add scripts. To change colours or fonts, override the --blk- variables in my own CSS. Do not invent facts, clients or numbers.