StealThis .dev

Museum — Donation / Support Panel

A refined, gallery-toned donation panel for a fictional art museum. Visitors pick a preset amount chip or type a custom gift, switch between one-time and monthly support, optionally cover the processing fee, and direct their gift to general funds, acquisitions, education, or conservation. A live impact line rewrites itself as the amount and designation change, while a running ledger tallies the gift, fee, and total today and updates the donate button label in real time, with a toast confirming each step.

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

Code

Donation / Support Panel

A self-contained support panel for the fictional Meridian Museum of Art, paired with a curatorial left rail that frames a featured acquisition — Field, No. 9 by Ada Renström (1968, Acc. 2024.117) — and three lines of annual impact. The form favors generous wall space, a Cormorant Garamond and Inter pairing, and a quiet gold-and-charcoal palette to feel like a real cultural institution rather than a generic checkout.

Donors choose from five preset amount chips or type a custom figure, then toggle between a one-time and a monthly gift; the frequency tag and button label adjust accordingly. An optional cover the processing fee checkbox adds 2.5% and reveals a fee line in the ledger, and a designation dropdown routes the gift to general support, the Acquisitions Fund, Education & Access, or the Conservation Studio.

Everything is reactive: a live impact line rewrites itself for the current amount and designation, the ledger tallies gift, fee, and total today, and the donate button shows the exact amount with a per-month suffix when relevant. Submitting runs a short processing state and fires a confirmation toast. The panel is keyboard-usable with visible focus, meets AA contrast, respects reduced-motion, and reflows cleanly down to 360px.

Illustrative UI only — demo data; not a real museum system.