Giter VIP home page Giter VIP logo

pomodoro-clock's Introduction

pomodoro-clock

An aesthetic Pomodoro timer that can be set to various intervals for deep, focused work and increased productivity.

Live Demo

Image

Project Goals and requirements:

  • Utilize glassmorphism.
  • The timer must have a modifiable focus interval and rest interval.
  • The background should be a smooth, aesthetic gradient.
  • The app must be fully-responsive down to 320 px of viewport width.

Project Architecture:

  • Use Figma to wireframe the design.
  • Use React with vanilla JS.
  • Use Vite to create the app boilerplate.
  • Deploy on Vercel.

HTML structure:

  • Wrapper div for the clock as a whole for easy re-sizing.
  • Container div for clock screen.

Learning Log:

  • Glassmorphism patterns and fundamentals.
  • Using near-black instead of black and near-white instead of white for a better UI experience.
  • 'Scale' is a flexbox property.๐Ÿคฆโ€โ™‚๏ธ
  • Using vmin instead of vw or vh.
  • Prevented break and session length values from dropping below 0 using 'Math.max'
  • Using Conventional Commits
  • Inline CSS in React does not include the dash. So background-color would be backgroundColor. Styling React Using CSS
  • Playing audio files using the '.play()' function.
  • Utilizing useEffect hook in this context to get change timer from session to break.
  • Utlizing the setTimeout function to delay an action.

Future Improvements:

  • Use the approach linked in context instead to run the timer as it is far simpler. The current approach is meant for earlier versions of React.
  • Combine the play and pause buttons.

pomodoro-clock's People

Contributors

mfarabi619 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.