Page title
The opening for an inner page: a large heading with the accent bar under it and one lead sentence, on the plain page background. Use it at the top of every page except the home page. Keep the lead to one or two sentences.
<section class="blk-section blk-pagetitle" aria-labelledby="blk-pagetitle-h">
<div class="blk-container">
<h1 id="blk-pagetitle-h">About this page</h1>
<p class="blk-pagetitle__lead">One or two sentences that say what the visitor will find here and why it matters to them.</p>
</div>
</section>.blk-pagetitle.blk-section { padding: clamp(56px, 7vw, 100px) 0 clamp(18px, 2.4vw, 32px); }
.blk-pagetitle h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.blk-pagetitle h1::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--blk-accent); margin-top: 20px; }
.blk-pagetitle__lead { max-width: 52rem; margin-top: 20px; font-family: var(--blk-font-heading); font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--blk-muted); }How to customise it
- One h1 per page. This block is the only place it should appear.
- The lead explains what the visitor will find. Do not repeat the heading.
- To put the page title on a tinted band, add a background with --blk-band-a or --blk-band-b to the section.
- Put a section header block, not another page title, below it.
Tokens it reads
--blk-heading--blk-muted--blk-accent--blk-font-headingAdd the "Page title" block from Product Scope Blocks (https://resources.productscope.uk/blocks/blocks/page-title) 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/page-title.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.