E-commerce · Landing Page Template
E-commerce Landing Page
A poster shop with no product photos, because the page draws its own products. Every print is generated from a number and printed in two inks as you arrive.
Live demo
Draw another print, open one for a closer look, and add it to the bag.
The Prompt
Build an e-commerce landing page for a shop with no product photographs, because the page makes its own products. Off Register is a fictional press selling two-color risograph posters, each drawn by a small program from a number. Every print on the page is generated in the browser as SVG and made to look printed: two inks that multiply where they overlap, a second pass slightly out of register, specks where the ink did not take. The hero is a yellow wall with one framed print on it that prints itself in two passes as you arrive, and reprints from a new number when you ask. Below it are a shelf of eight prints that print in as you scroll, a quick look with size, frame and ink choices and a price that counts, a bag that the print flies into, and a bench where you push two inks over each other. It should feel like a confident, graphic shop, and it must work as one: add, change quantity, remove, see the total.
Match my project's existing stack, conventions, and design tokens. If there are none, output a single HTML file with inline CSS and JavaScript and zero dependencies.
LOOK
Paper #f6f3ec, ink #191817, wall yellow #ffe01f, blue #0b6fd6. Inks for the prints: pink #ff48b0, blue #0b6fd6, yellow #ffd91a, teal #00897b, orange #ff6a2b, black #2a2725. Display type is a heavy condensed grotesque from the system: "Bahnschrift", "Helvetica Neue", "Arial Narrow", "Roboto Condensed", then the system sans, with font-stretch 75%, weight 800, line-height 0.9; the layout must hold if none of the condensed faces exist. Body is system sans. Buttons are 52px black pills. No rounded cards and no shadows on sections: color blocks carry the page.
A PRINT
One function, given a program, a number and an ink pair, returns a sheet:
- A 3:4 sheet of off-white paper containing two absolutely positioned SVGs with viewBox 0 0 300 400, one per ink. Each draws only its own ink in currentColor, clipped to a plate of 264 by 320 that leaves a margin and room for a colophon.
- The second SVG has mix-blend-mode: multiply and is translated 0.55% right and 0.4% up. Isolate the sheet so it multiplies only against the first ink and the paper.
- Over both, two overlays: fine noise multiplied at 7% (paper tooth) and a tile of about 1500 small white dots of random size and opacity, generated once on a canvas, blended with screen (bare paper showing through the ink).
- A colophon along the bottom in the darker of the two inks: the print's name and "No. 0412".
- Frames wrap the sheet: none (the bare sheet with a strip of tape in the first ink), oak (a border-image of streaked browns over a pale mat) or black. Framed prints get a diagonal glass glare that slides on hover.
Seed a small PRNG (mulberry32) from the number so the same number always draws the same print.
THE PROGRAMS
Eight, each returning markup for ink one and ink two:
- Rising: a sun, and five ridgelines made from two summed sines, alternating inks, each filled to the bottom.
- Tiles: a 6 by 7 grid of 44-unit cells; each gets a square, a circle, a quarter disc, a half disc, a dot or nothing, a random quarter-turn, and one ink.
- Orbit: per ink, seven round-capped arcs of width 13 at growing radii around its own center, random start and sweep.
- Field: per ink, 150 strokes of 13 steps following a direction field made from three sines.
- Halftone: per ink, a staggered dot screen whose radius falls with distance from a random point, the two screens rotated 15 and 75 degrees.
- Plots: split a rectangle in two seven times, then fill each cell with a solid, bars, or a circle, mixing the inks.
- Interference: per ink, vertical lines 13 apart that waver on a sine; two sets together shimmer.
- Stack: seven tilted pill shapes in a column, alternating inks.
Do not draw anything that resembles a known artwork or album cover.
HERO
Full-height yellow panel. Left: the h1 "Printed once. Never again." at clamp(64px, 11.4vw, 190px), a short paragraph, and two buttons, "Shop the prints" and "Draw another". Right: the first print in a black frame, hung 2.2 degrees off level with a long shadow, leaning up to 5 degrees toward the pointer. A caption gives its number, name and inks. The bag button is fixed at top right on every scroll position.
Printing: each ink SVG animates clip-path from inset(0 0 100% 0) to inset(0), 1150ms each, the second starting at 1000ms, with a thin bar of that ink's color sweeping down at the edge of the reveal; the colophon appears last. "Draw another" picks a new number and prints again.
THE SHELF
An h2, a row of filter chips (All inks and one per ink, aria-pressed), and a four-column grid (three under 980px, two under 820px). Each card is a tinted stage (the first ink mixed 15% into paper) holding a framed print, with the name and "from $24" beneath, and a round plus button for adding the A3 unframed print directly.
- On hover or focus the frame lifts and tilts, the glare slides, and the second ink slips to the opposite side of register.
- Where animation-timeline is supported and motion is allowed, give each card a named view timeline and drive the same clip-path reveal from it, first ink between entry 8% and cover 30%, second between entry 26% and cover 42%, so scrolling prints the shelf.
- Filtering hides cards inside a view transition; name the cards only for the length of that transition so the rest slide into the gaps.
A CLOSER LOOK
A native dialog opened with showModal: the print on its tinted stage on the left; on the right the name, "No. 0412. Nobody else gets this number.", one sentence about the program, radio groups for size (A4 $24, A3 $38, A2 $58, with dimensions), frame (none, oak +$40, black +$40) and seven ink pairs shown as two overlapping discs, a "Draw another number" button, the price and "Add to bag".
- Open and close inside a view transition in which the frame carries the same view-transition-name on the card and in the dialog, so the print itself travels between them.
- Changing inks or drawing another number reprints the sheet with the two-pass animation; changing frame or size redraws it at once.
- The price counts to its new value in CSS: register an integer custom property with @property, transition it, and show it with counter-reset and a counter() in a pseudo-element. Keep the real number in visually hidden text.
THE BAG
A second dialog styled as a drawer: full height, 470px, anchored right, sliding in with a transition from @starting-style and leaving with transition-behavior: allow-discrete on display and overlay; the backdrop fades the same way.
- Adding: clone the sheet, fix it over its source, and animate it with the Web Animations API along two legs (up and across, then into the bag) while it shrinks to 8% and turns; then the count updates and the bag button bounces. From the dialog, close first, then fly from the card.
- Lines: thumbnail sheet, name, "No. 0412, A3, oak", the inks, a stepper (the minus becomes a cross at one), and a counting line price. Identical choices merge into one line. A removed line collapses before it goes.
- Footer: "$42 more and delivery is free." over a progress bar toward $80, the counting subtotal, and Check out, which only says that this is a demonstration and nothing was charged.
THE PRESS
A blue section: "Two inks make three colors", two rows of ink swatches (first pass, second pass; each swatch a disc of ink on a dab of paper so blue still shows on blue) and a tilted sheet with two large multiply-blended circles you can drag, or move with arrow keys when focused. Three swatches show first ink, second ink and their product, computed per channel as a × b / 255. End the page with three plain facts about printing, packing and delivery, and a black footer with the wordmark very large.
ACCESSIBILITY
Every print is decorative markup with its meaning on the control around it ("Tiles, number 0077, from $24. Look closer."). Real radio inputs behind every option, native dialogs for focus trapping and Escape, a polite live region for "added", "removed" and filter counts, focus returned sensibly after a line is removed. Focus rings are 3px blue, white on the blue section. With prefers-reduced-motion nothing prints, flies, slides or counts; everything simply appears.
NEVER
- Never use product photos, icon fonts or a canvas screenshot; the prints are live SVG.
- Never let the second ink blend with the page behind the sheet.
- Never keep view-transition names on the cards outside the filter transition, or they float above the dialog while it opens.
- Never fake a checkout or collect anything.
- No libraries, no network requests.
- CopyThe full prompt, one click.
- PasteInto Cursor, Claude Code, or any agent.
- CompareAgainst the live demo above.