Block 271 of 297
Flow Field Banner
A slim announcement band or section divider over flowing curl-noise light streaks in two brand colors.
- Puck key
- FlowFieldBannerBlock
- Export
- flowFieldBannerBlock
- React component
- <FlowFieldBanner />
- Files
- components/puck/flow-field-banner-block.tsx
- components/puck/flow-field-banner.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 strip for a single announcement: an optional badge, one sentence and a link sit on a dark frosted pill over glowing streaks that flow left to right. Three heights let it work as a slim notice or a taller section divider. On phones the pill stacks its parts vertically; from small screens up they sit in one row.
- Announcing a facility opening, new trail or service launch
- A registration-deadline notice above or below a hero
- A visual break between long sections of a park or program page
Writing the content
- Keep the Message to one sentence. The pill is capped at a medium width and longer text wraps into a block.
- Badge works best as a word or two, such as "Now open"; leave it blank to hide it.
- Darker Background color values make the streaks glow more, and the copy always sits on its own dark pill.
- The block renders nothing if Badge, Message and Link text are all empty.
Accessibility
- Text sits on a near-opaque dark pill, so contrast doesn't depend on the colors moving behind it.
- The streak canvas is aria-hidden, freezes on one frame for reduced motion, and pauses off screen or in a hidden tab.
- The link is underlined, has a white focus outline and a 44px minimum height.
Customizing the code
- Needs vgpu and flow-field-banner.client.tsx. The vec2f(1.6, 0.0) term in curl() sets the steady eastward current, and the 48-step loop sets streak length.
- Edit the HEIGHTS map (min-h-24, min-h-40, min-h-64) to change the three height options.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Badgetext
- Messagetextarea
- Link texttext
- Linktext
- Streak color 1text
- Streak color 2text
- Background colortext
- Heightselect
- Motionradio