Skip to content

SarahE-Dev/weather-dashboard

Repository files navigation

Purple Weather Dashboard

A beautiful, responsive weather dashboard application built with Next.js and Tailwind CSS.

Purple Weather Dashboard

Check out the live application here.

Features

  • 🌀️ 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

Technologies Used

Getting Started

Prerequisites

  • Node.js 18.x or higher
  • npm or yarn

Installation

  1. Clone the repository:
git clone https://github.com/SarahE-Dev/weather-dashboard.git
cd weather-dashboard
  1. Install dependencies:
npm install
# or
yarn install
  1. 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
  1. Start the development server:
npm run dev
# or
yarn dev
  1. Open http://localhost:3000 in your browser to see the application.

Usage

  • 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

Project Structure

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

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Weather data provided by [Weather API Provider]
  • Icons from Lucide React