Block 229 of 297
Field Trips
School programs led by big grade bands, with length, group size, cost, curriculum links, booking steps and bus note.
- Puck key
- FieldTripsBlock
- Export
- fieldTripsBlock
- React component
- <FieldTrips />
- Path
- components/puck/field-trips-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
School and group programs laid out as bordered cards, each opening with a large grade band, then length, group size, cost and curriculum tags. Below the cards sit numbered booking steps, a bus-funding panel and a request button. Cards run one column on phones, two on tablets and three on wide screens.
- A museum or arts center's "Plan a school visit" page
- A nature center or historic site listing programs by grade level
- A teacher resources page with booking steps and bus funding
Writing the content
- Keep Grades to a short band like K–2 or 9–12; it renders at display size and overlaps the photo.
- Enter Curriculum connections as a comma-separated list; each item becomes its own tag.
- Typing exactly "Free" in Cost sets it in the accent italic; longer pricing text displays plainly.
- Programs take one to six items and Booking steps up to five. Empty steps and a blank Bus funding note hide those sections.
Accessibility
- Program names and section labels render one level below the Heading level setting, which keeps the outline in order (WCAG 1.3.1).
- Length, group size and cost are a description list, and each booking step carries hidden "Step 1:" text while the large numeral is hidden from screen readers.
- Photos use the Image alt text field, and the request button has a 48px minimum height and visible focus outline.
Customizing the code
- The accent is Tailwind indigo; swap indigo- for your brand family to change grade numerals, tags and the bus panel.
- Card columns come from md:grid-cols-2 lg:grid-cols-3 on the program list, and photos crop with aspect-3/2.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Programsarray
- Steps headingtext
- Booking stepsarray
- Bus note headingtext
- Bus funding notetextarea
- Request button texttext
- Request linktext
- Contact linetext