Skip to content

ivacodes/255

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

25-5 clock React with Hooks

Screenshot

Preview

The app is deployed on Netlify

Netlify Status

Installation & Running

Clone the repo and run install in the project folder

npm install
npm run start

Usage

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.

HowTo

Pressing on the reset button, resets the values to default: 25 minutes work time, 5 minutes break time.

Reset

During a countdown phase, the countdown timer and the current task are shown on the page title.

Page title

To stop the countdown, press stop. The value in the countdown timer resets to your specified work time.

Development

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} />

Assets

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

About

Pomodoro productivity timer built in React

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published