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 #3619

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

stopwatch #3619

wants to merge 3 commits into from

Conversation

dvdmsk
Copy link

@dvdmsk dvdmsk commented Feb 4, 2025

  • DEMO LINK

  • Keyframes implemented using from/to + transform with rotate property

  • Stopwatch is centered and has the correct arrows size

  • All Typical Mistakes from the BEM lesson theory are checked.

  • Code follows all the Code Style Rules ❗️

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Thank you for your hard work on this project! 🎉 You've done a great job with the structure and styling of the stopwatch component. However, there's a critical issue with the animation duration for the speed-up modifier that needs to be addressed before we can proceed. The duration should be set to 600s directly to ensure the animation works as intended. Additionally, consider renaming the variable $widthSecunde to $widthSecond for clarity. Once these changes are made, your code will be in great shape! Keep up the excellent work! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

Comment on lines 48 to 50
&--speed-up {
.stopwatch__minutes-hand {
animation: time-anim #{60s * 10} steps(60) 0s infinite;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The animation duration for the .stopwatch--speed-up .stopwatch__minutes-hand is calculated as #{60s * 10}, which results in a string interpolation issue. Ensure that the calculation is done correctly to produce a valid time value, such as 600s directly.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Great job on organizing the HTML structure and linking the SCSS files correctly! 🎉 Your implementation is mostly well-structured and follows standard practices. However, there are a few critical issues that need attention:

  • Animation Duration: Ensure that the animation duration for the speed-up modifier is set to 600s directly for the minutes hand to ensure the animation works as intended. This is crucial for the functionality of the stopwatch component.

  • Variable Naming: The variable $widthSecunde has been renamed to $widthSecond, which improves clarity. Well done on addressing this!

Overall, your code meets the task requirements and constraints. The decision to approve is made to help you move forward with your learning. Please review the comments and address the critical issues to improve your code. Keep up the good work and continue learning from your experiences! 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨


&--speed-up {
.stopwatch__minutes-hand {
animation: time-anim 600s steps(60) 0s infinite;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the animation duration for the speed-up modifier is set to 600s directly, as previously mentioned. This is crucial for the animation to function correctly.

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍

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.

3 participants