This web-based weather application allows users to enter a location and retrieve current weather conditions for that location. It displays details such as temperature, weather description, and an icon representing the current weather.
- Search: Enter a location to fetch weather data.
- Current Weather Display: Shows temperature, weather description, and an icon.
- Responsive Design: Works well on desktop and mobile devices.
- Background Image: Customizable background image based on user preference.
- HTML
- CSS
- JavaScript
- OpenWeatherMap API for weather data.
To run the weather app locally:
-
Obtain an API key from OpenWeatherMap and replace
'your-api-key'
inscript.js
with your API key. -
Open
index.html
in a web browser.
- Enter a location in the search box and click "Get Weather".
- The app will display the current weather information for the entered location.