StealThis .dev

Nonprofit — Petition / Pledge

A warm, hopeful petition and pledge page for a fictional clean-water charity. It pairs a bold cause statement and impact stats with an animated signature-goal thermometer and progress bar, a validated sign form with optional comment and privacy toggle, a live recent-signatures feed that grows as people sign, and quick share actions. A sticky donate call-to-action and trust badges round out a self-contained, accessible, responsive vanilla build.

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

Code

Petition / Pledge

A campaign-style petition page for the fictional Clear Waters Coalition. The hero leads with the cause — protecting the Rivertown watershed — alongside count-up impact figures (acres to restore, residents served, partner groups) and trust badges signalling a tax-deductible, verified charity. A warm-gradient photo placeholder carries a human caption so the layout reads like a real campaign.

The signature card centres on a goal: a horizontal progress bar and a vertical thermometer animate toward a 10,000-signature target. Signing validates name and email inline, optionally adds a short comment, and respects a privacy toggle for whether the name appears publicly. On submit the counter increments, the progress animates forward, a toast confirms your signature number, and the button locks into a thank-you state.

The right column is a sticky live feed of recent signatures — colour-seeded avatars, city and time metadata, and quoted comments. New signatures slide in at the top with a fresh highlight. Share buttons copy a link or simulate social and email sharing, and a fixed donate bar keeps the primary ask in view. Everything is keyboard-usable, contrast-checked, and collapses cleanly down to ~360px.

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