Block 270 of 297
Topographic Section
A content section with key figures over drifting contour lines. Built for land trusts, parks and trails.
- Puck key
- TopographicSectionBlock
- Export
- topographicSectionBlock
- React component
- <TopographicSection />
- Files
- components/puck/topographic-section-block.tsx
- components/puck/topographic-section.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 content section pairing a heading and paragraph with up to four key figures, laid over contour lines that drift slowly across the background. Text switches between dark and light automatically based on the background color you enter. On large screens copy and figures sit side by side; on phones they stack, with figures in a single column.
- Land trust or conservation pages reporting acres and miles protected
- Park district or trail system overviews
- Annual report highlights for an outdoor or agricultural organization
Writing the content
- Figures allows zero to four items; keep each Value short, such as 18,400 or 62 mi, so it fits on one line.
- Set Contour color a few shades off the Background color. High contrast lines compete with the text.
- Use Contour density to suit the subject: Sparse reads as rolling hills, Dense as mountains.
- Fill the Source line when the figures come from a report; leave it blank to hide it.
Accessibility
- Figures render as a description list (dt for the label, dd for the value), so each number stays tied to what it counts (WCAG 1.3.1).
- Text color is chosen from the background's relative luminance, and a scrim in the background color sits behind the copy.
- The contour canvas is aria-hidden, shows a still frame with reduced motion, and stops when off screen.
Customizing the code
- Requires vgpu and topographic-section.client.tsx; the DENSITY map (18, 28, 40) sets contour counts, and the isIndex check in the shader draws every fifth line heavier.
- Change the 0.18 luminance cutoff in render to shift when text flips to light.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtextarea
- Heading levelselect
- Bodytextarea
- Figuresarray
- Source linetext
- Contour colortext
- Background colortext
- Contour densityselect
- Motionradio