A responsive and user-friendly Weather Application built using HTML, CSS, and JavaScript, powered by the WeatherAPI.
The app allows users to search for any city and view real-time weather details along with a 7-day forecast.
https://sanchita-weather-app.netlify.app/
- 🔍 Search weather by city name
- 🌡️ Display current temperature and “feels like” temperature
- 🔁 Toggle between °C and °F
- 🌥️ Weather condition icons
- 📅 Current day, date, and local time
- 🌅 Sunrise and 🌇 Sunset timings
- 💧 Humidity, 🌬️ Wind speed, ☁️ Cloud cover
- 📊 UV index and atmospheric pressure
- 📆 7-day weather forecast
- 🎨 Clean and responsive UI
- HTML5 – Structure
- CSS3 – Styling & layout
- JavaScript (ES6) – Logic & API handling
- WeatherAPI – Weather data
- Font Awesome – Icons
- Google Fonts (Poppins) – Typography
weather-app/
├── index.html # Main HTML file
├── style.css # Styles for the application
├── script.js # JavaScript logic & API handling
└── README.md # Project documentation
This project uses WeatherAPI.
- Create a free account at https://www.weatherapi.com/
- Generate an API key
- Replace the placeholder in
script.js:
const API_KEY = "YOUR_API_KEY";