Waitlist · Landing Page Template
Waitlist Page
One sentence, one email field, and a real-time sea behind them. It opens at your own time of day, and you can raise the swell or move the sun.
Live demo
Change the light or the swell, then join the list.
The Prompt
Build a single-screen waitlist page for Brine, a tide and sea-conditions app for outdoor swimmers, set on a real-time sea. The whole background is one WebGL fragment shader: open water running to a horizon under a low sun, with a path of glitter coming toward you. It opens at the visitor's own time of day (dawn, day, dusk or night, with a moon and stars), and two controls let them change the light and raise the swell from flat calm to a rough day. Over it sit one sentence, one email field and a count of who is already waiting. 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. Raw WebGL only: no ray marching library, no video, no images. LOOK - White text with a faint soft shadow, ui-sans-serif, system-ui. One accent, orange #FF6B2C, for the button and nothing else. - Everything that needs a surface is glass: a deep navy tint at 48%, backdrop blur 22px, a hairline white edge. Film grain at 9%. - Layout, one 100svh section in three rows: a bar, the copy, the controls. - Bar: "Brine" at 22px weight 680; on the right a glass pill of readings: "High water in 5 h 4 min", "Sea 11.4 °C", "Wind 9 kn SW". Only the first shows on phones. - Copy, upper left, max 860px, so it sits entirely in the sky: h1 "Know the water before you get in." at clamp(40px, 5.2vw, 88px), weight 650, line-height 0.93, letter-spacing -0.05em. Then "Tide, swell, temperature and sewage alerts for 1,200 swimming spots around the British and Irish coast, on one calm screen. Arriving in spring 2027." - Form: a glass pill, max 480px, holding a borderless input (placeholder "[email protected]") and a 50px orange pill button "Join the list". Under it a status line: "2,480 swimmers are waiting. One email, when it is ready." - Controls, bottom center, two glass docks: "Swell" with a range input and a value ("0.6 m", range 0.2 to 2.5); "Light" with a four-way switch, Dawn, Day, Dusk, Night, whose thumb slides on a spring using :has(). THE SEA - No marching. For each pixel build a ray: normalize(uv.x, uv.y - horizon, -1.4), with the horizon 13% below center (20% on portrait screens). - Above the horizon, return the sky for that direction. - Below it, the ray meets flat water at distance t = 1.1 / -ray.y. At that spot sum seven wave trains, starting along (0.8, 0.6) and each turned by the same rotation, 1.72 times shorter and 0.62 times weaker than the last, with phase speed proportional to the square root of frequency so long waves outrun short ones. - Each train's shape is exp(sin(phase) - 1), broad troughs and sharp crests; its slope is that times cos(phase) times frequency. Nudge the sample point along each train's direction by its height (0.12) so crests bunch. - Fade each train by 1 / (1 + 0.014 t x frequency), so short waves vanish toward the horizon instead of shimmering. - Normal = normalize(-slope.x, 1 / (0.22 + 1.5 swell), -slope.y): the swell control tilts the normals rather than moving geometry. - Color = mix(deep water color, sky in the reflected direction, Fresnel), with Fresnel = 0.03 + 0.97 (1 - n.v)^5, then haze toward the horizon color by 1 - exp(-0.0075 t). The glitter path is nothing special: it is the sun's disc seen in thousands of tilted mirrors. THE SKY - A gradient from a horizon color to a zenith color by 1 - exp(-3.2 y), plus the sun: a small hard disc, a tight glare (power 420), a wider one (40) and a broad warmth (6). - Four palettes, blended continuously by a number from 0 to 3. Dawn: zenith (0.15, 0.25, 0.56), horizon peach (1, 0.72, 0.6), sun low. Day: clear blue over pale, sun high. Dusk: violet over orange (1, 0.46, 0.26), sun on the horizon. Night: near black over deep blue, the sun becomes a cool moon at half strength, and round stars appear from a hashed grid. - The sun's bearing shifts a few degrees with the pointer. Changing the light eases over about a second, so the sun visibly climbs or sets. THE LIST - Choose the opening light from the visitor's clock: before 5 night, before 9 dawn, before 17 day, before 21 dusk, otherwise night. - The count starts at 2,480 and rises by one every nine seconds while the tab is visible. - Submitting an empty field: "Type your email address first." A malformed one: "That does not look like an email address. Check for a typo." The pill's outline turns orange and focus returns to the input. Typing clears it. - A valid address swaps the form for a glass card that lands on a spring: "You are number 2,481." and "We will write once, on the morning it launches. Until then, mind the tide." Focus moves to the card, and the sky answers with a slow flare around the sun. Nothing is sent anywhere. - "High water in" counts down on a 12 hour 25 minute cycle from the real clock, updated every 30 seconds. MOTION AND BEHAVIOR - Load: the headline's words rise out of clipping boxes; the bar, copy and docks sharpen from a blur and settle on a CSS spring (a damped spring sampled into linear()). - Render at up to 1.5x device pixels and step the resolution down when frames run long. Pause when the tab is hidden. - Without WebGL, a CSS gradient with a hard horizon stands in. ACCESSIBILITY - The canvas is aria-hidden. One h1. The input has a visually hidden label and is described by the status line, which is a status region. The confirmation is focusable so it is announced. - The swell control is a native range input with value text in meters; the light switch is four radio inputs in a labeled group. - prefers-reduced-motion: one still frame of the sea, redrawn only when a control changes; no counter, no flare animation. NEVER - No stock ocean video or photograph. - No countdown to launch, "limited spots" pressure or confetti. - No second field (name, role, company). - No fake network request or spinner. - No text over the brightest part of the sky without glass behind it.
- CopyThe full prompt, one click.
- PasteInto Cursor, Claude Code, or any agent.
- CompareAgainst the live demo above.