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 solution #5178

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

add solution #5178

wants to merge 3 commits into from

Conversation

alla-vedmid
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • there 2 BEM blocks card and stars each in their own file

  • SCSS Nesting is used for elements, modifiers and pseudo-classes

  • SCSS Variables are used for main values and placed in a separate file

  • all stars--N modifiers work as expected (Highlight first N stars)

  • 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 the pull request. Specifically, the crossorigin attribute value is incorrect and should be updated to either 'anonymous' or 'use-credentials'. Additionally, please ensure that all SCSS variables mentioned are defined in your project to avoid any compilation errors. Once these issues are resolved, your code 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.

src/index.html Outdated
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin="attr-req-value"

Choose a reason for hiding this comment

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

The crossorigin attribute value 'attr-req-value' seems incorrect. It should be either 'anonymous' or 'use-credentials'. Please update it to the correct value.

@@ -0,0 +1,87 @@
.card {
width: $card-width;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $card-width is defined in your project. If it's not defined, it will cause a compilation error.

@@ -0,0 +1,87 @@
.card {
width: $card-width;
height: $card-height;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $card-height is defined in your project. If it's not defined, it will cause a compilation error.

.card {
width: $card-width;
height: $card-height;
border: 1px solid $color-border-card;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $color-border-card is defined in your project. If it's not defined, it will cause a compilation error.

width: $card-width;
height: $card-height;
border: 1px solid $color-border-card;
font-family: $card-font;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $card-font is defined in your project. If it's not defined, it will cause a compilation error.

width: 166px;
height: 40px;
border-radius: 5px;
background-color: $color-blue;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $color-blue is defined in your project. If it's not defined, it will cause a compilation error.

height: 40px;
border-radius: 5px;
background-color: $color-blue;
border: 1px solid $color-blue;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $color-blue is defined in your project. If it's not defined, it will cause a compilation error.

font-size: 14px;
font-weight: 700;
line-height: 16px;
color: $color-white;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $color-white is defined in your project. If it's not defined, it will cause a compilation error.


&:hover {
.card__btn {
background-color: $color-white;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $color-white is defined in your project. If it's not defined, it will cause a compilation error.

&:hover {
.card__btn {
background-color: $color-white;
color: $color-blue;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $color-blue is defined in your project. If it's not defined, it will cause a compilation error.

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 addressing most of the issues in your project! 🎉 However, there are a few critical points that need attention:

  • HTML File: The crossorigin attribute value is currently set to "attr-req-value", which is incorrect. Please update it to either "anonymous" or "use-credentials" to meet the HTML specification and ensure proper functionality.

  • SCSS Files: Ensure that all mixins, such as simple-text and elem-space-between, are defined in your project to avoid any compilation errors. If they are already defined, you're good to go!

Your project structure is well-organized, and the use of SCSS variables and mixins enhances the reusability and consistency of your styles. Keep up the good work! Remember to address the critical issues mentioned to improve your code and avoid similar problems in the future. This decision is made to help you move forward with your learning. Keep learning and improving! 🚀

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

src/index.html Outdated
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin="attr-req-value"

Choose a reason for hiding this comment

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

The crossorigin attribute value is incorrect. It should be either 'anonymous' or 'use-credentials' as per the HTML specification. Please update this value to ensure proper functionality.

display: block;
}
&__prod-code {
@include simple-text;

Choose a reason for hiding this comment

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

Ensure that the simple-text mixin is defined in your project. If it's missing, it will cause a compilation error.

}

&__reviews {
@include elem-space-between;

Choose a reason for hiding this comment

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

Ensure that the elem-space-between mixin is defined in your project. If it's missing, it will cause a compilation error.

margin: 20px 0;
}
&__reviews-text {
@include simple-text;

Choose a reason for hiding this comment

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

Ensure that the simple-text mixin is defined in your project. If it's missing, it will cause a compilation error.

}

&__price {
@include elem-space-between;

Choose a reason for hiding this comment

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

Ensure that the elem-space-between mixin is defined in your project. If it's missing, it will cause a compilation error.

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