Skip to content

Block 78 of 297

Campus Visit Signup

Visit-type cards, date and time picks, student and guest details beside a where-to-go card with parking and access notes.

Puck key
CampusVisitSignupBlock
Export
campusVisitSignupBlock
React component
<CampusVisitSignup />
Path
components/puck/campus-visit-signup-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

An admissions visit request form: students choose a visit type from selectable cards, pick a date and a start time, then fill in their details. A where-to-go card with a photo, parking and access notes sits beside it on large screens and stays in view. On phones the card drops below the form.

  • A college or university "Plan your visit" page
  • Open house or preview day requests for a private school
  • Program-specific tours where families need parking and meeting-point details
Writing the content
  • Offer 1 to 4 Visit types. The first is preselected, so list your most common visit first.
  • List Start times one per line. They render as tappable pills, and leaving the field blank removes the time choice entirely.
  • Set Most guests to a number such as 4; it caps the guest field and its hint.
  • The card hides only when Image URL, Card heading, Where-to-go details and Card note are all blank. Details allows up to 6 pairs.
Accessibility
  • Visit types and start times are real radio buttons in fieldsets with legends. The radios are visually hidden, but each card shows a focus outline (WCAG 2.4.7).
  • The card heading renders one level below the Heading level you choose, and the card is an aside labelled by that heading, or "Visit details" when there isn't one.
  • Where-to-go details use a description list, and the photo's alt text comes from Image alt text.
Customizing the code
  • Replace indigo- with your brand color family on the cards, time pills, inputs and button.
  • The photo is aspect-video, and the form and card split lg:col-span-8 and lg:col-span-4.

Editor fields

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

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Form action URLtext
  • Visit typesarray
  • Start timestextarea
  • Date hinttext
  • Graduation year optionstextarea
  • Most gueststext
  • Button texttext
  • Privacy notetextarea
  • Image URLtext
  • Image alt texttext
  • Card headingtext
  • Where-to-go detailsarray
  • Card notetextarea