Skip to content

About

responsive weather application built with React, TypeScript and TanStack Query.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Frontend Mentor - Weather app solution

This is a solution to the Weather app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • Search for weather information by entering a location in the search bar
  • View current weather conditions including temperature, weather icon, and location details
  • See additional weather metrics like "feels like" temperature, humidity percentage, wind speed, and precipitation amounts
  • Browse a 7-day weather forecast with daily high/low temperatures and weather icons
  • View an hourly forecast showing temperature changes throughout the day
  • Switch between different days of the week using the day selector in the hourly forecast section
  • Toggle between Imperial and Metric measurement units via the units dropdown
  • Switch between specific temperature units (Celsius and Fahrenheit) and measurement units for wind speed (km/h and mph) and precipitation (millimeters) via the units dropdown
  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for all interactive elements on the page

Screenshot

Desktop view

Desktop view

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • React - JS library
  • TankStack Query
  • TailwindCSS
  • ShadcnUi
  • Typscript
  • Flags Api

What I learned

On this project, I learned how to use TanStack Query to efficiently fetch, cache, and manage server state in React applications. I also gained a better understanding of handling different data-fetching states, such as loading, error, and success, to improve the user experience. Additionally, I explored the Browser Geolocation API, learning how to request a user's location, handle permission states, and integrate geographic coordinates into my weather application to provide location-based forecasts.

Author

About

responsive weather application built with React, TypeScript and TanStack Query.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages