← Archive06 / 16
Lab noteNo. 06
NYC Travel
A travel guide for New York with live NYC time and weather, flight times from your airport, top destinations and a hotel guide.
- Made
- Sep 2023
- Type
- Landing page
- Stack
- JS / OpenWeather / DistanceTo

Why I built it
A guide to my own city, and a reason to put two APIs and more ambitious layouts on one page.
What I learned
- Content from JSON: 27 hotels, the neighbourhoods and weather icons load from files I compiled.
- Two APIs side by side: weather on page load, flight data on search by airport code or your location.
- A live clock in New York time, updated every second.
- Many CSS layouts on one page, often nested: grid and flexbox in every section, and a horizontal scroll container for the destinations.
Revisited
- Nov 2023: cleaned up the code and moved data fetching to async functions.
- Sep 2024: improved the mobile layouts for the neighbourhood and destination cards.