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

added changes in clock #3592

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

added changes in clock #3592

wants to merge 2 commits into from

Conversation

kbnd
Copy link

@kbnd kbnd commented Jan 21, 2025

No description provided.

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 task! 😊 There are a few critical issues that need to be addressed before we can approve the pull request. The animation duration for the minute hand is not set correctly, which affects the functionality of the stopwatch. Additionally, the keyframes should use from/to instead of 0%/100% to meet the task requirements. Please make these changes, and you'll be all set! Keep up the great 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.


&__hand--minutes {
transform-origin: bottom;
animation: hand-rotate calc($minute-duration * 60) steps(60) 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 minute hand is calculated as calc($minute-duration * 60), which seems to be intended to represent one hour. However, $minute-duration is already defined as 60s for normal speed, making this calculation incorrect for a minute hand. Consider using $minute-duration directly for the seconds hand and a different variable for the minute hand to represent one hour.

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.

Great job on addressing the previous issues with your code! 🎉 The HTML file is well-structured, and the SCSS file is linked correctly, which is essential for the task. You've successfully used from/to in your keyframes, aligning with the task requirements. However, please review the animation duration for the minute hand, as it is currently set to 3600s, which might not align with the intended functionality of the stopwatch. It's crucial to ensure that this duration matches the task's requirements for the stopwatch to function correctly.

Remember, addressing these critical issues will help you avoid similar problems in the future. Keep up the good work, and continue learning from these experiences to improve your coding skills! 🚀

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


&__hand--minutes {
transform-origin: bottom;
animation: hand-rotate 3600s linear 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 minute hand is set to 3600s, which seems incorrect given the task requirements. Ensure that the duration aligns with the intended functionality of the stopwatch.

Comment on lines +58 to +65
@keyframes hand-rotate {
from {
transform: rotate(0deg);
}

to {
transform: rotate(360deg);
}

Choose a reason for hiding this comment

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

The keyframes are correctly using from/to as per the task requirements. Ensure that this is intentional and aligns with the desired animation behavior.

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