The app is deployed on Netlify
Clone the repo and run install in the project folder
npm install
npm run start
Select your prefered work time and break time. Press play to start the countdown. After the work time is up, the break time starts. When the break is up, the whole phase work + break starts again. A bell sound plays when either of the times are up.
Pressing on the reset button, resets the values to default: 25 minutes work time, 5 minutes break time.
During a countdown phase, the countdown timer and the current task are shown on the page title.
To stop the countdown, press stop. The value in the countdown timer resets to your specified work time.
Built with functional components with hooks.
The picker component is rendered twice with different props
<Picker title='Break' defValue={5} getRes={setBreakTime} />
<Picker title='Work' defValue={25} getRes={setWorkTime} />
Selected values are passed down to the timer component
<Timer workTime={workTime} breakTime={breakTime} />
Bell sound by: "Hand Bells, G, Single.wav" by InspectorJ (www.jshaw.co.uk) of Freesound.org
Tomato icon by: https://www.flaticon.com/authors/icongeek26