WeatherPro has been completely redesigned with a stunning, modern interface that addresses all key concerns: visual clarity, responsive design, dynamic themes, real API integration, and automatic location detection. Built with Next.js 15, React 19, and Tailwind CSS, WeatherPro now sets the standard for open-source weather dashboards.
- Sunny: Warm yellow-orange-red gradients
- Rainy: Cool gray-blue gradients
- Cloudy: Soft gray-blue combinations
- Stormy: Dark purple-gray atmospheres
- Snowy: Light blue-white winter themes
- Foggy: Muted gray atmospheric effects
- Staggered element animations with delays
- Fade-in, slide-up, and scale effects
- Rotating weather icons on load
- Progressive reveal of all components
- Permission Check: Uses Permissions API to check location status before requesting
- Graceful Fallback: Automatically loads default city (New York) if location is denied
- No Forced Prompts: Respects user's location preferences
- Silent Detection: Tries location silently if already granted
- Tracks permission states: detecting, granted, denied, unavailable
- User feedback with clear status banners
- Optional button to re-enable location
- App always works even without permission
- Handles API, permission, and timeout errors
- Friendly user-facing messages
- Smart fallback logic for continuous operation
- Live current weather data
- Real 5-day / 3-hour forecast
- Accurate weather icons and real-time updates
- Temperature, humidity, wind, pressure, visibility
- Real sunrise/sunset times and precipitation info
- All weather data updates on location change
- Vertical scroll with hidden scrollbar
- Smooth scroll and responsive height
- Adaptive overflow handling
- Modular structure with reusable components
- Clean layout using Tailwind utilities
- Consistent spacing, alignment, and scaling
- Real-time clock, country flags, weather cards
- Glassmorphism effects and color-coded metrics
- Retry functionality and loading spinners
- Background themes reflect real conditions
- Responsive and accessible across all devices
git clone https://github.com/MrAkbari91/WeatherPro-Nextjs.git
cd weather-proChoose your preferred package manager:
# Using Bun
bun install
# Using pnpm
pnpm install
# Using npm
npm install
# Using yarn
yarn install# Using Bun
bun dev
# Using pnpm
pnpm dev
# Using npm
npm run dev
# Using yarn
yarn devThen open http://localhost:3000 in your browser.
# Using Bun
bun build && bun start
# Using pnpm
pnpm build && pnpm start
# Using npm
npm run build && npm start
# Using yarn
yarn build && yarn start💡 Note: Make sure you have Bun installed globally if you're using it.
WeatherPro is open-source and welcomes contributions! Feel free to fork, submit pull requests, or suggest features.
Please follow best practices and open an issue for major changes.
Dhruv Akbari 📧 [email protected]
Licensed under the MIT License. You are free to use, modify, and distribute this project as you like.