A beautiful, sleek, and responsive weather application built with React, Vite, and Framer Motion. Features a premium glassmorphic UI with dynamic themes based on weather conditions.
Live Demo : https://weather-app-basic-kohl.vercel.app/
- 📍 Geolocation & Persistence: Automatically detects your city and remembers it for your next visit using LocalStorage.
- 🔍 Global Search: Search for weather information in any city worldwide.
- 📅 5-Day Forecast: Get a glimpse of the week ahead with detailed daily predictions.
- 🌡️ Unit Conversion: Seamlessly switch between Celsius and Fahrenheit.
- 🌅 Astronomy Details: Real-time Sunrise and Sunset times for any location.
- 💎 Glassmorphic Design: A modern, premium aesthetic with a custom-themed scrollbar.
- ✨ Skeleton Loading: Professional loading states with MUI Skeletons for a smooth experience.
- ☁️ Dynamic Imagery: Components adapt their appearance based on the current weather type.
- React (Vite template)
- Material UI (Components & Styling)
- Framer Motion (Animations)
- Lucide React (Beautiful Icons)
- OpenWeatherMap API (Data Source)
- Node.js (v16.x or later)
- An API key from OpenWeatherMap
-
Clone the repository:
git clone https://github.com/darshan02parmar/Weather-app.git cd Weather-app/Weather-app -
Install dependencies:
npm install
-
Set up environment variables: Create a
.envfile in the root directory and add your API key:VITE_WEATHER_API_KEY=your_api_key_here
-
Run the development server:
npm run dev
Built with ❤️ for a better weather experience.