Skip to content

Pa1mekala37/ReactJs-Stopwatch

Repository files navigation

In this project, let's build a Stopwatch by applying the concepts we have learned till now.

Refer to the image below:


stopwatch output

Design Files

Click to view

Set Up Instructions

Click to view
  • Download dependencies by running npm install
  • Start up the app using npm start

Completion Instructions

Functionality to be added

The app must have the following functionalities

  • When the Start button is clicked, then the Stopwatch should start running
  • When the Stop button is clicked, then the Stopwatch should stop running
  • When the Reset button is clicked, then the Stopwatch should be reset to zero
Implementation Files

Use these files to complete the implementation:

  • src/components/Stopwatch/index.js
  • src/components/Stopwatch/index.css

Quick Tips

Click to view
  • You can use the box-shadow CSS property to apply the box-shadow effect to containers

      box-shadow: 0px 4px 16px 0px #bfbfbf;
    

    box shadow
  • You can use Math.floor() function that returns the largest integer less than or equal to a given number

    console.log(Math.floor(5.95)); // output: 5

Resources

Image URLs
Colors
Hex: #ffffff
Hex: #333333
Hex: #1db05f
Hex: #ef0d36
Hex: #eaa800
Font-families
  • Roboto

Things to Keep in Mind

  • All components you implement should go in the src/components directory.
  • Don't change the component folder names as those are the files being imported into the tests.
  • Do not remove the pre-filled code
  • Want to quickly review some of the concepts you’ve been learning? Take a look at the Cheat Sheets.