Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Great work on this task! Your SCSS is very well-structured, and you've done an excellent job using variables, loops, and BEM. However, this requires changes because a core requirement—to center the calendar both horizontally and vertically—is not fully met. While it's centered horizontally, the fixed top margin prevents it from being centered vertically. This is happening because the $margin variable in src/styles/utils/variables.scss overrides the vertical centering from the body's flexbox properties. Please adjust this variable to remove the fixed top margin, which will allow the calendar to be perfectly centered.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
src/styles/block/calendar.scss
Outdated
|
|
||
| .calendar { | ||
| box-sizing: border-box; | ||
| margin: $margin; |
There was a problem hiding this comment.
The calendar is already centered by the flexbox properties on the body element. This margin property is redundant for horizontal centering and disrupts the vertical centering. You can remove it to ensure the calendar is perfectly in the middle of the screen as required.
src/styles/utils/variables.scss
Outdated
| @@ -0,0 +1,11 @@ | |||
| $columns: 7; | |||
| $padding: 10px; | |||
| $margin: 71px auto; | |||
There was a problem hiding this comment.
The task requires the calendar to be centered both horizontally and vertically. While the body styles in main.scss are set up to do this using flexbox, this margin value overrides the vertical centering. A top and bottom margin of 71px will not center the element on all screen sizes. Consider removing the vertical margin to allow the flexbox alignment on the parent to work correctly.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Excellent work on this iteration! You've successfully addressed the previous feedback, and the calendar is now perfectly centered both vertically and horizontally. Your SCSS is well-structured, clean, and efficiently uses variables, loops, and BEM principles. All task requirements have been met, and your solution is fully functional. I am happy to approve your submission. Great job!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
DEMO LINK
TEST REPORT LINK
reflects in changing calendar layout
Typical MistakesfromBEMlesson theory are checked.