A modern, responsive weather application that provides real-time weather information for any location worldwide.
This weather app allows users to search for weather conditions in any city around the world. It displays current temperature, weather description, humidity levels, and wind speed with a clean, user-friendly interface.
- Real-time Weather Data: Get current weather information from OpenWeatherMap API
- Location Search: Search for weather by city name
- Responsive Design: Works seamlessly on desktop and mobile devices
- Weather Icons: Dynamic weather icons that change based on current conditions
- Error Handling: Displays friendly error message for invalid locations
- Smooth Animations: Fade-in animations for better user experience
- Modern UI: Clean, minimalist design with a professional color scheme
- HTML5 - Structure and markup
- CSS3 - Styling, animations, and responsive design
- JavaScript (ES6+) - Dynamic functionality and API integration
- OpenWeatherMap API - Weather data source
- Font Awesome - Icons for weather conditions and UI elements
- Google Fonts (Roboto) - Typography
- A modern web browser
- Internet connection for API calls
- OpenWeatherMap API key (included in the project)
-
Clone the repository:
git clone https://github.com/Theesamkos/Weather-app.git -
Navigate to the project directory:
cd Weather-app -
Open
index.htmlin your web browser or use a local server:# Using Python (if installed) python -m http.server 8000 # Using Node.js (if installed) npx http-server
- Search for a Location: Enter any city name in the search box
- Click Search: Press the search button or hit Enter
- View Weather: The app will display:
- Current temperature in Celsius
- Weather description
- Humidity percentage
- Wind speed in km/h
- Weather icon representing current conditions
- Dark Blue Theme: Professional color scheme with
#06283Dprimary color - Responsive Layout: Adapts to different screen sizes
- Smooth Transitions: 0.6s ease-out animations
- Interactive Elements: Hover effects on buttons
- Visual Feedback: Loading states and error messages
The app displays different icons for various weather conditions:
- ☀️ Clear skies
- 🌧️ Rain
- ❄️ Snow
- ☁️ Clouds
- 🌫️ Haze
- And more...
Weather-app/
│
├── index.html # Main HTML file
├── style.css # CSS styles and animations
├── index.js # JavaScript functionality
└── README.md # Project documentation
The app uses OpenWeatherMap API for weather data. The API key is already configured in the project. If you need to use your own API key:
- Sign up at OpenWeatherMap
- Get your free API key
- Replace the
APIKeyvariable inindex.js
Contributions are welcome! If you'd like to contribute:
- Fork the project
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
Theesamkos
- GitHub: @Theesamkos
- Email: samorthtech@gmail.com
- OpenWeatherMap for providing the weather API
- Font Awesome for the beautiful icons
- Google Fonts for the Roboto font family
⭐ If you found this project helpful, please give it a star on GitHub!