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

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

Develop #3893

wants to merge 6 commits into from

Conversation

Bankir4ik87
Copy link

  • DEMO LINK

  • TEST REPORT LINKnpm run lint

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

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

  • All Typical Mistakes from BEM lesson theory are checked.

  • 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.

It looks like there are a few critical issues that need to be addressed before we can approve this pull request. The most pressing concern is the incorrect stylesheet link in the HTML file, which points to a '.scss' file instead of a '.css' file. This will prevent the styles from being applied correctly in the browser. Additionally, ensure that all necessary SCSS variables are defined to avoid compilation errors. Once these issues are resolved, your calendar layout will be in great shape! Keep up the good work, and don't hesitate to reach out if you need any help! 😊

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

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

@@ -9,10 +9,42 @@
<title>Calendar</title>
<link
rel="stylesheet"
href="styles/index.scss"
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 href attribute in the link tag is pointing to a '.scss' file. Browsers cannot directly interpret SCSS files; they need to be compiled into CSS first. Ensure that the SCSS file is compiled to a CSS file and update the href to point to the resulting '.css' file.

.calendar {
display: flex;
flex-wrap: wrap;
width: ($day-size + $gap) * $col-count - $gap;

Choose a reason for hiding this comment

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

Ensure that the variables $day-size, $gap, and $col-count are defined elsewhere in your SCSS files. If they are not defined, this will cause a compilation error.

cursor: pointer;
background-color: #ffbfcb;
transform: translate(0, -20px);
animation-duration: 0.5s;

Choose a reason for hiding this comment

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

The 'animation-duration' property is declared but not used in any animation. Consider removing it or implementing an animation that utilizes this property.

background-color: #ffbfcb;
transform: translate(0, -20px);
animation-duration: 0.5s;
transition: 0.5s;

Choose a reason for hiding this comment

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

The 'transition' property should specify which properties are transitioning. Currently, it is set to '0.5s' without specifying the properties, which might lead to unexpected behavior.

}
}

@for $day from 28 through $month-length {

Choose a reason for hiding this comment

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

Ensure that the variable $month-length is defined and correctly set to the number of days in the current month. This is crucial for the correct functioning of the calendar layout.

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 structuring your HTML and SCSS files! 🎉 While there are a few critical issues, such as the incorrect stylesheet link and potential SCSS variable problems, your use of SCSS features is commendable. Please address these issues to enhance your code further. Keep up the good work and continue learning from these experiences!

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

@@ -9,10 +9,42 @@
<title>Calendar</title>
<link
rel="stylesheet"
href="styles/index.scss"
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 stylesheet link is pointing to a '.scss' file. HTML cannot directly use SCSS files; they need to be compiled to CSS first. Ensure the stylesheet is linked to a '.css' file instead.

.calendar {
display: flex;
flex-wrap: wrap;
width: ($day-size + $gap) * $col-count - $gap;

Choose a reason for hiding this comment

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

Ensure that the variables $day-size, $gap, $col-count, and $padding are defined elsewhere in your SCSS files. If they are not defined, this will cause a compilation error.

transition-duration: 0.5s;
}

@for $number from 1 through $month-length {

Choose a reason for hiding this comment

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

Ensure that the variable $month-length is defined and holds the correct number of days for the month you are styling. Otherwise, the loop will not work as intended.

}
}

@each $day, $index in $week-day {

Choose a reason for hiding this comment

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

Ensure that the variable $week-day is defined as a list or map of days. This is necessary for the @each loop to function correctly.

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