This is a React-based 360° Virtual Tour application that allows users to explore different locations through interactive panoramic images with customizable hotspots.
- 360° Panoramic Image Viewing
- Interactive Hotspots
- Multiple Location Navigation
- Responsive Design
Before you begin, ensure you have met the following requirements:
- Node.js (v14.0.0 or later)
- npm (v6.0.0 or later)
- Clone the repository
git clone https://github.com/Razee4315/nutech-tour.git
cd nutech-tour
- Install dependencies
npm install --legacy-peer-deps
To run the project locally:
npm start
The application will open in your default browser at http://localhost:3000
Hotspots are interactive points on a 360° panoramic image that users can click to:
- Navigate between scenes
- Display information
- Trigger custom actions
-
Custom Hotspots
- Allow custom interactions
- Can navigate between images
- Defined with
type: "custom"
-
Info Hotspots
- Display informational alerts
- Defined with
type: "info"
{
pitch: -10, // Vertical position
yaw: 0, // Horizontal position
type: "custom",
text: "Go to Second Image",
handleClick: (setCurrentLocation) => {
setCurrentLocation(1); // Change to the second location
}
}
src/components/TourView.js
: Main component for 360° tourpublic/images/
: Store your 360° panoramic images heresrc/styles/
: Additional styling (if needed)
- Ensure all images are in the correct format (jpg/png)
- Check browser console for any errors
- Verify Node.js and npm versions
- React
- Pannellum React
- Styled Components
Our Team members:
- Saqlain Abbas (saqlainrazee@gmail.com)
- Aleena Tahir (aleenatahirf23@nutech.edu.pk)
- Aena Habib (aenahabibf23@nutech.edu.pk)
Project Link: https://razee4315.github.io/nutech-tour/