Block 20 of 297
Zigzag Features
Numbered rows that alternate photo and text sides to walk readers through a program or process.
- Puck key
- ZigzagFeaturesBlock
- Export
- zigzagFeaturesBlock
- React component
- <ZigzagFeatures />
- Path
- components/puck/zigzag-features-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 series of up to eight rows, each pairing a large photo with a title, paragraphs and an optional link, with the photo switching sides from row to row. Numbers like 01 and 02 and a short kicker can sit above each title. It walks readers through a program or process one idea at a time. On phones each row shows its photo first.
- Explaining how a scholarship or grant program works, stage by stage
- Presenting three to five services in depth on one page
- A visitor journey from arrival to departure
Writing the content
- Use First photo to pick which side the first row's photo sits on; the rest alternate from there.
- Turn Numbers on only when order matters; for a set of unrelated services, hide them and use the Kicker instead.
- Keep each row's Text to one or two short paragraphs, separated by a blank line.
- Rows without an Image URL become a narrow text-only row, which can break the rhythm; give every row a photo or none.
Accessibility
- Row titles are headings one level below the section heading, so each row is reachable by heading navigation (WCAG 1.3.1).
- The 01, 02 numbers, divider rule and offset color panel behind each photo are aria-hidden decoration.
- Each photo uses its own alt text field, and links show an indigo focus outline with a 44px minimum height.
Customizing the code
- The offset panel behind photos is bg-indigo-50 shifted with translate-x-4 translate-y-4; remove the span for a flat look.
- The photo and text split is lg:col-span-7 and lg:col-span-5 with aspect-4/3 photos.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- First photoradio
- Numbersradio
- Rowsarray