This project simulates a race track where participants (represented by SVG icons) move based on their speed and time. The application is built using React.
-
Clone the repository:
git clone <repository_url>
-
Navigate to the project directory:
cd Tech-Eagle-Assignment
-
Install dependencies:
npm install
-
Start the development server:
npm start
The application will be accessible at
http://localhost:3000
.
-
Home Page (
/
):- Add participants by providing their name, speed, and start time.
- View the list of participants with their details.
- Click "Start Race" to navigate to the race track.
-
Race Track (
/race-track
):- Observe the progress of participants in real-time.
- The counter indicates the elapsed time.
- The race ends when all participants reach a distance of 400 meters.
-
Modal Component (`/components/Modal.jsx):
- Displays the race results, including participant positions, names, speeds, start times, and end times.
- Provides options to restart the race or go back to the home page.
- Allows users to add participants and view the list.
- Simulates the race track and updates participant progress in real-time.
- Displays race results and options to restart or go back.
- SVG representation of a person, used to visualize participants.