Weather Forecast Web Application

A modern, responsive Weather Forecast Web App built with HTML, CSS, JavaScript, and Tailwind CSS, powered by the OpenWeather API. It provides real-time weather data, hourly forecasts, 7-day outlooks, and more—all in an elegant interface.


Live Demo

Check out the app in action: https://projectmahe.github.io/weather-app/


Video Demo

Watch the full project walkthrough and UI demo here:

Weather Forecast Web App Demo


Features

  • Search by City — Fetch weather for any city globally
  • Current Weather Details — Temperature, description, feels-like, humidity, wind, pressure, visibility
  • Hourly Forecast — Forecast for the next 24 hours
  • 7-Day Forecast — Extended outlook with daily highs/lows
  • Sunrise & Sunset Times
  • Dark/Light Mode — Toggle theme with smooth transitions
  • Responsive Design — Optimized for mobile and desktop
  • Animated Weather Icons — Dynamic SVG-based icons that change with conditions
  • Error Handling & Loading States — Graceful feedback with modals and spinners

Tech Stack

  • Frontend: HTML5, CSS3, JavaScript (ES6+), Tailwind CSS
  • API: OpenWeatherMap API
  • Hosting: GitHub Pages

Getting Started

Prerequisites

Setup Instructions

  1. Clone the repo: ```bash git clone https://github.com/projectmahe/weather-app.git cd weather-app
  1. Add your API key: Edit the JavaScript file (e.g., script.js) and replace: with your own API key:

const API_KEY = "YOUR_OPENWEATHER_API_KEY";

  1. Run locally: Simply open index.html in your browser—it’s a static site requiring no server

📸 Project Preview

The Weather Forecast Web App is fully responsive, working seamlessly across devices.

🌐 Desktop View

Desktop Preview

💻 Tablet View

Tablet Preview

📱 Mobile View

Mobile Preview

🎨 Dark & Light Theme Support

This app comes with built-in theme switching.
Users can easily toggle between Dark Mode 🌙 and Light Mode ☀️ for a better viewing experience.

🌙 Dark Mode

Dark Mode

☀️ Light Mode

Light Mode

📱 Mobile Dark Mode

Mobile Preview

📱 Mobile Light Mode

Mobile Preview

⭐ If you enjoyed this project or found it helpful, leave a ⭐ on the repo and share your feedback!

Built With

Share this project:

Updates