Skip to content

socweekendprojects/pomodoro-timer

Repository files navigation

Pomodoro timer

A simple timer app to help you boost your productivity. Working is cycles of 25min work 5min break and after 3 cycles of work you get a longer 15min break. Click for Demo.


Main Learning Points

  • Practised Tailwind CSS
  • Used neumorphic styling
  • Used useRef hook
  • Used setInterval & clearInterval
  • The main problem we faced was with clearInterval onClick. It took a lot of digging into google forums but the issue we had was the pause button kept on resetting so useRef seemed to do the trick. 'useRef is basically useState but React won't render component when ref changes nor ref value will change when render happens'. Solution found in https://www.reddit.com/r/reactjs/comments/y1aorm/clear_interval_is_not_working_on_onclick/

Stretch Goals

  • Allow the user to select number of work cycles and change length of breaks
  • Write tests

Built with

  • Next.js
  • Tailwind CSS

Installation

  1. git clone https://github.com/socweekendprojects/pomodoro-timer.git

  2. npm i & npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •