Skip to content

rbrown29/trailviewdashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trail View Dashboard

This project is a web-based application for exploring hiking trails like the Cascade Head Trail. It provides detailed trail information, interactive maps, elevation charts, weather data, and images of the trail.

Trail

Live Sites:

Cascade Head Trail

Angels Rest Trail

Smith Rock Trail

Eagle Creek Trail

Multnomah-Wahkeena Loop

Mirror Lake Trail

Cape Perpetua Trail

Garfield Peak Trail

Cape Kiwanda Trail

Tamolitch Blue Pool Trail

Opal Creek Trail

Cape Falcon Trail

Adams Glacier Trail

Battle Ax Mountain Trail

Belknap Crater Trail

Blue Basin Trail

Cache Lake Trail

Ice Lake Trail

Features

1. Trail Information

  • Displays key trail details such as:
  • Name, length, elevation, and location.
  • Difficulty level, seasons, and hike type.
  • Comprehensive description of the trail.

2. Interactive Map

  • Mapbox integration for visualizing the trail.
  • Features include:
    • Hillshading and terrain view.
    • Interactive popups displaying distance and elevation.
    • Hover effects to highlight specific trail points.

3. Elevation Chart

  • Chart.js integration to display elevation profiles.
  • Interactive chart synced with the map to show corresponding points.

4. Weather Component

  • Fetches real-time weather data based on the trail's location.
  • Displays current temperature, weather conditions, and more.

5. Trail Images

  • Gallery of trail images organized in rows for easy viewing.
  • Responsive design to adapt to different screen sizes.

Project Structure

/src
  ├── assets
  │   └── images
  │       └── cascadeHead
  ├── components
  │   ├── Cards.jsx
  │   ├── Dashboard.jsx
  │   ├── Footer.jsx
  │   ├── Header.jsx
  │   ├── StaticMap.jsx
  │   ├── ElevationChart.jsx
  │   ├── Weather.jsx
  │   └── Images.jsx
  ├── data
  │   ├── cardLinks.js
  │   ├── links.js
  │   └── trails.js
  ├── utils
  │   └── parseTCX.js
  ├── App.jsx
  ├── main.jsx
  └── styles.css

Environment Variables

Create a .env file in the root directory and add the following:

VITE_APP_MAPBOX_ACCESS_TOKEN=your_mapbox_token
VITE_APP_WEATHER_API_KEY=your_openweathermap_api_key

Replace your_mapbox_token and your_openweathermap_api_key with your actual API keys.

Scripts

  • npm run dev - Start the development server.
  • npm run build - Build the application for production.
  • npm run preview - Preview the production build locally.

Technologies Used

  • React: Frontend framework.
  • Vite: Fast build tool.
  • Mapbox GL JS: Interactive map integration.
  • Chart.js: Elevation chart.
  • OpenWeatherMap API: Real-time weather data.
  • CSS: Custom styles with responsiveness.

Deployment

  1. Build the application:

    npm run build
  2. Deploy the contents of the dist folder to a hosting platform like Netlify, Vercel, or GitHub Pages.


Video

Trail.mp4


ScreenShots

Trail

Trail

Trail

Trail

Trail


Happy Hiking! 🌲🏔️

About

Hike view dashboard

Resources

Stars

Watchers

Forks

Packages

No packages published