Skip to content

Block 236 of 297

Where to Stay

Lodging listings grouped by type with jump links, photos, price bands, amenity tags and booking links.

Puck key
WhereToStayBlock
Export
whereToStayBlock
React component
<WhereToStay />
Path
components/puck/where-to-stay-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

Lodging listings grouped automatically into Hotels, Inns, B&Bs and Campgrounds, with pill-shaped jump links at the top when more than one group exists. Each listing card shows a photo, neighborhood, a dollar-sign price band, amenity tags and a booking link. Cards sit two across on tablets and switch between stacked and side-by-side layouts as width changes.

  • A visitors bureau "Where to stay" page
  • Event or tournament pages recommending nearby lodging
  • A state park listing campgrounds and nearby inns
Writing the content
  • Set Type on every listing; groups always appear in the fixed order Hotels, Inns, B&Bs, Campgrounds, whatever order you enter them.
  • Use the Footnote to explain what each Price band means in dollars, since the cards only show $ to $$$$.
  • Enter Amenities comma separated and keep it to three or four, so the tag row stays one or two lines.
  • Listings accept up to 24 items; blank Link text hides the booking button.
Accessibility
  • The dollar signs are aria-hidden and replaced with hidden text such as "Price: Upscale", so the price band is not conveyed by symbols and gray color alone.
  • Each lodging group is a section labeled by its own heading, nested between the block heading and listing names (WCAG 1.3.1), and the jump links sit in a nav labeled "Lodging types".
  • Booking links append the property name as hidden text, and the hover lift is off for reduced-motion users.
Customizing the code
  • Rename or reorder groups in the TYPES array, and change the price wording in PRICE_WORDS.
  • The booking button hover and focus colors use indigo-; swap the color family to rebrand.

Editor fields

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

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Listingsarray
  • Footnotetextarea