Skip to content

Block 18 of 297

Story Cards

News, stories or blog posts as image cards with whole-card click targets and no nested links.

Puck key
CardGridBlock
Export
cardGridBlock
React component
<CardGrid />
Path
components/puck/card-grid-block.tsx
Dependencies
None
License
MIT

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

Image cards for news, stories or resources, each with a category, date, title and a three-line excerpt, plus an optional "View all" link beside the section heading. The whole card is clickable through one link on its title. Cards show in two or three columns on desktop, two on tablets and one on phones.

  • Latest news or blog posts on a home page
  • Featured stories in an annual report
  • Resource or toolkit listings with thumbnails
Writing the content
  • Keep Excerpt to one or two sentences; anything past three lines is cut off.
  • Type Date exactly as it should appear, such as March 4, 2026.
  • Leave Link blank to make a card unclickable, or leave Image URL blank for a text-only card.
  • Use a consistent short set of Category names so readers can scan by topic.
Accessibility
  • Each card has a single link on its title stretched over the whole card, so there are no nested or duplicate links and the link name is the title.
  • Card titles are headings one level below the section heading, inside article elements in a list (WCAG 1.3.1).
  • The image zoom on hover runs only under motion-safe, so it is skipped when reduced motion is requested; focus shows an outline around the full card.
Customizing the code
  • Image crop is aspect-[3/2]; hover zoom is motion-safe:group-hover:scale-105 with duration-500.
  • Columns come from the gridCols map, md:grid-cols-2 lg:grid-cols-3 for the three-column option.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • "View all" link texttext
  • "View all" linktext
  • Cardsarray
  • Columns on desktopradio