Skip to content

Block 168 of 297

Facility Rentals

Shelters and rooms for rent with photo, capacity, amenities, resident rates, hours, deposit, booking link and policies.

Puck key
FacilityRentalsBlock
Export
facilityRentalsBlock
React component
<FacilityRentals />
Path
components/puck/facility-rentals-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

Rental cards for shelters, pavilions and rooms, each with a 3:2 photo carrying a capacity tag, a two-column amenity list, resident and non-resident rates, hours, deposit and a booking button. Rental policies follow in a collapsible panel beside a contact box. Cards run one, two or three across by screen width. It fits a reservations page where people compare spaces before booking.

  • A park district's shelter and pavilion reservations page
  • A community center room rental page
  • A wedding or event venue section for a city-owned facility
Writing the content
  • Capacity sits on the photo as a tag; with no Image URL it moves under the name and the card gets an indigo top border instead.
  • Booking button text is shared by every card, so keep it generic, like "Check availability & book". A card with no Booking link shows no button.
  • Write Rental policies one per line. The panel appears only when Policies heading has text and there is at least one policy. Up to 18 facilities fit.
Accessibility
  • The policies panel is a native details and summary element, so it opens from the keyboard and reports its state without custom script (WCAG 2.1.1, 4.1.2).
  • Each booking button appends the facility name for screen readers, and the capacity tag has a hidden "Capacity:" label (WCAG 2.4.4).
Customizing the code
  • Add amenity types in the amenities record (label plus a 24px stroke path) and they appear in the editor's select list.
  • Buttons and accents use indigo-700; change the focusRing constant and indigo- classes, or aspect-3/2 on the image, to adjust the look.

Editor fields

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

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Facilitiesarray
  • Booking button texttext
  • Policies headingtext
  • Rental policiestextarea
  • Contact notetext
  • Phonetext
  • Emailtext