Skip to content

Block 35 of 297

Case Study Cards

Clickable partner cards pairing the challenge they brought with one headline result metric.

Puck key
CaseStudyCardsBlock
Export
caseStudyCardsBlock
React component
<CaseStudyCards />
Path
components/puck/case-study-cards-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

Partner story cards that each follow the same structure: sector, partner name, the challenge in a sentence or two, and one large result figure with its label. Cards can carry a 3:2 photo and become fully clickable when linked to the full write-up. The grid adjusts to the count, keeping four cards in a two-by-two layout.

  • Agency or consultancy results with nonprofit partners
  • A foundation showing outcomes from grantees
  • Program pages showing results at partner sites
Writing the content
  • Keep Result to a short figure like 3×, +41% or 1,200 hours, and put what it measures in Result label.
  • Write Challenge as the partner's problem before working with you, in one or two sentences.
  • Get partner approval before publishing names and figures, and name where the numbers come from in Source note.
  • Link text applies to every linked card; a card with no Link is shown but isn't clickable.
Accessibility
  • Partner names are headings one level below the section heading, and each card is an article in a list (WCAG 1.3.1).
  • The card's single link is stretched over the whole card and includes the partner name in hidden text, so repeated "Read the case study" links are distinguishable (WCAG 2.4.4).
  • A hidden "The result" label introduces each metric, and the arrow icon is aria-hidden.
Customizing the code
  • Layout per card count is in the gridCols function, for example four cards map to md:grid-cols-2.
  • Result figures use text-4xl text-indigo-700; hover adds ring-indigo-600/40.

Editor fields

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

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Case studiesarray
  • Link texttext
  • Source notetext