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 #3936

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

Conversation

Vladyslava-hub
Copy link

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 task requirements! 🎉 Your code is well-structured and meets all the core requirements, including the use of SCSS and BEM methodology, flexbox layout, and hover effects. While there are some minor suggestions for improvement, such as updating the @import rule to @use for better modularity, these do not impact the functionality. Keep up the good work and consider these suggestions for future projects! 😊

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

margin: 0;
}

@import 'main';

Choose a reason for hiding this comment

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

The @import rule is used to include the main SCSS file. Make sure that the main.scss file exists in the same directory or provide the correct path. Note that @import is deprecated in favor of @use and @forward in newer versions of Sass, which offer better modularity and avoid potential conflicts.

display: flex;
flex-wrap: wrap;
gap: 1px;
width: calc(#{$columns} * (#{$day-size} + 1px) - 1px);

Choose a reason for hiding this comment

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

The calculation for the calendar width uses a combination of variables and arithmetic operations. Ensure that the calculation accounts for all necessary spacing and border widths to avoid layout issues.

}

// Позиціюємо перший день у залежності від того, з якого дня починається місяць
@each $day, $index in (mon: 0, tue: 1, wed: 2, thu: 3, fri: 4, sat: 5, sun: 6)

Choose a reason for hiding this comment

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

The @each loop is used to dynamically create classes for different starting days of the week. Ensure that these classes are correctly applied in the HTML to achieve the desired layout.

}

// Приховуємо додаткові дні для місяців з меншою кількістю днів
@for $i from 28 through 31 {

Choose a reason for hiding this comment

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

The @for loop is used to hide extra days for months with fewer days. Ensure that the logic correctly matches the number of days in each month and that the classes are applied appropriately in the HTML.

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