StealThis .dev

Salon — Loyalty & Referral Card

A boutique salon loyalty and referral panel with a gold-accented points progress bar climbing toward the next reward tier, badge milestones from Petal to Lumiere, a punch-style visit stamp card, a list of redeemable perks whose Redeem buttons deduct points live, and a referral block with a copy-to-clipboard code plus running invites-sent and joined counts. Editorial serif display, clean sans body, soft toasts.

Abrir no Lab
html css vanilla-js
Targets: JS HTML

Code

Loyalty & Referral Card

A members-only loyalty panel for Maison Lumière Salon, built for a guest like Aria Vance. A serif display headline sits above a points balance that fills a gilded progress bar toward the next reward, with four tier badges — Petal, Gilded, Aurum and Lumière — lighting up as the balance climbs. A row of eight visit stamps shows the punch-card toward a complimentary eighth visit, the final spot reserved as a free reward.

Beneath it, a list of redeemable perks — a free blow-dry, a bond-repair treatment, an express manicure, a glow facial — each shows its point cost and a Redeem button. Redeeming deducts the points, re-renders the bar and tiers, locks any rewards now out of reach, and raises a soft toast. The referral block carries a copyable code that writes to the clipboard, plus live invites-sent and joined counts that update as you send invitations, occasionally crediting bonus points when a friend books.

Everything is vanilla JavaScript with no dependencies: live point math, animated progress, clipboard copy with a graceful fallback, and an accessible toast helper. The palette leans on rose-gold, cream and matte black with thin gold hairlines, and the whole card stays legible and tappable down to a 360px viewport.