Showcase mosaic
A dark rounded box holding one large tile and two smaller ones. Use it for projects, products or anything you built yourself. Use it when you have one standout item and two supporting ones. The large tile earns the attention, so put your strongest work there.
<section class="blk-section" aria-labelledby="blk-mosaic-title">
<div class="blk-container">
<div class="blk-box blk-dark">
<header class="blk-head">
<div class="blk-head__main">
<h2 id="blk-mosaic-title">Projects</h2>
<p>Things I built myself to learn, test an idea or fix my own problem.</p>
</div>
<a class="blk-btn blk-btn--outline blk-head__btn" href="#">All projects</a>
</header>
<div class="blk-mosaic">
<article class="blk-tile blk-tile--a">
<div class="blk-tile__body">
<h3><a href="#">A weather alerts service for Spain</a></h3>
<p>Daily alerts built from public data, with a clear map and an alert history.</p>
</div>
</article>
<article class="blk-tile blk-tile--b">
<div class="blk-tile__body">
<h3><a href="#">A task and handover tracker</a></h3>
</div>
</article>
<article class="blk-tile blk-tile--c">
<div class="blk-tile__body">
<h3><a href="#">A personal TV planner</a></h3>
</div>
</article>
</div>
</div>
</div>
</section>.blk-box { background: var(--blk-darker); color: var(--blk-on-dark); border-radius: var(--blk-radius-xl); padding: clamp(26px, 4vw, 52px); }
.blk-mosaic { display: grid; gap: 14px; }
.blk-tile { position: relative; isolation: isolate; min-height: 300px; overflow: hidden; border-radius: var(--blk-radius); color: var(--blk-on-dark); background: radial-gradient(120% 100% at 100% 0%, var(--tile, var(--blk-panel-1)), var(--blk-dark)); }
.blk-tile--a { --tile: var(--blk-panel-1); }
.blk-tile--b { --tile: var(--blk-panel-2); }
.blk-tile--c { --tile: var(--blk-panel-3); }
.blk-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.blk-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,14,18,.86) 0%, rgba(10,14,18,.5) 42%, rgba(10,14,18,0) 82%); }
.blk-tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.blk-tile h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--blk-on-dark); }
.blk-tile h3 a { color: inherit; text-decoration: none; }
.blk-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.blk-tile h3 a:focus-visible { outline: none; }
.blk-tile:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
.blk-tile p { margin-top: 10px; max-width: 52ch; font-size: .95rem; line-height: 1.5; color: var(--blk-on-dark-muted); }
@media (min-width: 900px) {
.blk-mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, 210px); }
.blk-tile { min-height: 0; }
.blk-tile--a { grid-column: 1 / 8; grid-row: 1 / 3; }
.blk-tile--b { grid-column: 8 / 13; grid-row: 1; }
.blk-tile--c { grid-column: 8 / 13; grid-row: 2; }
.blk-tile__body { padding: 26px 28px; }
.blk-tile--a h3 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.05rem); line-height: 1.15; max-width: 22ch; }
}
@media (max-width: 899px) {
.blk-mosaic { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: calc(-1 * clamp(26px, 4vw, 52px)); padding-inline: clamp(26px, 4vw, 52px); scroll-padding-inline: clamp(26px, 4vw, 52px); scrollbar-color: #fff transparent; }
.blk-tile { flex: 0 0 82%; max-width: 380px; min-height: 380px; scroll-snap-align: start; }
}How to customise it
- Exactly three tiles:
--alarge,--band--csmall. Only the large tile carries a sentence. - Replace a gradient with a screenshot by adding
<img src="..." alt="">as the first child of the tile. - The box sits inside the page width. For a full-width band instead, move the
blk-darkclass to the section and remove theblk-boxwrapper. - On a phone the tiles become a swipe rail, like the case-study panels.
Tokens it reads
--blk-darker--blk-panel-1--blk-panel-2--blk-panel-3--blk-radius-xl--blk-on-darkAdd the "Showcase mosaic" block from Product Scope Blocks (https://resources.productscope.uk/blocks/blocks/mosaic) 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/mosaic.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.