https://github.com/pvm-harshavardhan/weather-app
A modern, responsive weather app that provides real-time weather and air quality information for any city worldwide, featuring a clean UI, search history, and instant unit toggling built with HTML, Tailwind CSS, and JavaScript.
https://github.com/pvm-harshavardhan/weather-app
api css3 es6 frontend-web html5 javascript postman-testing rest-api restful-api smooth-animations tailwind-css ui web-development web-project wheather-app
Last synced: about 1 month ago
JSON representation
A modern, responsive weather app that provides real-time weather and air quality information for any city worldwide, featuring a clean UI, search history, and instant unit toggling built with HTML, Tailwind CSS, and JavaScript.
- Host: GitHub
- URL: https://github.com/pvm-harshavardhan/weather-app
- Owner: pvm-harshavardhan
- License: mit
- Created: 2025-07-04T10:50:14.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-04T10:54:04.000Z (12 months ago)
- Last Synced: 2025-07-04T11:45:05.065Z (12 months ago)
- Topics: api, css3, es6, frontend-web, html5, javascript, postman-testing, rest-api, restful-api, smooth-animations, tailwind-css, ui, web-development, web-project, wheather-app
- Language: HTML
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# โ
Beautiful Weather App
A modern, responsive weather app built with HTML, Tailwind CSS, and TypeScript. It instantly fetches real-time weather, air quality, and more for any city worldwide, featuring a beautiful blue-gradient glassmorphism UI with smooth animations, interactive search history, and a seamless user experience.

[](LICENSE)
[](https://developer.mozilla.org/en-US/docs/Web/HTML)
[](https://developer.mozilla.org/en-US/docs/Web/CSS)
[](https://www.typescriptlang.org/)
[](https://tailwindcss.com/)

[](https://fontawesome.com/)
[](https://git-scm.com/)
[](https://github.com/)
[](https://github.com/)
---
## โจ Features
- **๐ Global Read-Time Weather**: Get current weather, temperature, humidity, wind, pressure, and visibility for any city worldwide
- **๐ Local Time**: Displays local date and time for the selected city
- **๐ง Weather Details**: Humidity, wind speed, visibility, and pressure
- **๐ Air Quality Index**: Live AQI with color-coded backgrounds and health labels
- **๐ Search History**: Quick access to your recent city searches dropdown and easy removal.
- **๐จ Modern UI**: Elegant, glassy UI with animated transitions, glassmorphism, gradients, and smooth animations
- **๐ฑ Fully Responsive**: Works beautifully on desktop, tablet, and mobile
- **๐ Unit Toggle:** Instantly switch between Celsius and Fahrenheit.
- **โก Fast & Lightweight**: No frameworks or build tools requiredโjust open and use! Minimal dependencies, instant results
- **๐ Loading & Error Handling**: Animated loading spinner, dismissible error popups, and friendly error messages for invalid cities
## ๐ฎ Usage Guide
### Basic Controls
- **Search**: Enter a city name and click the search button or press Enter
- **Toggle Units**: Click the ยฐC/ยฐF button to switch temperature units
- **View History**: Click the History button to see recent searches
- **Select from History**: Click a city in the dropdown to reload its weather
- **Remove from History**: Click the ร next to a city to remove it from history
### Error Handling
- If a city is not found, a friendly error popup will appear
- Click the close (ร) button to dismiss error messages
## ๐ง Tech Stack
### **Technologies Used**
- **HTML5**: Semantic markup
- **Tailwind CSS**: Utility-first CSS framework via CDN
- **TypeScript**: Type-safe JavaScript for robust code
- **Font Awesome**: Icon library via CDN
- **WeatherAPI.com**: Real-time weather and air quality data
- **Git** โ Version control
- **GitHub** โ Code hosting and collaboration
## ๐ ๏ธ Getting Started
1. **Clone the repository:**
```bash
git clone https://github.com/pvm-harshavardhan/weather-app.git
```
2. **Change to the project directory:**
```bash
cd weather-app
```
3. **Compile TypeScript File:**
```bash
tsc script.ts
```
4. **Open the app:**
- Open `index.html` in your web browser.
5. **Start searching for weather!** โ
_No build step or server required!_
## ๐ Project Structure
```
weather-app/
โโโ ๐ index.html # Main HTML file with Tailwind CDN
โโโ โก script.ts # TypeScript logic for weather, UI, and history
โโโ โก script.js # Compiled JavaScript output
โโโ ๐ผ๏ธ favlogo.png # App favicon
```
## ๐ฑ Browser Compatibility
- โ
Chrome (recommended)
- โ
Firefox
- โ
Safari
- โ
Edge
- โ ๏ธ Internet Explorer (limited support)
## ๐ Troubleshooting
### **Weather Not Loading?**
1. Check your internet connection
2. Ensure WeatherAPI key is valid and not rate-limited
3. Check browser console for errors
4. Verify file paths in the code
### **Styling Issues?**
1. Make sure Tailwind CSS CDN is accessible
2. Clear browser cache
### **Mobile Issues?**
1. The app is fully responsive
2. Touch controls work on mobile devices
3. Some mobile browsers may restrict auto-focus or popups
---
## ๐ผ๏ธ Customization & Screenshots
- Replace `favlogo.png` with your own logo if desired
- Add screenshots or GIFs to highlight features and UI
- Update colors and styles in Tailwind config or HTML classes
---
## ๐ Deployment
Deploy your Weather App easily using **GitHub Pages**, **Netlify**, or **Vercel** for free.
---
## ๐ค Contributing
Contributions are welcome!
Feel free to open issues or submit pull requests to improve the app.
---
## ๐ License
This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
## ๐ Contact
Your Name - [@pvm_harsha](https://x.com/pvm_harsha)
Project Link: [Weather App Web Project](https://github.com/pvm-harshavardhan/weather-app)
---
**Made with โค๏ธ by [Your Name]**
**Enjoy the weather! โ
๐ฆ๏ธ๐**