Skip to content

Created calendar#5474

Open
Dimeydimonov wants to merge 2 commits into
mate-academy:masterfrom
Dimeydimonov:master
Open

Created calendar#5474
Dimeydimonov wants to merge 2 commits into
mate-academy:masterfrom
Dimeydimonov:master

Conversation

@Dimeydimonov

Copy link
Copy Markdown

No description provided.

@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 requesting changes because one core task requirement is still not met, even though the calendar itself works correctly. The instructions explicitly say to put the main styles in src/styles/main.scss and link that file from src/index.html, but your project currently uses src/styles/index.scss and links ./styles/index.scss in the HTML. This is a critical, blocking mismatch with the specification, since file structure and naming are part of the requirements, not just a style preference.

To fix this:

  • Rename src/styles/index.scss to src/styles/main.scss (or move the content into main.scss).
  • In src/index.html, update the <link> tag href to ./styles/main.scss instead of ./styles/index.scss.

All other aspects—BEM structure, SCSS usage, modifiers for start day and month length, hover behavior, and generated day numbers—are implemented well, so once you align the stylesheet name and reference, your solution will fully match the task requirements. Keep the rest of your styling logic as is; this is purely a filename and link correction.


✨ 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

Comment thread src/index.html Outdated
<link
rel="stylesheet"
href="styles/index.scss"
href="./styles/index.scss"

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 task requires: "Write styles in src/styles/main.scss instead of src/style.css". Here you are linking ./styles/index.scss and your stylesheet file is also named index.scss. To match the requirement, rename the file to main.scss and update this href accordingly.

Comment thread src/styles/main.scss
margin: 0;
display: flex;
align-items: center;
justify-content: center;

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 task requires: "Write styles in src/styles/main.scss instead of src/style.css". In your project you use index.scss and link to it here. To comply with the requirement, move/rename your styles to main.scss and update the href to ./styles/main.scss.

Comment thread src/styles/variables.scss
$grid-padding: 10px;
$day-bg: #eee;
$hover-bg: #ffbfcb;
$border-color: #000;

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 task description explicitly requires: "Write styles in src/styles/main.scss instead of src/style.css", but this HTML currently links ./styles/index.scss. You should place your main styles in main.scss and update the href to point to that file to comply with the requirement.

@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 it cleanly satisfies the functional requirements and the checklist items for this task. The calendar is correctly centered with flexbox, uses 31 .calendar__day elements without hardcoded numbers in the HTML, and day numbers are generated via SCSS using ::before and an @for loop. You’ve implemented BEM properly with a calendar block, calendar__day elements, and calendar--start-day-* / calendar--month-length-* modifiers that correctly control the first-day offset and month length. The hover behavior (pointer cursor, pink #FFBFCB background, 20px lift, 0.5s transition) matches the specification and is configured via variables rather than repeated literals. The layout width, gaps, and offsets are computed from SCSS variables, and @each / @for are used appropriately to generate modifiers and rules. No critical or blocking issues are apparent, and changing the modifiers in HTML behaves as required, so your implementation is accepted as complete. Great job using SCSS features and BEM consistently to build a flexible calendar layout.


✨ 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