Seasonal offer card
A seasonal promotion card with a struck-through price and discount that announces by itself whether the offer is coming, how many days are left or that it is over.
- Tailwind
- React
- CSS
- WordPress
Description
Black Friday, Advent, winter sales: a seasonal offer has a start and an end date, and the card that presents it should never lie. This one shows the discount in large type, the offer price and the regular price struck through, then reads its period from two attributes (data-cop-start and data-cop-end): before it starts it announces the start day; during the offer it shows the days left, “ends tomorrow” or “last day”; once the date has passed it says the offer is over, removes the struck price to keep only the regular price, and its button leads to the shop. No need to remember to take it down on 1 January. Prices are announced to screen readers with their meaning (offer price, regular price), not by the strike-through alone; without JavaScript the card shows its dates in plain text. A single column on phones and side by side from 38 rem, AA contrast in light and dark mode, a 44 px button target, no horizontal scrolling from 360 px. Example: the Advent box of a tea shop.
Code
Loading the code…
The code of this component in
Archive contents
carte-offre-promotion-saisonniere-html-tailwind.zip3 files · 5 Ko
- index.html5 Ko
- README.md4 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 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

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

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