Block 239 of 297
Visitor Center
Welcome center hours, address, services and contacts, plus a form to request a mailed visitor guide.
- Puck key
- VisitorCenterBlock
- Export
- visitorCenterBlock
- React component
- <VisitorCenter />
- Path
- components/puck/visitor-center-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
The welcome center's practical details in one place: an optional photo, then a card with hours, address, directions, phone, email and a checklist of services. A dark panel beside it holds a request form for a mailed visitor guide, and it stays pinned on wide screens. On phones the form follows the info card.
- A tourism bureau's visitor center or "Contact us" page
- A park or nature center entrance page with hours and amenities
- Any organization that mails a printed guide on request
Writing the content
- Hours takes up to seven rows; combine days where you can, like "Mon–Fri", and use Hours note for holiday closures.
- Type Address one line per address line. Phone is shown as typed and dialed as a tel: link.
- Set Form action URL to your form endpoint. It posts name, street, city, state, zip and email; with no URL it posts to the current page.
Accessibility
- Every form field has a visible label, is required and carries autocomplete hints for name, address and email.
- Hours are a description list, the address uses an address element, and phone and email links include hidden "Phone:" and "Email:" prefixes.
- Panel titles such as Hours and Find us are headings one level below the Heading level setting (WCAG 1.3.1), and links and the submit button show visible focus outlines.
Customizing the code
- The INPUT and LABEL constants at the top of the file style every form field.
- Swap indigo- to change the service checkmarks, submit button and decorative rings in the form panel.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Image URLtext
- Image alt texttext
- Hoursarray
- Hours notetext
- Addresstextarea
- Directions link texttext
- Directions linktext
- Phonetext
- Emailtext
- Servicesarray
- Form headingtext
- Form introtextarea
- Form action URLtext
- Button texttext
- Privacy notetextarea