Skip to content

Block 114 of 297

Visit Campus

Photo cards for each tour or visit option with length, schedule and booking, plus admissions contact.

Puck key
VisitCampusBlock
Export
visitCampusBlock
React component
<VisitCampus />
Path
components/puck/visit-campus-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

Photo cards for each way to visit, such as an in-person tour, an admitted student day or a virtual session. Each card shows a length badge on the photo, a description, a "When" schedule box and a full-width booking button. A contact strip with phone and email closes the section. Cards run three across on desktop, two on tablets and one on phones.

  • An admissions "Visit" landing page that links out to booking tools
  • Open house and admitted student event promotion
  • Program pages offering both in-person and virtual visits
Writing the content
  • Visit options takes 1 to 6 cards; three is the natural fit for one desktop row.
  • Use landscape photos; they're cropped to 3:2. Without an image, a Length badge still shows on a plain gray strip.
  • Write When one line per session, such as "Weekdays at 10 a.m. and 2 p.m.". It hides when blank.
  • Use the Contact line to cover requests the cards don't, like group visits or accessible routes. It hides only when Contact line, Phone and Email are all blank.
Accessibility
  • Each visit type is a heading one level below the section heading, and every image takes its alt text from the editor.
  • Booking buttons add the visit type in hidden text, so several "Register" buttons stay distinct for screen reader users.
  • The length badge has a hidden "Length:" prefix, and buttons and contact links keep a 44px minimum height with an indigo focus outline.
Customizing the code
  • Buttons are bg-indigo-600 and icons text-indigo-600; swap the indigo- family to rebrand.
  • Images use aspect-3/2, and the grid is sm:grid-cols-2 lg:grid-cols-3.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Visit optionsarray
  • Contact linetextarea
  • Phonetext
  • Emailtext