Use it as the last section before the footer when something has not opened yet. It takes an image of the room, content (headline, brand, address, stamp, form labels) and onSubmit / onUndo; a valid address opens the shutter. Variants roll, concertina, ajar.
When not to use
For a plain call to action with a button and no form use Blue Peter. For a full enquiry or contact form use Weft or Punched.
Use Cortina as the closing ask of a shop, venue or launch that has not opened yet. The section is
its own shopfront: a painted fascia carries the headline, the wall pier carries the form (a brass
letterbox and an enamel plate to press) and a rolled steel shutter closes the opening. The hand
lifts it a third of the way; a valid address raises it for good and the shop is there.
import { Cortina } from "@/components/sections/cortina"export default function Page() { return ( <Cortina image={{ src: "/shop/inside.webp", alt: "Inside the shop: lamps over an armchair." }} content={{ brand: "Acme Lamps", trade: "Paper lamps", headline: ["We open ", "on the twelfth", "."], sentence: "Leave an address and your name is on the door.", street: "Main St", number: "12", stamp: ["On the door", "Fri 12 Mar · 19:00"], confirmation: "On the door. Friday 12 March, 19:00.", }} onSubmit={(email) => subscribe(email)} /> )}
onSubmit fires with the address once it passes validation, onUndo when the name is taken off.
shapes replaces the mural painted on the shutter (disc, quarter and band shapes, each with
its own CSS colour). Fonts come from the CSS variables --ct-display, --ct-sans, --ct-mono and
--ct-stencil.
The demo images stay on this site and are not installed: pass your own through the props below.
Prop
Type
Ratio
Transparent
Max weight
Notes
image
{ src: string; alt: string; position?: string }
any, landscape
no
500 KB
The room behind the shutter.
The image fills the opening (object-fit: cover, position sets object-position): an interior
with one clear subject in the middle reads best, since the shutter covers the top first. Use WebP
or JPEG, at least 1200 px wide.
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. shutter is the painted
ground (its slats, shadows and the fascia lettering are derived from it), fascia the sign board and
the slip, pier the wall, ink the text, accent the block shade and the stamp, steel and
primer what shows through the chips, brass the letterbox, kerb and band the pavement. The
mural's colours sit in shapes.
stack: the fascia, then the pier with the form, then the opening. On touch screens the shutter rests a hand's width open and breathes up every eleven seconds; the handle and the controls are at least 44 px and vertical scroll is never blocked.
The shutter is painted once on a 2D canvas (DPR capped at 2) the first time the section nears the viewport; the opening shows the flat shutter colour until then.
One frame loop that stops off screen or in a hidden tab.
Own code is checked against the sections budget (pnpm size).
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 16.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
Dependencies
motion
Triggers
—
Reduced motion
The shutter rests a fifth open over the lit shop; a valid address fades it away without motion.
Keyboard
No keyboard interaction of its own.
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)