platform 4

AI UI component · a prompt for Claude, Codex and Cursor

pro

Get the prompt, project and Figma file with monthly ($29 a month) or yearly ($249 a year). Plus tax where it applies.

A 393 × 852 phone screen for booking a seat on an express train. Seen from above, the train pulls in to platform 4 behind a light beam, its motion blur fading as it brakes while the bottom sheet counts down the distance; the pill turns from ARRIVING to BOARDING and Buy ticket wakes up. Buy ticket drives the train on and zooms in, and the seat map shows through the car roofs, scanned in from the top with the seats popping in row by row; chips jump between the five cars and you can pan along the train. Tap a free seat and a pin marks it, with its features and price in the sheet. Look around zooms into the seat and puts you in it: a first-person view of the car and, through the window, the station with its canopy, columns, benches, departure board, far platform, city and mountains. Drag to look around with momentum; the time slider moves the departure from 07:10 to 22:50 and the light follows, from pink dawn haze and midday sun to a low golden sun in your window and a night of canopy lights and lit city windows. At golden hour a hint shows the blind's handle; pull it down and the sun glows through the fabric. Book turns the button orange and drops in an e-ticket. The top-down view is HTML and CSS over train renders; the first-person view is a small hand-written 3D renderer on a 2D canvas with the seats in WebGL. On a desktop the pointer is a touch circle for screen recordings. ?rec and window.__render(t) play a 14-second booking on a virtual clock and redraw any frame exactly.

what you get

prompt
Paste it into Claude, Codex, Kimi or Cursor to rebuild this template. Tested: we rebuild every template from its prompt before it goes live.
project
The Vite + React source code as a .zip, ready to run.
figma file
The editable design as a .fig file to import into Figma.

what's inside

  • mobile app
  • booking flow
  • seat map
  • seat picker
  • train
  • top-down view
  • first-person view
  • look around
  • time of day
  • time slider
  • lighting
  • window blind
  • drag
  • momentum
  • bottom sheet
  • chips
  • pin
  • e-ticket
  • toast
  • motion blur
  • light beam
  • canvas 2d
  • 3d renderer
  • webgl
  • touch cursor
  • frame-exact recorder

stack

  • react
  • vite
  • typescript
  • webgl
  • canvas

fonts

Geist, Geist Mono

Free fonts, linked in the prompt.

colors

  • #0A0A0B
  • #15161A
  • #FAFAF9
  • #0D0D0F
  • #FF5A1F
  • #3FD17A

license

With monthly or yearly: personal and commercial work, client projects included. Don't resell or share the template, prompt or files.

read the license