Skip to content

An interactive Pomodoro timer wrote using vanilla JS and designed by me for FAC21 - Pre-course 4 Mini-project!

Notifications You must be signed in to change notification settings

fac21/sevdas-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-course 4 Mini-project - POMODORO TIMER

This week we are building Pomodoro which is a time management technique made out of spaced repetition system. Do the work, take a break.

Every 3 repetitions will create a set. After each set we will take a long break. We will also set a daily goal of 12 repetitions to hit the maximum productivity level! The timer will count down to zero and once it hits zero the bell feature will ring to notify the user either to take a break or to get focused.


User Story:

  • A “work” timer that counts down from 25 to zero minutes.
  • A second “break” timer that counts down from 5 to zero minutes.
  • Buttons to start a session, pause the timer, or cancel the session and restart.
  • Play an alarm sound to make it obvious the time is up.

How I approached it;

  • I've start styling my timer with universal selector (*) to reset default browser settings.

  • I used viewport units to set the color to the full browser height and width so the size is based on the users entire viewport.

  • To display / manipulate inner texts I used .textContent property after watched this video explaining how does it allows user input on the webpage.

  • This challenge helped me to visualize the async functions in real life scenario.

  • Aside from manipulating data of hours, minutes and seconds, I also had a chance of making use of clearInterval and setInterval.

    <blockquote>
      If you can not explain it simply, then you don't understand it well enough.
      <cite>by <q>Albert Einstein</q></cite>
    </blockquote>
    

About

An interactive Pomodoro timer wrote using vanilla JS and designed by me for FAC21 - Pre-course 4 Mini-project!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published