Block 128 of 297
Gift Impact
Donation amount cards that show what each gift buys, with one highlighted amount, linking to your form.
- Puck key
- GiftImpactBlock
- Export
- giftImpactBlock
- React component
- <GiftImpact />
- Path
- components/puck/gift-impact-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 grid of donation amounts, each paired with what that amount pays for, where every card is a single link to your giving form. One amount can be highlighted with a badge. The grid sets itself to two, three or four columns on desktop depending on how many amounts you add, and drops to one column on phones.
- A donate page that explains what common gift sizes accomplish
- A year-end or giving-day campaign section
- A monthly giving page showing recurring amounts
Writing the content
- Write What it does to finish the sentence "Your gift…", such as "stocks a family's pantry for a week".
- Use a Link that presets the amount if your form supports it. A card with no Link falls back to the Other amount link.
- Turn Highlight on for one amount, usually the most chosen, and set the Highlight badge text. Use Frequency, such as /month, for recurring asks.
- Add one to six amounts, and use Small print for tax status and how impact figures were calculated.
Accessibility
- Each card is one link containing the amount as a heading, so keyboard users tab once per amount and see a focus outline around the card.
- The card link text repeats the amount and frequency, such as "Give $50/month", so each link reads differently out of context (WCAG 2.4.4).
- The check badge is decorative and hidden from screen readers. Note that the hover lift does not check reduced-motion settings.
Customizing the code
- The highlighted card ring, badge and button use Tailwind indigo; swap indigo- for your brand color.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtextarea
- Heading levelselect
- Introtextarea
- Gift amountsarray
- Highlight badgetext
- Card link texttext
- Other amount texttext
- Other amount linktext
- Small printtextarea