Build the look on four rails
Four rails of cut-out garments, each dragged into a bracketed slot on its own, with lock, shuffle, a stacked preview, a rolling total and an inline bar for sizes and the bag.
Links in the preview stay on the block.
Open on its ownThe prompt
One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.
828 words
# Build the look on four rails One product tour section, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML. ## Goal A dark outfit builder for a night-wear label: the visitor styles one look from four categories and adds it to the bag in one go. ## Structure 1. section head: Didone headline on one line, a short how-to beside it 2. body: sticky look column (4 of 12) and the rails (8 of 12) 3. look column: label, a stacked preview of the four chosen pieces in one framed column, a ruled list of names and prices, a big tape counter total 4. four rails: label cell (number and category, price, name, Lock toggle) and a track (belt of cut-outs, red bracketed slot in the middle, round arrows at both ends) 5. sticky bar at the foot: thumbnails, label and total, Shuffle, Bag with count, Choose sizes 6. inline panels above the bar: one fieldset of size pills per piece with Add the look, or the bag tray ## Type Libre Bodoni 600 capitals clamp(40px, 4.4vw, 64px) headline. Spline Sans 400 and 500, 15px names, 13px caps buttons at 0.08em. VT323 for category numbers, prices, the total (48px, 30px in the bar) and size pills (20px). ## Colour Ground #0B0B0D, rails stage #131317, hairlines #2A2A30, text #EDEBE6 (16.5:1), secondary #8F8C86 (5.9:1), slot brackets and buttons #D7192A with white text (5.2:1), counters #5FD3E6 (11.2:1). A locked rail turns its brackets #EDEBE6 and its Lock pill solid. ## Spacing and lines Rails 220px label cell and a track clamp(124px, 16vh, 168px) tall; belt items 260px wide (180px on phones), images contain-fit with 14px by 18px padding. Slot brackets 14px wide, 10px inset top and bottom. Round arrows 44px, 12px in from the ends. Bar 12px by 32px, thumbnails 52px. ## Behaviour Drag a track to move its belt; past the ends it resists at 0.35. On release the last 160ms of pointer speed projects the stop, then it snaps to the nearest piece in 340ms cubic-bezier(0.2, 0.9, 0.1, 1). Arrows and arrow keys step and wrap. Off-slot pieces sit at 38 percent opacity. The changed preview slot is redrawn by a top-down clip with a 1px red scan line, 280ms. Totals roll between values over 400ms with an ease-out cubic. Shuffle deals each unlocked rail a different piece with a 90ms stagger. Choose sizes unfolds a panel (340ms clip, 46svh cap); Add the look is visibly disabled until all four have sizes and lists the missing ones; adding shows a loading bar for 620ms, then opens the bag tray in the same bar with quantity, remove, subtotal, checkout and an empty state. ## Responsive Under 900px the look column becomes a compact row (stack 112px wide beside the list), rails go full width with the label above the track, the bar stacks into a total row and three buttons. ## Accessibility Each track is a focusable group whose label gives the piece, price and position and names the keys. Lock buttons use aria-pressed. Panels use hidden and aria-expanded on their buttons. Size groups are fieldsets with legends. Reduced motion: instant snap, no scan, no roll, no stagger. ## Built values (from code.html) - Fonts: Libre Bodoni 500 to 600 (self-hosted: fonts/bodoni.woff2); Spline Sans 400 to 500 (self-hosted: fonts/spline.woff2); VT323 400 (self-hosted: fonts/vt323.woff2). Self-hosted files sit in fonts/ in the block download. - Colour variables: --tape #0B0B0D, --stage #131317, --line #2A2A30, --phos #EDEBE6, --static #8F8C86, --red #D7192A, --red-hi #E8303F, --blue #2E46FF, --cyan #5FD3E6, --white #FFFFFF. - Font variables: --didone "Libre Bodoni", "Bodoni 72", "Didot", Georgia, serif; --sans "Spline Sans", "Helvetica Neue", Arial, sans-serif; --osd "VT323", "Courier New", monospace. - Size variables: --s1 4px, --s2 8px, --s3 16px, --s4 24px, --s5 40px, --s6 64px, --s7 104px, --s8 168px. - Media queries: max-width 720px, max-width 899px, max-width 480px, prefers-reduced-motion. - Media: assets/outer-biker-440.webp (322x440), assets/top-vneck-440.webp (704x440), assets/bottom-leather-440.webp (154x440), assets/shoe-engineer-440.webp (455x440). - Script: none, CSS only. ## Content to replace - [Categories]: four rails and their labels - [Pieces]: three or more cut-out garment photos per rail, with name and price - [Sizes]: the size list for each category - [Copy]: a one-line headline and a two-line how-to - [Bag]: empty state, checkout label and thank-you message ## Rules Plain, specific copy that reads as a live product; never the word sample. No shadows, glow, glass, blur, gradient text, emoji or italics. Motion moves transform and opacity, with colour, border, height and stroke transitions on state changes, and holds its end state under prefers-reduced-motion. Text passes WCAG AA. ## Output Return the block in one piece: the markup, one style block with the web fonts imported on its first line, and a small script only if the behaviour needs one. No page wrapper, no framework, no build step. Prefix every class with `blk-` and put the colours and sizes in CSS variables at the top.
Media to supply
The photos and video on the live page are licensed for this showcase, so the code points at an assets folder instead. Drop your own files in with these names, or change the paths: outer-biker-440.webp, top-vneck-440.webp, bottom-leather-440.webp, shoe-engineer-440.webp
More like this
Product tour
Same page







