Skip to main content

  • Foundations
    • Border radius
    • Breakpoints
    • Colours
    • Colour scheme
    • Elevation
    • Focus and outline
    • Sizing and spacing
    • Layout
    • Motion
    • Typography
    • Z-index
  • Elements
    • Buttons
    • Code
    • Icons
    • Figure and caption
    • Forms
    • Links
    • Lists
    • Media
    • Tables
  • Components
    • Accordion
    • Alerts
    • Avatar
    • Blockquote
    • Breadcrumbs
    • Card
    • Chiplets
    • Details and summary
    • Dialog
    • Empty state
    • Stats
    • Global footer
    • Horizontal rule
    • Kanban
    • Key-value list
    • Meter
    • Objects
    • Pagination
    • Polka background
    • Post-it note
    • Progress
    • Speech bubbles
    • Status dot
    • Skeleton
    • Skip link
    • Spinner
    • Toggles
    • Tooltip
    • Webmentions
  • Patterns
    • Article header
    • Author card
    • App list and app sheet
    • Error page
    • Related posts
    • Search results
    • Utilities

John Peart

  • Search
  • Menu
John Peart

Article header

Post titles with date, image or object variants.

Date & title

Default for blog posts, slides, and most written content. A .published-date aside sits above a .post-title heading. The wrapping header uses the grid so the title drops back to the content column via subgrid.

17 April 2026

A week of small wins

<header class="grid collection--blogpost post-title">
  <aside class="published-date">
    <time datetime="2026-04-17" class="published-datetime dt-published">
      <a href="/2026/04/17/a-week-of-small-wins/" class="u-url post-published-date">17 April 2026</a>
    </time>
  </aside>
  <h1 class="post-title p-name">A week of small wins</h1>
</header>

Date, title & composite image

An .overlay image floats on top of a full-bleed .background picture.

16 April 2024

I listened to every Eurovision 2024 entry, so you don't have to

The Eurovision 2024 logo
A burst of bright colours symbolising the Northern Lights
composite:
  overlay:
    image: "/images/posts/2024-04-16-eurovision-2024.svg"
    alt: "The Eurovision 2024 logo"
    blur: 5
  background:
    source: "/images/posts/2024-04-16-eurovision-northern-lights.webp"
    image: "/images/posts/2024-04-16-eurovision-northern-lights.gif"
    alt: "A burst of bright colours symbolising the Northern Lights"

Image & title

Used when the post has an object in its frontmatter. The decorative SVG sits above the title; an optional subtitle sits below.

Article header A Game Boy Game Pak showing the artwork for Article header

The Legend of Zelda: Link's Awakening

by

Nintendo

<header class="grid collection--blogpost post-title">
  <div class="object object--game-boy">
    {% include "components/objects/game-boy.svg" %}
  </div>
  <div class="object-metadata">
    <h1 class="p-name align-center">The Legend of Zelda: Link's Awakening</h1>
    <p class="sr-only">by</p>
    <p class="lead secondary-text">Nintendo</p>
  </div>
</header>
A line drawing of John Peart

John Peart

www.johnpe.art

Mastodon logo

Mastodon

BlueSky logo

Bluesky

LinkedIn logo

LinkedIn

Github logo

GitHub