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

Develop #3912

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Develop #3912

wants to merge 2 commits into from

Conversation

Blervin1
Copy link

@Blervin1 Blervin1 commented Nov 1, 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.

Your implementation is solid and meets the task requirements, but there are a few critical issues to address. The HTML structure for the calendar is correct, but remember to compile your SCSS into CSS before linking it in your HTML. Ensure all variables, mixins, and functions like %arial-fsize, $days-week, $day-color, $day-margin, square, and getCalendarWidth are defined to avoid compilation errors. These improvements will enhance your code's functionality and maintainability. Keep up the good work and use this feedback to refine your skills! 🚀

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

rel="stylesheet"
href="styles/index.scss"
/>
<link rel="stylesheet" href="./styles/main.scss">

Choose a reason for hiding this comment

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

The link tag is referencing a .scss file. Browsers cannot directly interpret SCSS files. You need to compile the SCSS into a CSS file and then link to the resulting CSS file instead.

display: flex;
flex-wrap: wrap;
margin: 10% auto;
width: getCalendarWidth($day-box-size, $calendar-paddings);

Choose a reason for hiding this comment

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

Ensure that the function getCalendarWidth is defined elsewhere in your SCSS files. This function is used to calculate the width of the calendar, and if it's not defined, it will cause an error during compilation.

width: getCalendarWidth($day-box-size, $calendar-paddings);

&__day {
@include square($day-box-size);

Choose a reason for hiding this comment

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

The mixin square is used here. Make sure this mixin is defined in your SCSS files. If it's missing, it will cause an error during compilation.

display: flex;
justify-content: center;
align-items: center;
margin-block-end: $day-margin;

Choose a reason for hiding this comment

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

The variable $day-margin is used here. Ensure that this variable is defined in your SCSS files. Undefined variables will cause errors during compilation.

align-items: center;
margin-block-end: $day-margin;
margin-inline-end: $day-margin;
background-color: $day-color;

Choose a reason for hiding this comment

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

The variable $day-color is used here. Ensure that this variable is defined in your SCSS files. Undefined variables will cause errors during compilation.

}
}

@each $day-week, $num in $days-week {

Choose a reason for hiding this comment

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

The variable $days-week is used here. Ensure that this variable is defined in your SCSS files. Undefined variables will cause errors during compilation.

}

.html {
@extend %arial-fsize;

Choose a reason for hiding this comment

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

The @extend %arial-fsize; directive is used here. Ensure that the placeholder selector %arial-fsize is defined in one of your imported SCSS files. If it's not defined, this will cause an error during compilation.

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