Block 132 of 297
Ways to Give
Giving methods from monthly gifts to stock, DAFs and planned giving, with a gifts officer contact panel.
- Puck key
- WaysToGiveBlock
- Export
- waysToGiveBlock
- React component
- <WaysToGive />
- Path
- components/puck/ways-to-give-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 directory of giving methods, such as monthly gifts, employer matching, stock, donor-advised funds and planned giving, each with an icon, short description and link. Methods run three across on desktop and two on tablets. A dark contact panel at the end names your gifts officer with email and phone links.
- A main Ways to Give page for a nonprofit or foundation
- A development office page that routes major and planned gifts to a person
- The lower half of a donate page, after the main form
Writing the content
- Pick the Icon that matches each method; the options are labeled by gift type, such as Briefcase (employer match).
- Write Link text that names the action, such as "Set up a monthly gift", rather than repeating "Learn more" on every card.
- Keep each Description to two sentences on how the gift works and who it suits. The block holds 1 to 12 methods.
- The contact panel appears only when Gifts officer name is filled.
Accessibility
- Method titles are headings one level below the block heading, and icons are hidden from screen readers.
- Method links get no hidden context, so identical link text on several cards sounds the same out of context (WCAG 2.4.4). Specific link text avoids that.
- The contact panel is an aside named by the Contact heading, the initials avatar is decorative, and links have 44px minimum height and focus outlines.
Customizing the code
- Icons are stroke paths in iconPaths; add a key there and in the Icon select options to offer a new one.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtextarea
- Heading levelselect
- Introtextarea
- Giving methodsarray
- Contact headingtext
- Gifts officer nametext
- Gifts officer titletext
- Emailtext
- Phonetext