Block 38 of 297
Donor Wall
Donor names grouped by giving tier in flowing columns, with gift ranges and an anonymous donor count.
- Puck key
- DonorWallBlock
- Export
- donorWallBlock
- React component
- <DonorWall />
- Path
- components/puck/donor-wall-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 honor roll of supporter names grouped by giving tier, each tier with a heading, gift range and automatic donor count. The first two tiers get larger serif type, and names flow into two or three columns. The heading, giving period and a corrections link stay in a sticky left column on desktop. An optional closing line counts anonymous donors.
- Annual report honor rolls
- Capital campaign or giving day recognition pages
- Member or sustainer recognition
Writing the content
- List tiers from largest to smallest; the first two get larger type, and the first gets the indigo rule.
- Enter one name per line in Names, exactly as each donor asked to be listed. Names show in the order you type them, so sort them yourself.
- Put only a number in Anonymous donors; it renders as a closing sentence and hides when blank or zero.
- Always fill in Giving period, and give the Corrections text a mailto: or contact page link.
Accessibility
- Tier names are headings one level below the section heading, and each name list is labeled by its tier heading via aria-labelledby (WCAG 1.3.1).
- Names are list items that never split across columns, so screen readers announce how many names are in each tier.
- The corrections link is underlined, at least 44px tall, and shows an indigo focus outline.
Customizing the code
- Name sizes per tier are in nameSize and column counts in columns; the top two tiers are hard-coded by index.
- The sticky header column uses lg:sticky lg:top-8; raise the offset if your site header is fixed.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Giving tiersarray
- Anonymous donorstext
- Giving periodtext
- Corrections texttext
- Corrections linktext