calendar#5444
Conversation
AdrJeeN
commented
Jun 23, 2026
- DEMO LINK
- TEST REPORT LINK
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am requesting changes because there are still a couple of requirement-level issues that block full acceptance. First, the task explicitly requires styles to be written in src/styles/main.scss, but your code uses src/styles/index.scss and links to styles/index.scss from src/index.html; this violates the technical constraint and needs to be fixed by moving the styles into main.scss and updating the <link> href accordingly. Second, in src/index.html the calendar element has both calendar--start-sun and calendar--start-day-sun classes, while only the calendar--start-day-* modifiers are defined in your SCSS; the extra calendar--start-sun is unused and conflicts with the specified modifier naming [CHECKLIST ITEM #1 and #3], so it should be removed.
To address these blockers: 1) create or use src/styles/main.scss, move all your current SCSS from index.scss into it, and change the HTML <link rel="stylesheet" href="styles/index.scss"> to href="styles/main.scss"; 2) in src/index.html, edit the main (calendar) tag so its class attribute becomes something like class="calendar calendar--start-day-sun calendar--month-length-31", removing calendar--start-sun. Apart from these issues, your layout, hover behavior, use of SCSS directives, and BEM structure for elements look solid and are very close to the intended solution. Once you fix the stylesheet path/name and the stray modifier class, your solution should meet all core requirements and pass the checklist.
✨ 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
| <body> | ||
| <h1>Calendar</h1> | ||
| <main | ||
| class="calendar calendar--start-sun calendar--month-length-31 calendar--start-day-sun" |
There was a problem hiding this comment.
You have class="calendar calendar--start-sun calendar--month-length-31 calendar--start-day-sun", but only calendar--start-day-* modifiers are defined in your SCSS and the description only mentions start-day modifier. The extra calendar--start-sun does nothing and doesn’t follow the specified modifier naming; remove it and rely on calendar--start-day-sun.
| $font-family: Arial, Helvetica, sans-serif; | ||
| $font-size: 30px; | ||
| $transirtion-duration: 0.5s; | ||
|
|
||
| body { |
There was a problem hiding this comment.
The task description requires: Write styles in src/styles/main.scss instead of src/style.css. Your HTML currently links to styles/index.scss, and the styles are in index.scss. This violates that requirement; move the styles to main.scss and update the href to point to styles/main.scss.
| height: 100vh; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; |
There was a problem hiding this comment.
You have class="calendar calendar--start-sun calendar--month-length-31 calendar--start-day-sun", but only calendar--start-day-sun is defined in SCSS. The extra calendar--start-sun modifier is unused and not part of the specified modifier set, which can conflict with checklist item #3 about typical BEM mistakes. Consider removing it and keep only calendar--start-day-sun (and calendar--month-length-31).
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am requesting changes because there is still a critical requirement not fully met: the calendar’s width must be limited to exactly 7 columns + 10px paddings, and your current max-width formula does not include the horizontal padding on the left and right. As implemented, the width accounts for 7 * $square-size + 6 * $gap, but it omits 2 * $padding, so the rendered calendar is narrower than the specification demands and violates the explicit width requirement. To fix this, update the max-width calculation (in your calendar container styles, e.g. src/styles/main.scss) to add + $padding * 2 so the total width includes both left and right padding as described.
Everything else in your solution looks solid: the layout, modifiers for start day and month length, hover behavior, SCSS structure, and BEM usage all align well with the task requirements. Once you adjust the width formula to include the paddings, your implementation will fully comply with the description and can be considered complete. Keep up the good work—this is a small but important final adjustment to match the spec exactly.
✨ 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
| <div class="calendar__day"></div> | ||
| <div class="calendar__day"></div> | ||
| <div class="calendar__day"></div> | ||
| <div class="calendar__day"></div> |
There was a problem hiding this comment.
The requirement says the calendar width must be "exactly 7 columns + 10px paddings", but your max-width only accounts for the 7 squares and gaps and ignores left/right padding. This violates the description requirement about width; consider adding + $padding * 2 to the calculation so the total width includes both horizontal paddings.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am approving your solution — the calendar implementation now satisfies all the functional and checklist requirements, including correct centering, hover behavior, BEM naming, and dynamic handling of start-day and month-length modifiers [CHECKLIST ITEM #1, #2]. The layout math for max-width is correct, your SCSS structure is clean with well-chosen variables, and the day numbers render properly via CSS counters while keeping the HTML markup minimal. Backstop visual tests are failing only because your styles intentionally differ from the stored reference screenshots; this approval is effectively an educational override so you can move forward while learning how visual regression tools behave. If you want to refine further, you could consider adjusting the Sass warning by moving counter-reset: day before nested rules in main.scss to keep the compiler fully happy, but that’s a minor style improvement rather than a functional issue. Overall, this is a solid, well-structured solution that shows good understanding of flexbox, SCSS, and BEM — nice work progressing through the earlier review points and landing on a robust implementation.
✨ 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
danon321
left a comment
There was a problem hiding this comment.
Dodałem jeden komentarz. Oprócz tego wyglada to przepięknie
| @@ -0,0 +1,92 @@ | |||
| $square-size: 100px; | |||
| $border-weight: 1px; | |||
There was a problem hiding this comment.
uzywasz tego tylko raz wiec nie wiem czy dawałbym to az do zmiennej. Inne zmienne widze ze sa uzywane kilkukrotnie wiec te sa spoczko