A beautiful, responsive weather dashboard application built with Next.js and Tailwind CSS.
Check out the live application here.
- π€οΈ Real-time weather data display
- π± Fully responsive design with a purple theme
- π Search for weather by location
- π Detailed weather metrics (temperature, humidity, wind speed, etc.)
- π‘οΈ Temperature unit conversion (Celsius/Fahrenheit)
- π Weather forecast for upcoming days
- Next.js - React framework
- Tailwind CSS - Utility-first CSS framework
- shadcn/ui - UI component library
- Weather API integration
- Node.js 18.x or higher
- npm or yarn
- Clone the repository:
git clone https://github.com/SarahE-Dev/weather-dashboard.git
cd weather-dashboard
- Install dependencies:
npm install
# or
yarn install
- Set up environment variables:
Create a .env.local
file in the root directory and add your weather API key:
NEXT_PUBLIC_WEATHER_API_KEY=your_api_key_here
- Start the development server:
npm run dev
# or
yarn dev
- Open http://localhost:3000 in your browser to see the application.
- Enter a city name or location in the search bar to get weather information
- Toggle between Celsius and Fahrenheit using the temperature unit switch
- View detailed weather metrics in the dashboard cards
- Check the forecast for upcoming days
purple-weather-dashboard/
βββ app/ # Next.js App Router
β βββ components/ # Shared components
β βββ layout.tsx # Root layout
β βββ page.tsx # Home page
βββ components/ # UI components
β βββ ui/ # shadcn/ui components
βββ hooks/ # Custom React hooks
βββ lib/ # Utility functions
βββ public/ # Static assets
βββ ... # Configuration files
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Weather data provided by [Weather API Provider]
- Icons from Lucide React