-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
base: master
Are you sure you want to change the base?
stopwatch #3619
Conversation
There was a problem hiding this 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.
src/styles/blocks/stopwatch.scss
Outdated
&--speed-up { | ||
.stopwatch__minutes-hand { | ||
animation: time-anim #{60s * 10} steps(60) 0s infinite; |
There was a problem hiding this comment.
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.
There was a problem hiding this 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 to600s
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job 👍
DEMO LINK
Keyframes implemented using from/to + transform with rotate property
Stopwatch is centered and has the correct arrows size
All
Typical Mistakes
from theBEM
lesson theory are checked.Code follows all the Code Style Rules ❗️