-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Develop #3935
base: master
Are you sure you want to change the base?
Develop #3935
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! 😊 While your code meets most of the task requirements, there are a few critical issues that need to be addressed before we can approve the pull request:
-
SCSS File Location and Naming: The task specifies that styles should be written in
src/styles/main.scss
, but currently, they are insrc/styles/index.scss
. Please move the SCSS code to the correct file and ensure the naming aligns with the task requirements. -
Margin Calculation: There seems to be a potential issue with the
margin-left
calculation for the first day of the week. Please verify that this calculation is correct and aligns with your design intentions. -
Checklist Compliance: Ensure that typical BEM mistakes are checked and that your code follows the provided code style rules. Document these checks in your pull request description.
Once these issues are resolved, your code will be in great shape! Keep up the great work, and feel free to reach out if you have any questions or need further assistance. 🚀
✨ 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/index.scss
Outdated
margin-left: ( | ||
$calendar-day-width * ($i) + ($calendar-day-width * ($i) / 100) |
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 calculation for margin-left
seems to be adding an extra percentage of the calendar-day-width
. Ensure this is intentional and aligns with your design requirements. If not, consider revising the calculation.
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
Congratulations on your progress! 🎉 Your code now meets the task requirements and constraints, and the previous issues have been addressed effectively. Here are some key points and suggestions for further improvement:
-
SCSS File Location and Naming: You've correctly placed your styles in
src/styles/main.scss
. Great job! -
Margin Calculation: The
margin-left
calculation for the first day of the week is implemented using a variable and appears to be correct. However, ensure that the calculation aligns with your design intentions, as there seems to be an extra percentage-based margin. Double-check this to avoid layout issues. -
BEM and Code Style: Your code adheres to BEM conventions, and the style rules are followed as per the task requirements. Keep up the good work!
-
Link to Compiled CSS: The
href
attribute in your HTML file is currently pointing tomain.scss
, which is incorrect. It should link to the compiled CSS file, typicallymain.css
. Make sure your build process compiles SCSS to CSS and update the link accordingly.
Overall, you've done a fantastic job resolving the previous issues. Remember to address the critical points mentioned to enhance your code quality further. This decision is made to help you move forward with your learning journey. Keep improving and learning from these experiences! 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
@@ -9,10 +9,42 @@ | |||
<title>Calendar</title> | |||
<link | |||
rel="stylesheet" | |||
href="styles/index.scss" | |||
href="styles/main.scss" |
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 href
attribute is pointing to main.scss
, which is incorrect. It should point to the compiled CSS file, typically main.css
, after the SCSS is processed. Ensure that your build process compiles SCSS to CSS and update the link accordingly.
margin-left: ( | ||
$calendar-day-width * ($i) + ($calendar-day-width * ($i) / 100) |
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 margin-left
calculation for the first day of the week seems to be adding an extra percentage-based margin. Verify if this is intentional and aligns with your design intentions. If not, consider adjusting the calculation.
reflects in changing calendar layout
Typical Mistakes
fromBEM
lesson theory are checked.