You are browsing as a guest. Sign up (or log in) to start making projects!

3h 29m 20s logged

Beta 4, the final version of the Weather App, is up. Three new things:

  1. Geolocation: there’s a “My location” button next to the search bar
    that uses the browser’s geolocation API to get your coordinates, then
    queries OpenWeatherMap by lat/lon instead of city name. Useful when you
    don’t know the exact city name or just want your local weather fast.

  2. Favorites: each result has a star icon next to the city name. Click
    it to add the city to your favorites, which show up as chips below the
    search bar. Click a chip to search that city again, click the × to
    remove it. Favorites are stored in localStorage so they survive reloads.

  3. PWA: added a manifest and a service worker, so the app is now
    installable on desktop and mobile. Once installed it opens in its own
    window without the browser chrome, and the service worker caches the
    main files so it works offline too.

Also changed the font from system-ui to Space Grotesk. The default
sans-serif felt a bit generic, Space Grotesk gives it more character,
especially on the big temperature numbers.

This is the last beta for this project. Calling Weather App done.

0
11

Comments 0

No comments yet. Be the first!