StealThis .dev
Pages Medium

Travel — Day-by-day Itinerary

An editorial day-by-day trip itinerary for a fictional five-day Amalfi Coast loop. A horizontal day selector swaps a vertical timeline of stops — each a POI card with time, rating, price tier, best-time badge and travel leg between them. Switching days redraws an inline SVG route map with numbered pins. Check off completed stops, watch the day progress ring fill, collapse or expand notes, and save or print the whole plan.

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

Code

Day-by-day Itinerary

A warm, magazine-style trip planner built around a five-day Amalfi Coast loop. A landscape hero sets the mood, then a horizontal day selector (Day 1–5) lets you jump between days. Each day renders as a vertical timeline: every stop is a POI card showing its time, category, star rating, price tier and best-time hint, with a small travel leg (walk / ferry / bus) drawn between consecutive stops.

Switching days swaps the timeline and redraws an inline SVG mini-map, tracing the day’s route through numbered pins over a stylised coast. You can check off completed stops — the timeline dot turns green, the matching map pin recolours, and a circular progress ring plus each tab’s mini-bar update in step. Stop notes collapse and expand (tap the card header or the chevron), and a day summary lists distance, on-foot total, estimated cost and the day’s highlights. Save the trip to a wishlist or print a clean, control-free version of the plan.

Everything is vanilla HTML, CSS and JavaScript — no frameworks, no external images, no build step. The map, hero landscape and pins are all CSS gradients and inline SVG, and the layout collapses gracefully from a two-column board down to a single stacked column on narrow phones.

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