Skip to content

Block 59 of 297

CTA Dual Path

Light and dark side-by-side panels for two ways to act, such as volunteer or donate, each with a checklist and button.

Puck key
CtaDualPathBlock
Export
ctaDualPathBlock
React component
<CtaDualPath />
Path
components/puck/cta-dual-path-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

Two joined panels for two ways to act, such as giving time or giving money. Each has an eyebrow, a heading, a short body, a checklist and its own button, and one panel is dark to signal the action you most want. A large faded 01 or 02 sits behind each panel's text. Panels sit side by side on desktop and stack on smaller screens.

  • Volunteer or donate on a food bank or shelter page
  • Choosing between attending and sponsoring an event
  • Two enrollment routes, such as in person or online
Writing the content
  • Fill in First path and Second path separately. A panel with no heading, body or button text is skipped.
  • Write three or four short Checklist lines per panel, one per line, so the two panels stay close in height.
  • Set Dark panel to the action you most want people to take.
  • Intro heading and Intro are optional and sit above both panels.
Accessibility
  • With an intro heading set, panel headings render one level below it; without one, the panels use the level you selected, so the outline stays logical either way.
  • The large 01 and 02 numerals and the check icons are hidden from assistive technology, and checklists are real lists.
  • Buttons are at least 48px tall with focus outlines in white on the dark panel and indigo on the light one.
Customizing the code
  • Panel colors are bg-neutral-950 for dark and bg-neutral-50 for light, with indigo-300 and indigo-600 accents.
  • The background numerals use text-8xl sm:text-9xl at 5% opacity; remove that span for plain panels.

Editor fields

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

  • Intro headingtext
  • Heading levelselect
  • Introtextarea
  • First pathobject
  • Second pathobject
  • Dark panelradio