Skip to content

completed calendar#5216

Open
fikigai wants to merge 2 commits intomate-academy:masterfrom
fikigai:develop
Open

completed calendar#5216
fikigai wants to merge 2 commits intomate-academy:masterfrom
fikigai:develop

Conversation

@fikigai
Copy link

@fikigai fikigai commented Feb 25, 2026

DEMO LINK
TEST REPORT LINK

  • Changing 'month-lengh' and 'start-day' modifier in the code element
    reflects in changing calendar layout
  • Each day has no modifiers, only class (eg. calendar__day)
  • All Typical Mistakes from BEM lesson theory are checked.
  • 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.

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

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example


.calendar {
box-sizing: border-box;
margin: $margin;

Choose a reason for hiding this comment

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

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.

@@ -0,0 +1,11 @@
$columns: 7;
$padding: 10px;
$margin: 71px auto;

Choose a reason for hiding this comment

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

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.

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

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

Footnotes

  1. Rate AI review example

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