Block 121 of 297
Student Life
Student organizations grouped by category with counts and examples, beside a big explore-all call to action.
- Puck key
- StudentLifeBlock
- Export
- studentLifeBlock
- React component
- <StudentLife />
- Path
- components/puck/student-life-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-part section for clubs and organizations: on the left, the heading, intro and an indigo panel with a big total and a directory button; on the right, a grid of category cards, each with a count and up to three example groups. On desktop the left column stays in view as the grid scrolls. Phones get a single column.
- A student life or campus involvement landing page
- An admissions page answering "What is there to do here?"
- An orientation page pointing new students to the organization directory
Writing the content
- Big number and Big number label work as a pair, such as 400+ and student organizations. Clear Big number to hide it.
- List Example groups separated by commas. Only the first three appear, so put the best-known ones first.
- Point each category Link at a filtered view of your directory, since the whole card links there.
- Use the Footnote to say where the counts come from and when.
Accessibility
- Category names are headings one level below the block heading. The visible count is hidden from screen readers, and the link text gains ", 48 organizations" instead.
- Each card has a single stretched link with a focus outline drawn on the card edge; the example bullets are decorative.
- The button's arrow nudge on hover only runs under motion-safe, respecting reduced-motion settings.
Customizing the code
- The total panel is bg-indigo-600 and counts are text-indigo-700; change the indigo- family to rebrand.
- Adjust lg:col-span-4 and lg:col-span-8 to resize the sticky column, or sm:grid-cols-2 on the card list for a different grid.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Big numbertext
- Big number labeltext
- Button texttext
- Button linktext
- Categoriesarray
- Footnotetext