StealThis .dev

Salon — Gift Card Purchase / Redeem

A luxe, editorial gift-card experience for a boutique salon. The Buy tab renders a rose-gold card that updates live as you set an amount preset or custom value, recipient name, personal note and delivery date, then totals the purchase with add-to-cart and checkout toasts. The Redeem tab validates a code, shakes on errors, and reveals the balance with an animated count-up plus issue details. Vanilla HTML, CSS and JS — fully responsive and keyboard accessible.

Otwórz w Lab
html css vanilla-js
Targety: JS HTML

Kod

Gift Card Purchase / Redeem

A two-tab gift-card module for Maison Lumière Salon, built to feel like a real boutique checkout rather than a placeholder. The Buy tab pairs a tactile, rose-gold preview card with a clean form: choose a preset or type a custom amount, name your recipient, write a short note, and pick a delivery date. Every keystroke flows into the card in real time — the value bumps as it changes, the message sets in serif italics, and a tidy summary tallies the total before you add to cart or purchase.

The Redeem tab keeps the same calm typography. Enter a code and the field validates its shape before checking it against demo cards; an invalid entry shakes with a gentle correction, while a valid one unfurls a balance panel with an animated count-up and the card’s issue details. Seeded codes are surfaced inline so the flow is easy to try.

Throughout, gold hairlines, generous whitespace and a Cormorant Garamond display face carry the maison aesthetic. Interactions are keyboard-friendly with proper tablist roles and aria-live feedback, contrast meets WCAG AA, and the layout reflows gracefully down to 360px. No frameworks, no build step — drop in three files and it works.