Skip to content

add solution#5468

Open
cuka9955-lang wants to merge 1 commit into
mate-academy:masterfrom
cuka9955-lang:develop
Open

add solution#5468
cuka9955-lang wants to merge 1 commit into
mate-academy:masterfrom
cuka9955-lang:develop

Conversation

@cuka9955-lang

Copy link
Copy Markdown

❗️ Copy this Checklist to the Pull Request description after links, and put - [x] before each point after you checked it.

  • 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 ❗️

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review Summary

I am approving your solution because all core functional requirements for the calendar are correctly implemented: 31 days without numbers in HTML, numbers added via SCSS ::before and @for, proper flex layout with 7 columns, correct start-day and month-length modifiers, and the required hover behavior. The calendar responds correctly when changing modifiers, which satisfies the checklist items about layout being driven by calendar--start-day-* and calendar--month-length-*.

There is one BEM-related issue that you should improve next time: in page.scss you style body instead of the .page block class, even though HTML uses class="page" on <body>; for strict BEM compliance and [CHECKLIST ITEM #3], this should be .page { ... } instead of body { ... }. Also, consider extracting the 20px hover shift into a variable (e.g. $hover-shift: 20px;) to keep all important sizing values centralized and easier to adjust. Overall, your SCSS structure, use of control directives, and adherence to the calendar-related BEM rules are solid—nice work on meeting the functional and layout requirements.


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

Footnotes

  1. Rate AI review example

Comment thread src/index.html
</head>
<body>
<h1>Calendar</h1>
<body class="page">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The HTML uses class="page" on the body, but the SCSS defines styles for body directly, not for a .page block. Since the task mentions using BEM and a page block file exists, consider applying the centering styles to .page instead of body to align with the intended BEM structure.

@@ -0,0 +1,55 @@
.calendar {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates BEM and checklist item #3 ("All Typical Mistakes from BEM lesson theory are checked"): the page block is used in HTML (<body class="page">) but here you style the body element instead of the .page class. Update this to .page so the block is styled via its class, not a tag selector.

@@ -0,0 +1,7 @@
body {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The page block is used as a class on <body> in HTML, but here it is styled as the bare body element, which violates BEM and checklist item #3 about following BEM typical mistakes; use .page instead of body for this block.

Comment thread src/styles/main.scss
@@ -0,0 +1,3 @@
@import './variables';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This selector should target the BEM block class .page instead of the raw body element to align with BEM and checklist item #3 about avoiding typical BEM mistakes.

Comment thread src/styles/variables.scss
@@ -0,0 +1,5 @@
$column: 7;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The page block is used in HTML (<body class="page">), but the styles are currently attached to the raw body selector in page.scss. This violates the requirement to follow BEM and checklist item #3 about typical BEM mistakes; update page.scss to style .page instead of body so the block is controlled via its class.

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