Welcome to the Weather App! This application provides you with current weather conditions and a 5-day weather forecast for any city. Additionally, it fetches relevant background images from Unsplash to enhance the user experience.
- Current Weather: Displays the current temperature, humidity, and wind speed for the searched city.
- 5-Day Forecast: Shows the minimum and maximum temperatures for the next 5 days.
- Dynamic Backgrounds: Fetches and sets a background image from Unsplash based on the searched city.
- Responsive Design: The app is designed to be responsive and works well on both desktop and mobile devices.
- Local Storage: Remembers the last searched city and automatically displays its weather data on page load.
-
Search for a City:
- Enter the name of a city in the input box.
- Click the "Search" button to fetch the weather data.
-
View Weather Data:
- The current weather conditions will be displayed at the top.
- The 5-day forecast is displayed below the current weather.
- A relevant background image will be set based on the searched city.
-
Automatic Loading:
- The app will remember the last searched city and automatically display its weather data the next time you open the app.
- OpenWeatherMap API: Used to fetch current weather and 5-day forecast data.
- Unsplash API: Used to fetch background images based on the searched city.