Block 224 of 297
Visit Info
Plan-your-visit guide with hours and admission tables, free days, parking, transit, access services and a ticket link.
- Puck key
- VisitInfoBlock
- Export
- visitInfoBlock
- React component
- <VisitInfo />
- Path
- components/puck/visit-info-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 plan-your-visit section laid out like a printed visitor guide. A sticky left column holds the heading, address, map link and ticket button; the right column carries hours and admission tables, a tinted free-days panel, parking and transit, and accessibility services. On phones the columns stack and the ticket button spans the full width.
- A museum or gallery "Visit" page
- A historic site or garden page covering hours, admission and access
- A cultural center landing page for first-time visitors
Writing the content
- Hours and Admission prices each take up to ten rows and hide when empty. Any hours containing "Closed" and any price that is exactly "Free" get a distinct italic style.
- Use the Note on an admission row for who qualifies, like "With a current student ID", so the price column stays clean.
- Accessibility services takes up to ten items. Name the service in Service and the how and when in Details, then say how to arrange it in Accessibility contact.
Accessibility
- Hours and admission are real tables whose captions are the section headings, with hidden column headers and a row header per line (WCAG 1.3.1).
- The address uses an address element, and parking, transit and access services are description lists.
- The large "free" watermark is CSS-generated and hidden from screen readers. Links and the 48px ticket button show a visible indigo focus outline (WCAG 2.4.7).
Customizing the code
- The isClosed and isFree helpers in render control which rows get the italic treatment; widen the isFree test to match "Free for members" if you want.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Addresstextarea
- Map link texttext
- Map linktext
- Ticket button texttext
- Ticket linktext
- Ticket notetext
- Hours headingtext
- Hoursarray
- Hours notetextarea
- Admission headingtext
- Admission pricesarray
- Free days headingtext
- Free daystextarea
- Getting here headingtext
- Parkingtextarea
- Transittextarea
- Accessibility headingtext
- Accessibility servicesarray
- Accessibility contacttextarea