This project is an Angular application that visualizes a series of steps in a timeline format. Each step is represented by a circle on a progress bar. The application allows users to mark steps as complete, and it dynamically updates the progress bar and percentage of completion. Additionally, it includes a feature that visualizes deadlines with a color gradient indicating time progression.
- Step Representation: Circles represent each step in the progress bar.
- Completion Tracking: A button to mark each step as complete.
- Progress Percentage: Displays the percentage of steps completed.
- Deadline Visualization: Progress bar shows time progression with color gradients:
- Green: Indicates initial phase within the deadline.
- Green to Orange Gradient: Indicates middle phase as the deadline approaches.
- Green to Orange to Red Gradient: Indicates the final phase after the deadline has passed.
- Step Information Display: Shows details or requirements of the current step below the timeline.
-
Clone the repository:
git clone https://github.com/yourusername/timeline-project.git cd timeline-project -
Install dependencies:
npm install
-
Run the application:
ng serve
Navigate to
http://localhost:4200/in your browser to see the application.
-
Adding Steps:
- Input the steps into the application. Each step will be represented by a circle on the progress bar.
-
Marking Steps as Complete:
- Click the "Mark as Complete" button to complete a step. The progress bar and percentage will update accordingly.
-
Viewing Step Information:
- The application will display information about the current step below the timeline. This could include data related to the step or what is needed to complete it.
-
Deadline Visualization:
- The progress bar will visually indicate the time progression for each step with color gradients:
- A third of the time passed: Green color.
- Two-thirds of the time passed: Green to Orange gradient.
- After the deadline: Green, Orange, and Red gradient until the step is marked as complete.
- The progress bar will visually indicate the time progression for each step with color gradients:
src/app: Contains the main application files.app.component.ts: Main component logic.app.component.html: Main component template.app.component.css: Main component styles.timeline.component.ts: Component logic for the progress bar.timeline.component.html: Template for the progress bar.timeline.component.css: Styles for the progress bar.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Commit your changes (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.
