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

fix1 #3955

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

fix1 #3955

wants to merge 1 commit into from

Conversation

RYAB0Y
Copy link

@RYAB0Y RYAB0Y commented Nov 18, 2024

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! 🎉 Your code meets all the task requirements and constraints, and you've effectively used SCSS features to enhance your styling. Just make sure to compile your SCSS to CSS for browser compatibility. Keep up the excellent work and continue refining your skills! 😊

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

$day-size: 100px;
$border-size: 1px;
$padding: 10px;
$hover-color: #ffbfcb;

Choose a reason for hiding this comment

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

The variable $hover-color is defined but make sure it contrasts well with the $day-color to ensure good visibility when hovering over a day.

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

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 is correct, but ensure that the gap between days is consistent with the gap property set on the .calendar class.


@each $day, $index in (mon: 0, tue: 1, wed: 2, thu: 3, fri: 4, sat: 5, sun: 6) {
.calendar--start-day-#{$day} .calendar__day:nth-child(1) {
margin-left: calc(#{$day-size} * $index + 1px * $index);

Choose a reason for hiding this comment

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

The margin-left calculation for the first day of the week is correctly using SCSS interpolation and variables. Ensure that the resulting CSS aligns the days correctly based on the starting day.

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