All-access offer card with places left
A single-plan pricing card: struck-through price and discount, a places-left gauge driven by a data attribute, the list of everything included and a booking button that turns into a waiting list once sold out.
- Tailwind
- React
- CSS
- WordPress
Description
To sell a single offer in limited numbers (annual pass, launch promotion, training session) without fake urgency. The card shows an eyebrow, the title, a short introduction, the large price with its period, the struck-through former price ("Au lieu de", read aloud by screen readers) and the discount in a badge, then the sentence "7 places restantes sur 24" (7 places left out of 24) and a gauge showing the share already booked. No counter is simulated: the number comes from you, in the data-coa-left (and data-coa-total) attribute filled by your booking tool or CMS. The script follows these attributes live (MutationObserver): under the data-coa-low threshold, a quarter of the total by default, the text becomes "Plus que 3 places" then "Dernière place" and the gauge turns red; at zero, the card shows "Complet" (sold out) and swaps "Réserver ma place" for "Rejoindre la liste d'attente" (join the waiting list). Inconsistent values are clamped. Then come the list of inclusions, with decorative check marks, and the payment terms. Accessibility: the places sentence is a polite live region that only speaks when the number really changes, the gauge is decorative because the text carries the information, state never relies on colour alone, strong visible focus, AA text in light and dark themes, gauge and badge outlined in forced colours mode, transitions removed under prefers-reduced-motion. Without JavaScript, the card keeps the state written in the HTML. In React, just pass total and left as props. Readable from 360 px. Example: the season pass of a pottery studio.
Code
Loading the code…
The code of this component in
Archive contents
carte-offre-acces-total-rarete-html-tailwind.zip3 files · 7 Ko
- index.html10 Ko
- README.md5 Ko
- LICENSE.md1 Ko
Tags
Updated on December 1, 2026.
Reviews
No reviews yet.
In the same spirit

Link in bio page
FreeA mobile page to link from your social profiles: portrait, name, priority links (booking, WhatsApp, website, reviews, call), opening hours with an open or closed status, social links and a share button, in dependency-free HTML and CSS.
- Tailwind
- React
- CSS
- WordPress

Three treatment cards in accessible neumorphism: gently raised surfaces, buttons that sink in when activated, a light/dark switch for the block itself. 3:1 outlines and AA text kept.
- Tailwind
- React
- CSS
- WordPress

Four fully clickable workshop cards in a neo-brutalist style: thick border, solid offset shadow and a card that sinks onto its shadow on hover or focus. Pastel tones, dark mode, no JavaScript.
- Tailwind
- React
- CSS
- WordPress

Three brutalist service cards: one-pixel border, hard offset shadow that lifts on hover and sinks on click, large type, accent and dark variants. No JavaScript.
- Tailwind
- React
- CSS
- WordPress