Block 216 of 297
Vaccine Clinics
Upcoming vaccine clinics with date tiles, time, place, vaccines, ages, cost, walk-in status and booking.
- Puck key
- VaccineClinicsBlock
- Export
- vaccineClinicsBlock
- React component
- <VaccineClinics />
- Path
- components/puck/vaccine-clinics-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 list of upcoming immunization clinics, each a row with an indigo date tile, title, date and time, place, ages, cost, how to get a shot, vaccine tags and an optional booking button. A cost badge and a what-to-bring note sit beside the heading. On phones the date tile, details and button stack in one column.
- A health department's fall flu shot schedule
- A school-year catch-up immunization page
- A community events page for mobile vaccine clinics
Writing the content
- Fill Date (YYYY-MM-DD) to draw the date tile and mark up the date for calendars. If Date (as shown) is blank, the block builds a short date from it.
- Past clinics are not removed automatically; take them off after they happen so the list stays accurate.
- Separate Vaccines offered with commas. Each becomes a tag after a "Vaccines:" label.
- Choose How to get a shot for every clinic. With no Button text, walk-in and either clinics show "No appointment needed" in place of a button.
Accessibility
- The date tile is hidden from screen readers and the date is written out in text, inside a time element with a machine-readable datetime when a valid ISO date is given.
- Clinics are an ordered list of articles, and place, ages, cost and access sit in a description list with hidden labels behind the icons (WCAG 1.3.1).
- Booking buttons add the clinic title and date for screen readers, are at least 44px tall and show a visible focus ring.
Customizing the code
- Edit the accessCopy object to change the wording for walk-in, appointment and either.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Cost highlighttext
- What to bringtextarea
- Clinicsarray
- Footer link texttext
- Footer linktext