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

stop watch 05.02.2025 #3621

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

stop watch 05.02.2025 #3621

wants to merge 3 commits into from

Conversation

YriKm
Copy link

@YriKm YriKm commented Feb 5, 2025

  • DEMO LINK

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

  • [x ] Stopwatch is centered and has the correct arrows size

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

  • [x ] 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! 😊 There are a few critical issues that need to be addressed before we can approve the pull request:

  1. Class Naming: The class stopwatch should be applied to the main stopwatch element, not the <html> tag. This is essential for the functionality and styling to work as intended.

  2. Animation Keyframes: The task specifies using from/to keyframes with the transform property and rotate. Currently, the SCSS uses rotate: 450deg; directly, which does not meet the requirement. Please adjust this to use the transform property.

  3. Variable Naming: There's a typo in the SCSS variable name $speed-variabl. It should be corrected to $speed-variable to ensure consistency and avoid confusion.

  4. BEM Modifier: Ensure that the BEM modifier speed-up is applied correctly in both HTML and SCSS. This is crucial for maintaining the code's structure and readability.

Please address these issues to fully meet the task requirements. Once these changes are made, your code will be in great shape! Keep up the great work, and don't hesitate to reach out if you need any help. 🚀

✨ 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.

@@ -1,3 +1,78 @@
$speed-variabl: 60s;

Choose a reason for hiding this comment

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

There is a typo in the variable name $speed-variabl. It should be $speed-variable to match the naming convention and avoid confusion.

position: relative;

&--speed-up {
$speed-variabl: 10s !global;

Choose a reason for hiding this comment

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

The use of !global is not necessary here. It can lead to unexpected behavior by altering the global scope. Consider removing it unless you have a specific reason to use it.

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 your progress! 🎉 While your code is mostly on the right track, there are a few critical issues that need attention:

  1. Class Naming: The class stopwatch is currently applied to the <body> tag. It should be moved to the main stopwatch element to ensure proper functionality and styling.

  2. BEM Modifier: The BEM modifier speed-up should be applied correctly. Ensure that the HTML and SCSS use this modifier consistently. In the SCSS, it should be nested under the main block class, not as a separate block.

Despite these issues, your improvements in animation keyframes, variable naming, and styling are commendable. The decision to approve this pull request is made to help you move forward with your learning. Please review the comments and address these issues in future iterations to enhance your code quality. Keep up the good work and continue learning from these experiences! 🚀

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

src/index.html Outdated
@@ -16,7 +16,11 @@
href="./styles/index.scss"
/>
</head>
<body>
<h1>Stop watch</h1>
<body class="stopwatch">

Choose a reason for hiding this comment

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

The class stopwatch should be applied to the main stopwatch element instead of the <body> tag. Please move this class to the appropriate element to ensure proper functionality and styling.

Comment on lines +29 to +31
&--speed-up {
$speed-variable: 10s;
}

Choose a reason for hiding this comment

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

The BEM modifier speed-up should be applied correctly. Ensure that the HTML and SCSS use this modifier consistently. In the SCSS, it should be nested under the main block class, not as a separate block.

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