StealThis .dev

Nonprofit — Pledge / Sponsorship Card

A warm set of four nonprofit sponsorship cards for sponsor-a-child and sponsor-a-cause programs, each with a photo placeholder, name, story snippet, monthly amount and a progress thermometer. Cards flip to reveal the impact details, facts and donor recognition, while a sponsor toggle adds each pledge to a running monthly total with animated counters and friendly toasts. Built with semantic HTML, responsive CSS and vanilla JavaScript, accessible and keyboard-friendly down to small screens.

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

Code

Pledge / Sponsorship Card

A polished set of four monthly-sponsorship cards for the fictional Brightpath Foundation. Each card pairs a warm gradient photo placeholder (with a human, impact-focused caption) with the sponsoree’s name, location, a short personal story, a progress thermometer showing sponsors filled toward the goal, and a clear monthly amount. A prominent donate-orange Sponsor button is the primary call to action, and trust badges plus transparent impact numbers (“96% reaches the field”, “14,820 children sponsored”) build confidence.

Every card flips in 3D to a back face that reveals the full impact breakdown — what the pledge funds, three concrete facts, and donor recognition — so supporters can read the story before they commit. Sponsoring a card toggles its state to a confirmed look, nudges its thermometer up by one, fires a friendly toast, and adds the amount to a sticky monthly-pledge summary that tallies the total across all selected cards and enables the final “Complete Sponsorship” action.

The whole component is self-contained vanilla JavaScript: data-driven card rendering, an IntersectionObserver count-up for the hero impact stats, animated progress fills, and an accessible toast helper. It is responsive down to ~360px, respects reduced-motion preferences, and keeps buttons and inputs keyboard-usable with visible focus states.

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