Picture tiles
Large numbered tiles led by the picture, with an oversized serif name and a one-line description. Each tile is one whole link. Use it to introduce places, categories or collections where the image does the selling. Three or five tiles work best, with the last one wide.
<section class="blk-section" aria-labelledby="blk-ptiles-title">
<div class="blk-container">
<header class="blk-head">
<div class="blk-head__main">
<h2 id="blk-ptiles-title">Places to start</h2>
<p>Three places, each one a good first stop.</p>
</div>
<a class="blk-btn blk-btn--outline blk-head__btn" href="#">All places</a>
</header>
<ol class="blk-ptiles">
<li class="blk-ptile blk-ptile--a">
<span class="blk-ptile__no">01</span>
<div class="blk-ptile__cap">
<h3><a href="#">A coastal town</a></h3>
<p>Slow mornings and the best seafood on the list.</p>
</div>
</li>
<li class="blk-ptile blk-ptile--b">
<span class="blk-ptile__no">02</span>
<div class="blk-ptile__cap">
<h3><a href="#">A mountain village</a></h3>
<p>Cool air, quiet streets, great for focused work.</p>
</div>
</li>
<li class="blk-ptile blk-ptile--c blk-ptile--wide">
<span class="blk-ptile__no">03</span>
<div class="blk-ptile__cap">
<h3><a href="#">A river city</a></h3>
<p>Cafes, trains and enough going on for a month.</p>
</div>
</li>
</ol>
</div>
</section>.blk-ptiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.blk-ptile { position: relative; isolation: isolate; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; border-radius: var(--blk-radius-lg); color: var(--blk-on-dark); background: radial-gradient(120% 100% at 100% 0%, var(--tile, var(--blk-panel-1)), var(--blk-dark)); }
.blk-ptile--a { --tile: var(--blk-panel-1); }
.blk-ptile--b { --tile: var(--blk-panel-2); }
.blk-ptile--c { --tile: var(--blk-panel-3); }
.blk-ptile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.blk-ptile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,14,18,.82) 0%, rgba(10,14,18,.3) 55%, rgba(10,14,18,0) 85%); }
.blk-ptile__no { position: absolute; top: 22px; left: 26px; font-family: var(--blk-font-heading); font-size: .85rem; font-weight: 600; letter-spacing: .14em; color: var(--blk-on-dark-accent); }
.blk-ptile__cap { padding: 26px; width: 100%; }
.blk-ptile h3 { font-family: var(--blk-font-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; color: var(--blk-on-dark); }
.blk-ptile h3 a { color: inherit; text-decoration: none; }
.blk-ptile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.blk-ptile h3 a:focus-visible { outline: none; }
.blk-ptile:focus-within { outline: 3px solid var(--blk-accent); outline-offset: 3px; }
.blk-ptile p { margin-top: 10px; max-width: 44ch; font-size: .98rem; color: var(--blk-on-dark-muted); }
@media (min-width: 800px) {
.blk-ptiles { grid-template-columns: 1fr 1fr; }
.blk-ptile { min-height: 440px; }
.blk-ptile--wide { grid-column: 1 / -1; min-height: 380px; }
}How to customise it
- For photography add
<img src="..." alt="">as the first child of each list item; the CSS covers the tile and keeps the text readable. - The whole tile is clickable through the title link. Do not add a second link inside it.
- Remove
blk-ptile--widefor an even two-column grid, or add it to any tile to stretch it across. - Keep titles to one to three words so the large type fits.
Tokens it reads
--blk-accent--blk-panel-1--blk-panel-2--blk-panel-3--blk-dark--blk-on-dark--blk-on-dark-muted--blk-on-dark-accent--blk-font-serif--blk-radius-lgAdd the "Picture tiles" block from Product Scope Blocks (https://resources.productscope.uk/blocks/blocks/picture-tiles) 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/picture-tiles.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.