StealThis .dev

Airline — Boarding Pass

A mobile-first boarding pass UI for a fictional carrier, rendering perforated-edge cards with passenger, route, gate, seat, zone and live status pills. Each pass carries a deterministic animated QR stub, an add-to-wallet action, a brightness boost for gate scanners, and a flip-to-reverse view with fare, baggage and frequent-flyer details. A simulated gate change pulses and toasts in real time. Built with vanilla HTML, CSS and JavaScript, fully responsive down to small handsets.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Boarding Pass

Three mobile boarding passes for the fictional Skyward Air, each laid out as a perforated card with a punched-edge stub. The header carries the airline mark and flight number, the route block shows airport codes, cities and 24-hour times either side of a dashed flight path, and a compact detail row surfaces gate, seat, zone and terminal in tabular figures. A large status pill reads Boarding, On time or Delayed, with the boarding pill softly pulsing.

Every pass is interactive. Tap Details to flip the card on its Y axis and reveal booking reference, cabin, fare, baggage allowance and frequent-flyer tier on the reverse. Add to wallet fires a toast and locks the button, while Brightness ringfences the card in sunrise orange and lifts contrast so a gate scanner can read the QR stub. The QR matrix is drawn deterministically on a canvas from each passenger’s PNR, complete with finder squares and a sweeping scan line.

Shortly after load, the boarding flight gets a simulated gate change: the gate value flashes, a Gate changed tag appears, and a toast announces the new gate — the kind of live nudge a real wallet pass would push. Everything is vanilla HTML, CSS and JavaScript with no dependencies, honours reduced-motion preferences, and reflows cleanly down to roughly 360px.

Illustrative UI only — fictional airline, not a real booking or flight system.