StealThis .dev
Pages Hard

Nonprofit — Donation Flow

A warm, four-step nonprofit donation flow for the fictional Open Harvest charity. Pick a preset or custom amount, toggle one-time versus monthly giving, choose a designation, and optionally cover processing fees. Live impact equivalence translates each gift into meals served, while a fundraising thermometer, impact stats, and a donor wall build trust. Inline validation guides donor details and payment before a review step and an animated thank-you screen confirm the gift.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Donation Flow

A complete giving experience for the fictional Open Harvest food charity, built as a multi-step flow with a sticky impact rail. The first step pairs amount presets and a custom field with a one-time / monthly toggle, a designation dropdown, and a cover-the-fees checkbox. As the donor changes the amount or frequency, a live impact banner re-renders to show the gift’s equivalence — hot meals, food boxes, or school lunches — with a small emoji pop micro-interaction.

Steps two through four collect donor details, payment, and a final review, each with inline validation: required names, a real email pattern, a card-number check, and an MM/YY expiry mask. The right rail reinforces transparency with a fundraising thermometer, headline impact numbers (meals served, cost per person, program ratio), a live donor wall, and registered-charity trust badges. Submitting simulates processing, then reveals an animated thank-you screen with the donor’s name and impact equivalence, bumps the thermometer, and adds the gift to the donor wall.

Everything is vanilla HTML, CSS, and JavaScript — no frameworks or build step — using a warm sand-and-teal palette, Fraunces headings, and a reusable toast() helper for confirmations.

Illustrative UI only — fictional organization, not a real charity or donation system.