Product detail for one pair of sunglasses: the sea at noon is washed out to the bare eye; only inside the held lenses is it seen, tinted and darkened to the lens transmission
Use it as the product detail of an eyewear shop. It takes one bright landscape photo with a level horizon (image, imageHorizon), content with lenses, frame shapes, bridge sizes and prices, and onAdd / onBagChange. Variants held, resting, strip.
When not to use
Not for the cart: use Bunched. Options are lens tint, frame shape (round, panto, square) and bridge size, so for other products use a standard product page.
Use Category Three as the product detail of one pair of sunglasses, or of anything with a tinted
lens: the sea at noon is washed out to the bare eye and is seen properly only inside the lenses,
tinted and darkened to the chosen lens's transmission. Lens, frame and bridge are real options.
Every text and option sits in one typed content prop; each key you pass replaces the default copy
(an optician in Marseille).
Key
Type
Notes
product
{ name, line, eyebrow?, mark? }
The heading (h2) and the engraved mark on the price tag.
options
{ lenses, shapes?, bridges, soldOut? }
Lenses { id, name, short, material, transmission, color, lede }, frame shapes (round, panto, square), bridge sizes in mm and one combination out of stock.
The demo photograph stays on this site and is not installed: pass your own through image.
Prop
Type
Ratio
Transparent
Max weight
Notes
image
string
3:2
no
300 KB
A flat, bright view: sky on top, a straight level horizon, no people.
Set imageHorizon to the horizon's height as a fraction of the photograph (0.49 for the demo) and
imageAspect to its width / height, so the horizon stays level inside the lenses. Any bright
landscape with a horizon works (sea, salt flat, snow field); the section washes it out to glare
and sky outside the lenses. Use WebP or JPEG at about 2000 px wide; host it on your own origin or
send CORS headers.
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. sky is the page and the
washed-out sky, glare the sea as the bare eye gets it, ink the text, acetate the frame,
case and lining the hard case of the add button, rule the pupil rule, pencil the workshop
note, card the cutting template and the price tag, shadow the tint of the frame's shadow. Each
lens brings its own tint in content.options.lenses.
stack: a band of sea with the pair at the top, the copy and the options below. On touch screens
the pair drifts slowly inside its band on its own; vertical scroll is never blocked.