Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stopwatch and countdown - Nacho Blanco #27

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nacho-gh-9
Copy link

As a senior frontend developer, I want to develop a web tool that could provide a stopwatch and a countdown in the same tool.
The technologies to use should be javascript and using tailwind CSS as CDN for style management.
I want to use best practices.

The web tool is composed by two different files:

index.html: On this file I should have the interface. On this interface we will have two different buttons on center.
The first button says: "Stopwatch". The second button, positioned at its right, says: "Countdown".

Stopwatch view: When the "stopwatch" button been clicked, it should be shown a chronometer with decimals on center with two buttons
bellow it for clear and start the chronometer. The "clear" button should reset the chronometer.
The "start" button should start to count the chronometer from the previous value.
At the bottom of the two buttons, we will have a entire row with blue background with one button that says "Back".
This button should go back to the previous view.

Countdown view: When this button has been clicked, it should be shown a chronometer with decimals on center with the same design than the attached file.
Bellow of the chronometer, we will have ten buttons with green color.
This buttons should print numbers from 0 to 9 separated in two rows.
After the last button of the first row, we should have a green button that print: "Set".
At final of the last button in second row, we should have another button exactly bellow of the button "Set" that says: "Clear".
The "set" button should set the chronometer above it with the number selected. After, this chronometer should bo back like a countdown.
The "clear" button should reset the countdown.

script.js. On this file we should have all frontend logic already described separated by components.
This logic should developed using best practices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants