Ecommerce Hero 28 block design & features
EcommerceHero28 is a seasonal sale hero built with shadcn/ui and Motion. A bright still-life photo sits inside a framed panel, with a thin border and padding around it like a mounted print, and a caption row beneath for the shop name, a discount code and the delivery threshold.
A centred serif title, a discount line whose percentage counts up on load, a countdown that ticks down to the end of the sale and an outlined button sit directly on the image. A light wash over the photo keeps the dark type crisp. The discount code in the caption row copies to the clipboard and briefly shows a confirmed state.
It suits shop sales, seasonal collections and gift guides. The sale length, discount, code and copy are props, and reduced-motion visitors see the final discount without the count-up.
