StealThis .dev
Pages Medium

Nonprofit — Home

A warm, human nonprofit home page for a fictional clean-water charity, built with vanilla HTML, CSS, and JavaScript. It pairs a mission hero and prominent donate CTA with an animated impact stat band, what-we-do cards, a featured campaign progress thermometer, an accessible auto-playing impact-story carousel, a ways-to-help grid, and a newsletter signup. Interactions include count-up counters, a donate quick-amount picker with live impact copy, toasts, and a focus-trapped modal.

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

Code

Home

A complete nonprofit landing page for the fictional Brightwater Collective, a clean-water charity. The hero leads with a mission statement, a high-contrast donate CTA, and trust signals (tax-deductible, program-spend ratio, annual audit). Below it, an impact stat band animates count-up numbers — wells built, people reached, districts served, and uptime — as it scrolls into view. The page continues with a three-part “what we do” card set, a featured Highlands Water Project campaign, an impact-story carousel, a ways-to-help grid, and a newsletter signup, closing on a footer with charity trust badges.

The interactions are all vanilla JavaScript. Counters and the campaign progress thermometer ease into place via IntersectionObserver. The donate button opens a focus-trapped modal with a one-time/monthly toggle, preset and custom amount inputs, and an impact line that updates live (“$50 funds clean water for one family for a year”). The story carousel auto-advances, supports previous/next buttons and clickable dots, and uses the native share sheet when available. A small toast(msg) helper confirms actions, and the newsletter form validates email before showing a friendly status message.

Everything is responsive down to roughly 360px — the nav collapses to a toggle menu, grids reflow to single columns, and the impact band restacks. Styles honor prefers-reduced-motion, and buttons, inputs, and the modal are keyboard-usable with visible focus rings and AA-contrast colors.

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