StealThis .dev

Airline — Baggage Tracker

A polished aviation-themed baggage tracker UI showing each checked bag's tag ID, a five-stage status tracker from checked through loaded, in transit, arrived, and on carousel, plus flight info, carousel number, and last-update line. Features animated progress fills, colour-coded status and delayed pills, a bag-tag lookup, a simulate-progress control, and an accessible report-issue modal with toast confirmations. Mobile-first and responsive down to 360px.

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

Code

Baggage Tracker

A self-contained baggage tracking screen for the fictional Skyline Air flight SK 482 (JFK → LHR). A gradient trip-summary header shows the route, flight number, passenger, and bag count, while each checked bag renders as a boarding-pass-style card with dashed perforation notches, a tag ID in tabular figures, a short description, and a live status pill.

The heart of each card is a five-stage tracker — checked → loaded → in transit → arrived → on carousel — with a progress bar that animates its fill on render, completed steps marked with checks, and a pulsing dot on the current stage. Bags that fall behind show a colour-coded Delayed pill, and once a bag reaches the carousel its assigned carousel number is revealed with a blinking indicator.

Interactions are all vanilla JS: the bag tag lookup scrolls to and highlights a matching bag, Simulate progress advances every bag one stage with smooth re-animation and toast feedback, and each card’s Report issue link opens an accessible modal (focus management, Escape to close, backdrop dismiss) that files a mock case number. A small toast() helper surfaces success, warning, and neutral confirmations.

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