Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add task solution #3903

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add task solution #3903

wants to merge 1 commit into from

Conversation

kovaltar
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • [ x] Changing 'month-lengh' and 'start-day' modifier in the code element
    reflects in changing calendar layout

  • [ x] Each day has no modifiers, only class (eg. calendar__day)

  • [ x] All Typical Mistakes from BEM lesson theory are checked.

  • [ x] 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.

Great job on implementing the calendar with SCSS and BEM methodology! 🎉 The code meets the task requirements effectively. Just make sure that all SCSS variables are correctly imported to avoid any compilation issues. Keep up the great work! 😊

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


.calendar {
box-sizing: border-box;
width: $field-width;

Choose a reason for hiding this comment

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

The variable $field-width is used here but is not defined in this file. Ensure it is imported correctly from utils/variables or another file.

display: flex;
flex-wrap: wrap;
gap: 1px;
padding: $field-pad;

Choose a reason for hiding this comment

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

The variable $field-pad is used here but is not defined in this file. Ensure it is imported correctly from utils/variables or another file.

gap: 1px;
padding: $field-pad;

@each $number, $day in $week {

Choose a reason for hiding this comment

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

The variable $week is used here but is not defined in this file. Ensure it is imported correctly from utils/variables or another file.


@each $number, $day in $week {
&--start-day-#{$day} > .calendar__day:first-child {
margin-left: ($number - 1) * ($cell-size + $cell-gap);

Choose a reason for hiding this comment

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

The variables $cell-size and $cell-gap are used here but are not defined in this file. Ensure they are imported correctly from utils/variables or another file.


@each $last-day in $possible-month-lengths {
&--month-length-#{$last-day} {
@if $last-day < $days {

Choose a reason for hiding this comment

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

The variable $days is used here but is not defined in this file. Ensure it is imported correctly from utils/variables or another file.

// }
// }

@each $last-day in $possible-month-lengths {

Choose a reason for hiding this comment

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

The variable $possible-month-lengths is used here but is not defined in this file. Ensure it is imported correctly from utils/variables or another file.

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