-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
base: master
Are you sure you want to change the base?
add task solution #3936
Conversation
Vladyslava-hub
commented
Nov 10, 2024
- DEMO LINK
- TEST REPORT LINK
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.