Skip to content

Block 80 of 297

Orientation Picker

Orientation sessions as date cards with format, audience and labelled seat status, waitlist links when full, then student details.

Puck key
OrientationPickerBlock
Export
orientationPickerBlock
React component
<OrientationPicker />
Path
components/puck/orientation-picker-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 two-step reservation form for new student orientation. Step one is a grid of date cards showing audience, time, format and a seats badge; step two collects the student's details in a shaded panel. Full sessions can't be chosen and offer a waitlist link instead.

  • Summer orientation scheduling for incoming first-year and transfer students
  • Registration days or advising sessions with limited seats
  • Any dated session list where some slots sell out and need a waitlist
Writing the content
  • Add 1 to 12 Sessions. Session code is sent with the form; without one, the date and time are sent.
  • Keep Month to a short form such as Jul so it fits the calendar tile, and Day to the number alone.
  • Use Status text for live wording like "6 seats left". When it's blank, the badge falls back to Seats open, Few seats left or Full.
  • Setting Most guests to 0 removes the guest question. A blank Waitlist link hides the link on full sessions.
Accessibility
  • Seat status is written out in the badge text, not shown by color alone (WCAG 1.4.1), and full sessions use a disabled radio so they can't be selected.
  • The date tile is hidden from screen readers and replaced with plain text, and each waitlist link names its session in hidden text.
  • Hover lift is turned off under motion-reduce, and the focused card shows an outline.
Customizing the code
  • Badge colors live in the statusStyle map (emerald, amber, red). Change them there so all sessions stay consistent.
  • Cards are sm:grid-cols-2 lg:grid-cols-3; indigo- classes set the step numbers, selected state and button.

Editor fields

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

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Form action URLtext
  • Sessionsarray
  • Waitlist linktext
  • Student type optionstextarea
  • Most gueststext
  • Button texttext
  • Footnotetextarea