π¦οΈ Weather App
A simple and responsive Weather Application built using HTML, CSS, JavaScript, and Tailwind CSS. It allows users to search for a city and get real-time weather information instantly.
π Features
π Search weather by city name
β³ Loading indicator while fetching data
β Error handling for invalid city names
π¨ Modern UI with Tailwind CSS gradient background
π± Fully responsive design
π οΈ Tech Stack
HTML5 β Structure
CSS3 β Styling
Tailwind CSS β UI & responsiveness
JavaScript (Vanilla JS) β Logic & API handling
π Project Structure WEATHER_SITE/ β βββ weather/ β βββ index.html # Main HTML file β βββ script.js # JavaScript logic βββ style.css # Custom styles βββ README.md # Project documentation
βοΈ How It Works
User enters a city name in the input field
Clicks Get Weather
JavaScript fetches weather data from an API
Weather details are displayed dynamically
Errors are shown if the city is not found
π§ͺ How to Run Locally
Clone the repository
git clone https://github.com/anoopcodehack/weather.git
Open index.html in your browser (No server required)
πΈ Preview
Clean UI with gradient background, centered layout, and smooth interactions.
(You can add screenshots later if you want)
π Future Improvements
π‘οΈ Temperature unit toggle (Β°C / Β°F)
π Auto-detect user location
π€οΈ Weather icons & animations
π 5-day forecast
π§ Learning Outcome
DOM manipulation using JavaScript
API fetching and error handling
Tailwind CSS utility-first styling
Building real-world mini projects
π¨βπ» Author
Anoop A GitHub: https://github.com/anoopcodehack