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 changes in README.md, src folder #3874

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

Conversation

TargoniyAnatoliy
Copy link

  • DEMO LINK
  • TEST REPORT LINK
  • 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's an issue with the use of the 'font' property in your SCSS. Please adjust it to use the shorthand 'font' property directly or specify 'font-family' and 'font-size' separately to ensure valid CSS. Keep up the great work! 😊

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

src/styles/_page.scss Outdated Show resolved Hide resolved
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 SCSS for the calendar component! 🎉 The styles are well-structured, and you've effectively used SCSS features like variables, loops, and mixins. However, please note the incorrect use of nested properties for the 'font' shorthand. Remember to use 'font-family' and 'font-size' separately or apply the 'font' shorthand correctly. Keep up the good work, and make sure to address this in future projects to enhance your coding skills!

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

Comment on lines 9 to 12
font: {
family: $font;
size: $font-size;
}

Choose a reason for hiding this comment

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

The use of nested properties for the 'font' shorthand is incorrect. According to CSS syntax, 'font' should be a single shorthand property, not a nested block. You should use 'font-family' and 'font-size' separately or use the 'font' shorthand correctly.

Copy link

@VolodymyrKirichenko VolodymyrKirichenko left a comment

Choose a reason for hiding this comment

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

Good job, but let's make some changes 👍

src/index.html Outdated
Comment on lines 17 to 22
<div class="calendar__day"></div>

<div class="calendar__day"></div>

<div class="calendar__day"></div>

Choose a reason for hiding this comment

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

I think that all the empty lines are redundant)

Suggested change
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>

Copy link
Author

Choose a reason for hiding this comment

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

I made empty lines because AI Buddy recommended

Comment on lines 2 to 11
box-sizing: border-box;
padding: $padding;
width: ($padding * 2) + ($gap * 6) + ($size * 7);
display: flex;
align-items: center;
gap: $gap;
flex-wrap: wrap;

&__day {
box-sizing: border-box;

Choose a reason for hiding this comment

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

maybe this will be a better solution in this case?
this property will work for the entire project

* {
  box-sizing: border-box;
}

Copy link
Author

Choose a reason for hiding this comment

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

the instructions recommend avoiding this selector so as not to decrease performance

.calendar {
box-sizing: border-box;
padding: $padding;
width: ($padding * 2) + ($gap * 6) + ($size * 7);

Choose a reason for hiding this comment

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

what do these variables refer to?
I can't figure it out from their name.
Change the variable names

Suggested change
width: ($padding * 2) + ($gap * 6) + ($size * 7);
width: ($.....* 2) + ($....* 6) + ($.....* 7);

}
}

@each $day, $margin 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.

create a variable for it

Suggested change
@each $day, $margin in (mon: 0, tue: 1, wed: 2, thu: 3, fri: 4, sat: 5, sun: 6)
@each $day, $margin in $weekDays

Comment on lines 4 to 9
$font: Arial, sans-serif;
$font-size: 30px;
$hover-offset: 20px;
$gap: 1px;
$padding: 10px;
$border: 1px solid black;

Choose a reason for hiding this comment

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

u don't need a variables for it. don't create normal variables for fonts. moreover - u use it only once

Suggested change
$font: Arial, sans-serif;
$font-size: 30px;
$hover-offset: 20px;
$gap: 1px;
$padding: 10px;
$border: 1px solid black;
$gap: 1px;
$padding: 10px;

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.

3 participants