Case-study panels
Four tall dark panels on a dark band. Each panel is one whole link: a small label and a title. A swipe rail on phones, a four-column grid on desktop. Use it to put your best work first. Title only keeps it scannable; the detail belongs on the page each panel links to.
<section class="blk-section blk-dark blk-panels-band" aria-labelledby="blk-panels-title">
<div class="blk-container">
<header class="blk-head">
<div class="blk-head__main">
<h2 id="blk-panels-title">Case studies</h2>
<p>Four recent pieces of work, each with the problem, the decisions and the result.</p>
</div>
<a class="blk-btn blk-btn--outline blk-head__btn" href="#">All case studies</a>
</header>
<div class="blk-panels">
<article class="blk-panel blk-panel--1">
<div class="blk-panel__body">
<p class="blk-panel__meta">2024 · Awards body</p>
<h3><a href="#">Launching a secure video platform for awards viewing</a></h3>
</div>
</article>
<article class="blk-panel blk-panel--2">
<div class="blk-panel__body">
<p class="blk-panel__meta">2023 · Broadcaster</p>
<h3><a href="#">Delivering a flexible jury voting system</a></h3>
</div>
</article>
<article class="blk-panel blk-panel--3">
<div class="blk-panel__body">
<p class="blk-panel__meta">2022 · Events platform</p>
<h3><a href="#">Rebuilding the experience for a white-label events product</a></h3>
</div>
</article>
<article class="blk-panel blk-panel--4">
<div class="blk-panel__body">
<p class="blk-panel__meta">2021 · Membership body</p>
<h3><a href="#">Modernising digital infrastructure and membership</a></h3>
</div>
</article>
</div>
</div>
</section>.blk-panels-band { background: var(--blk-deep); }
.blk-panels { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; scrollbar-color: #fff transparent; }
.blk-panel { position: relative; isolation: isolate; flex: 0 0 82%; max-width: 380px; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; scroll-snap-align: start; border-radius: var(--blk-radius-lg); border: 1px solid rgba(255,255,255,.12); color: var(--blk-on-dark); background: radial-gradient(130% 95% at 15% 0%, var(--panel, var(--blk-panel-1)), var(--blk-deep)); }
.blk-panel--1 { --panel: var(--blk-panel-1); }
.blk-panel--2 { --panel: var(--blk-panel-2); }
.blk-panel--3 { --panel: var(--blk-panel-3); }
.blk-panel--4 { --panel: var(--blk-panel-4); }
.blk-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.blk-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,13,19,.94) 6%, rgba(8,13,19,.5) 50%, rgba(8,13,19,.05) 85%); }
.blk-panel__body { padding: 22px; width: 100%; }
.blk-panel__meta { margin-bottom: 8px; font-family: var(--blk-font-heading); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blk-on-dark-accent); }
.blk-panel h3 { font-size: 1.18rem; line-height: 1.25; color: var(--blk-on-dark); }
.blk-panel h3 a { color: inherit; text-decoration: none; }
.blk-panel h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.blk-panel:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
.blk-panel h3 a:focus-visible { outline: none; }
.blk-panel:hover { border-color: rgba(255,255,255,.4); }
@media (min-width: 900px) {
.blk-panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
.blk-panel { max-width: none; min-height: 440px; }
.blk-panel__body { padding: 22px 20px; }
}How to customise it
- Each panel is a gradient built from
--blk-panel-1to--blk-panel-4. For photography, add<img src="..." alt="">as the first child of the article: the CSS already covers the panel with it and keeps the text readable. - Keep the label short (a year and a client). Keep the title under about eight words.
- The whole panel is clickable through the title link. Do not add a second link inside it.
- Use four panels on desktop. On a phone they become a sideways swipe rail with the next panel peeking in.
Tokens it reads
--blk-deep--blk-panel-1--blk-panel-2--blk-panel-3--blk-panel-4--blk-on-dark--blk-on-dark-accent--blk-radius-lgAdd the "Case-study panels" block from Product Scope Blocks (https://resources.productscope.uk/blocks/blocks/case-panels) 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/case-panels.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.