Ecommerce Hero 21 block design & features
EcommerceHero21 is a product hero built with shadcn/ui and Motion. The left column holds the product name, a short description, the price, a cm and inch toggle, a two-column spec list and two buttons.
On the right, the product photo is marked up like a technical drawing. Lines for width, overall height and seat height draw out on load with end ticks and small measurement labels, and switching units updates the labels and the spec list together.
It suits furniture, lighting and any product where size is the first question. The page uses theme tokens for light and dark mode, while the lines on the photo use a fixed dark colour so they read against it. With reduced motion the lines appear fully drawn.
