Block 284 of 297
Halftone Band
Full-width quote or announcement band framed by a moving two-color halftone dot screen.
- Puck key
- HalftoneBandBlock
- Export
- halftoneBandBlock
- React component
- <HalftoneBand />
- Files
- components/puck/halftone-band-block.tsx
- components/puck/halftone-band.client.tsx
- Dependencies
- vgpu
- 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 full-width band for one large quote or announcement, framed top and bottom by a moving halftone dot screen in the ink color. Quote style adds quotation marks and an attribution; Announcement style sets the text as a heading. Text is centered and set large at every screen size.
- A patron, client or volunteer testimonial between sections
- A one-line announcement such as a new branch opening
- A mission statement or pull quote on an about page
Writing the content
- Keep Text to one or two sentences; it renders up to 5xl on desktop.
- Attribution and Attribution detail show only in Quote style, and Heading level applies only in Announcement style.
- Ink color is used for the dots, text and button fill, so it needs strong contrast with Paper color.
- Dot size Fine reads as newsprint, Bold as a poster.
Accessibility
- Quote style uses figure, blockquote and figcaption, and the curly quote marks are aria-hidden so they aren't read aloud.
- Text sits in the band's padded center, clear of the dot fringe, in a single ink-on-paper pair you control (WCAG 1.4.3).
- The dot canvas and CSS fringes are aria-hidden; reduced motion shows a still frame and animation pauses off screen.
Customizing the code
- Requires vgpu and halftone-band.client.tsx. ZONE_CSS_PX = 92 sets how far the dots reach in from each edge, and the rotation matrix in fs_main sets the 45 degree screen angle.
- Edit the py-32 sm:py-36 padding on the section if you change the fringe depth, so text stays clear.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Styleradio
- Eyebrowtext
- Texttextarea
- Heading levelselect
- Attributiontext
- Attribution detailtext
- Button texttext
- Button linktext
- Ink colortext
- Paper colortext
- Dot sizeradio
- Motionradio