This React app calculates and visualizes the progress of the current year based on elapsed time. It dynamically updates a progress bar and displays the percentage of the year that has passed.
- Real-time tracking of the progress of the current year.
- Smoothly increments the progress value every 50 milliseconds until the target value is reached.
- Updates the progress every second for accurate tracking.
- Utilizes React's
useEffect
anduseState
for managing state and side effects. - Two intervals are employed: one for gradual incrementation of the progress value, and another for updating it every second.
- The progress bar is displayed using a custom
Progress
component.
- Clone this repository
- Run the dev server command
git clone github.com/kevintherm/year-progress.git
cd year-progress-bar
npm install
npm run dev # press o then enter to open it in browser
- UI is built using React, tailwindcss, shacdn/ui