Skip to content

Block 240 of 297

Getting Here

Arrival by air, car, train, bus and bike, a travel-time table, parking garages and local transit notes.

Puck key
GettingHereBlock
Export
gettingHereBlock
React component
<GettingHere />
Path
components/puck/getting-here-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

Arrival information by mode: cards for air, car, train, bus and bike, then a travel-time table from nearby cities, parking garages with rates, and short notes on local transit, bike share and accessible transportation. Mode cards drop to two columns on tablets and one on phones, and the table scrolls sideways when narrow.

  • A destination or convention "Getting here" page
  • Event or venue directions with parking and shuttle details
  • A hospital, campus or museum access page
Writing the content
  • Mode only picks the icon, so a car card can be titled "From the interstate". Ways to arrive takes up to five items.
  • Set Travel time columns once, like "By car | By train | By air", then enter each row's Times in the same order separated by "|". Use — where there is no option.
  • Each bottom note hides when its text is blank; Parking garages take up to eight items.
Accessibility
  • The travel-time table uses column and row header cells, and its scroll wrapper is a focusable region named by the table heading, so keyboard users can scroll it (WCAG 1.3.1, 2.1.1).
  • Empty cells written as — are read as "Not available" instead of a dash.
  • Mode icons and the parking P badge are aria-hidden, and links show a focus outline at a 44px minimum height.
Customizing the code
  • Icons live in MODE_ICONS as 24px stroke paths; add a mode there and in MODE_LABELS to support ferry or rideshare.
  • The LG_COLS array sets the desktop column count by number of modes, and indigo- classes color icons, rates and links.

Editor fields

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

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Ways to arrivearray
  • Travel times headingtext
  • Travel time columnstext
  • Travel timesarray
  • Travel times notetext
  • Parking headingtext
  • Parking garagesarray
  • Local transit headingtext
  • Local transittextarea
  • Bike share headingtext
  • Bike sharetextarea
  • Accessibility headingtext
  • Accessible transportationtextarea