Skip to content

Block 11 of 297

Quick Links Hero

Photo hero with three or four task cards straddling its bottom edge, so top destinations are one tap away.

Puck key
HeroQuickLinksBlock
Export
heroQuickLinksBlock
React component
<HeroQuickLinks />
Path
components/puck/hero-quick-links-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

A photo or dark band carries the heading and intro, and up to four link cards overlap its bottom edge. Each card has an icon, title and one-line description, and the whole card is clickable. It suits sites where visitors mostly come to do one of a handful of tasks. Cards stack in one column on phones.

  • A park district or city home page with top resident tasks
  • A library, school or campus front page
  • A member or patient portal landing page
Writing the content
  • Use three or four Quick links built from your analytics or call volume, not your org chart. Four cards form a two-by-two grid on tablets.
  • Start each Title with a verb, like Register, Find or Rent, and keep the Description to one short line or leave it blank.
  • Pick an Icon that matches the task; there are eight to choose from, and they are decorative only.
  • Leave Image URL blank for a solid dark band if you don't have a strong wide photo.
Accessibility
  • Card titles are headings one level below the hero heading, so H1 produces H2 cards and the outline stays in order (WCAG 1.3.1).
  • Cards are list items in a ul, and each card is a single link with a visible indigo focus outline.
  • Icons and arrows are aria-hidden; the photo sits under a dark gradient so the white heading text stays readable.
Customizing the code
  • Add icons by extending the ICONS map and ICON_OPTIONS list with more Heroicons 20px solid paths.
  • Card overlap is the -mt-24 and sm:-mt-28 on the list, balanced by pb-36 and sm:pb-40 on the photo band.

Editor fields

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

  • Eyebrowtext
  • Headingtextarea
  • Heading levelselect
  • Bodytextarea
  • Image URLtext
  • Image alt texttext
  • Quick linksarray