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

[TECH ED] Build alarmclock app #26

Open
6 tasks
SallyMcGrath opened this issue May 14, 2024 · 0 comments
Open
6 tasks

[TECH ED] Build alarmclock app #26

SallyMcGrath opened this issue May 14, 2024 · 0 comments
Labels
📅 JS2 Work assigned during JS2 🏕 Priority Mandatory This work is expected 🐂 Size Medium 1-4 hours 📅 Sprint 3 Assigned during Sprint 3 of this module

Comments

@SallyMcGrath
Copy link
Member

SallyMcGrath commented May 14, 2024

Link to the coursework

https://github.com/CodeYourFuture/Module-Data-Groups/tree/main/Sprint-3/alarmclock

Why are we doing this?

These challenges are designed to develop your problem-solving skills.

Acceptance criteria

  • Given the user has entered a number in the input field
    When the user clicks the "Set Alarm" button
    Then the "Time Remaining" title should update to show the entered number in mm:ss format

  • Given the alarm is set with a valid time
    When one second passes
    Then the "Time Remaining" title should decrement by 1 second

  • Given the alarm is set with a time of 00:00
    When the timer reaches 00:00
    Then the alarm sound should play continuously

  • Given the alarm sound is currently playing
    When the user clicks the "Stop Alarm" button
    Then the alarm sound should stop playing

  • Given the alarm is set with a time of 00:10
    When the timer reaches 00:00
    Then the background color should change
    And the alarm sound should play

  • Given the user has not set an alarm
    When the page first loads
    Then the "Time Remaining" title should show 00:00
    And no alarm sound should play

Maximum time in hours

4

How to get help

Share your blockers in your class channel
https://programming.codeyourfuture.io/guides/getting-help/asking-questions/

How to submit

  1. Fork to your Github account.
  2. Make a branch for this project.
  3. Make regular small commits in this branch with clear messages.
  4. When you are ready, open a PR to the CYF repo, following the instructions in the PR template.
gitGraph
    commit id: "start"
    branch feature/alarmclock
    commit id: "skeleton page code"
    commit id: "Fonts and colours"
    commit id: "mobile layout"
    commit id: "lighthouse audit revisions mobile"
    commit id: "desktop layout"
    commit id: "lighthouse audit revisions desktop"
    checkout main
    merge feature/alarmclock
Loading

There are several projects in this repo. Make a new branch based on the main branch for each project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📅 JS2 Work assigned during JS2 🏕 Priority Mandatory This work is expected 🐂 Size Medium 1-4 hours 📅 Sprint 3 Assigned during Sprint 3 of this module
Projects
None yet
Development

No branches or pull requests

1 participant