Block 124 of 297
Campus Buildings
An A–Z building directory with codes, departments housed, accessibility features and map links.
- Puck key
- CampusBuildingsBlock
- Export
- campusBuildingsBlock
- React component
- <CampusBuildings />
- Path
- components/puck/campus-buildings-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 alphabetical building directory with letter jump links, where each entry shows the building name, its schedule code, the departments inside, a list of accessibility features and a map link. A leading "The" is ignored when sorting. Buildings run two per row on desktop and one per row on smaller screens, with a large letter marking each group.
- A campus map companion page for visitors and new students
- An accessibility services page listing step-free entrances and elevators by building
- A facilities page that matches schedule codes like HOL to full building names
Writing the content
- Use the Building code exactly as it appears on class schedules; leave it blank to hide the badge.
- Separate Departments and offices with commas or new lines. They display as one line joined by dots, so keep each name short.
- Write Accessibility features one per line and be specific about location, such as which side the step-free entrance is on.
- Use the Footnote to say who to contact about an access barrier. The list holds up to 80 buildings.
Accessibility
- Building names are headings one level below the block heading. The large group letters are decorative and hidden, so the outline lists buildings, not letters.
- The code badge includes hidden "Building code" text, and each "View on map" link adds the building name for screen readers (WCAG 2.4.4).
- Jump links sit in a nav labelled "Jump to letter" with 44px square targets and visible focus outlines.
Customizing the code
- Group letters, map icons and the jump-link hover use Tailwind indigo; swap indigo- for your brand family.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Buildingsarray
- Campus map link texttext
- Campus map linktext
- Footnotetextarea