StealThis .dev
Pages Medium

Travel — Travel Site Dashboard

An editorial analytics dashboard for a fictional travel publication, where a reporting-period switch recomputes everything in vanilla JS. Four KPI cards report visitors, top-destination views, guide views and average read time with coloured deltas and inline SVG sparklines, a seasonality area-and-line chart plots monthly interest against bookings with a hover readout, a sortable top-guides table tracks views, saves and trend, and a destinations-by-region bar shows each area share of guide views.

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

Code

Travel Site Dashboard

A warm, editorial admin view for Waymark, a fictional travel-guide publication. A sticky compass-branded rail leads into a topbar with a reporting-period switch (7d / 28d / 90d / 1y) and an export button. Four KPI cards summarise visitors, top-destination views, guide views and average read time, each with an up/down delta pill and a tiny inline-SVG sparkline of the last twelve buckets. Below, a wide panel charts the seasonality of interest — a teal area-and-line of reader interest layered over a coral booking line, indexed to peak, month by month.

Everything is driven by the period switch. Choosing a new range deterministically rebuilds the model: KPI totals and deltas recompute, sparklines and the seasonality curves redraw, and the destinations-by-region bars re-animate to their new shares. Hovering or keyboard-focusing a month on the chart drops a guide line, marks both series and updates a live caption; the top-guides table sorts on any column header, toggling ascending and descending with reflected aria-sort and trend arrows that flip teal or coral.

It is all vanilla JS with inline SVG only — no images, no chart libraries, no frameworks. A small live-visitor ticker, a toast on period change and export, visible focus rings, AA-contrast colours and a layout that folds the rail into a top bar and stacks to a single column make it usable down to ~360px.

Illustrative travel UI only — fictional destinations, prices, and maps.