-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
completed task #4932
base: master
Are you sure you want to change the base?
completed task #4932
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your hard work on this project! 😊 While you've done a great job overall, there are a few critical issues that need to be addressed before we can approve the pull request:
-
Undefined Variables and Mixins: There are several instances where variables like
$catalog__card-width
,$page-design-color
, and$nav-links-color
, as well as thesquare
mixin, are used but not confirmed to be defined in your SCSS files. This will lead to compilation errors and needs to be fixed. -
Image Paths: Please ensure that all image paths are correct and that the images exist at those locations. Incorrect paths will result in images not displaying correctly.
-
Duplicate Content: The product cards are repeated multiple times with identical content. Consider using a JavaScript template or loop to dynamically generate these cards, which will make your code cleaner and easier to maintain.
-
Accessibility Improvements: Improve the alt text for images to enhance accessibility. Descriptive alt texts are important for screen readers and should accurately describe the image content.
Once these issues are resolved, your code will be in great shape! Keep up the good work, and feel free 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
</div> | ||
<div class="catalog__card card"> | ||
<img | ||
class="card__image" | ||
src="images/imac.jpeg" | ||
alt="logo" | ||
/> | ||
<div class="card__title"> | ||
APPLE A1419 iMac 27" Retina | ||
<br /> | ||
5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__product-code">Product code: 195434</div> | ||
<div class="card__rating-field"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<div class="card__rating-text">Reviews: 5</div> | ||
</div> | ||
<div class="card__price-field"> | ||
<div class="card__price-field-text">Price:</div> | ||
<div class="card__price-field-number">$2,199</div> | ||
</div> | ||
<a | ||
class="card__buy-link" | ||
href="#buy" | ||
> | ||
BUY | ||
</a> | ||
</div> | ||
<div class="catalog__card card"> | ||
<img | ||
class="card__image" | ||
src="images/imac.jpeg" | ||
alt="logo" | ||
/> | ||
<div class="card__title"> | ||
APPLE A1419 iMac 27" Retina | ||
<br /> | ||
5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__product-code">Product code: 195434</div> | ||
<div class="card__rating-field"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<div class="card__rating-text">Reviews: 5</div> | ||
</div> | ||
<div class="card__price-field"> | ||
<div class="card__price-field-text">Price:</div> | ||
<div class="card__price-field-number">$2,199</div> | ||
</div> | ||
<a | ||
class="card__buy-link" | ||
href="#buy" | ||
> | ||
BUY | ||
</a> | ||
</div> | ||
<div class="catalog__card card"> | ||
<img | ||
class="card__image" | ||
src="images/imac.jpeg" | ||
alt="logo" | ||
/> | ||
<div class="card__title"> | ||
APPLE A1419 iMac 27" Retina | ||
<br /> | ||
5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__product-code">Product code: 195434</div> | ||
<div class="card__rating-field"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<div class="card__rating-text">Reviews: 5</div> | ||
</div> | ||
<div class="card__price-field"> | ||
<div class="card__price-field-text">Price:</div> | ||
<div class="card__price-field-number">$2,199</div> | ||
</div> | ||
<a | ||
class="card__buy-link" | ||
href="#buy" | ||
> | ||
BUY | ||
</a> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The product cards from line 154 to 384 are identical in content. Consider using a template or a loop in your JavaScript to dynamically generate these cards to avoid repetition and make future updates easier.
href="#logo" | ||
> | ||
<img | ||
src="images/logo.png" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that the image path 'images/logo.png' is correct and the image is available at this location. Otherwise, the logo might not display correctly.
> | ||
<img | ||
class="card__image" | ||
src="images/imac.jpeg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that the image path 'images/imac.jpeg' is correct and the image is available at this location. Otherwise, the product image might not display correctly.
src/index.html
Outdated
> | ||
<img | ||
src="images/logo.png" | ||
alt="logo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider providing a more descriptive alt text for the logo image to improve accessibility. Instead of 'logo', use something like 'Company Logo'.
src/index.html
Outdated
<img | ||
class="card__image" | ||
src="images/imac.jpeg" | ||
alt="logo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider providing a more descriptive alt text for the product image to improve accessibility. Instead of 'logo', use something like 'Image of APPLE A1419 iMac 27" Retina'.
src/styles/blocks/header.scss
Outdated
} | ||
|
||
.nav__link:hover { | ||
color: $page-design-color; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $page-design-color
is used here, but ensure that it is defined elsewhere in your SCSS files. If not, this will cause a compilation error.
height: 16px; | ||
width: 16px; | ||
margin-right: 4px; | ||
background-image: url(../images/star.svg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that the image path '../images/star.svg' is correct and the image is available at this location. Otherwise, the star icons might not display correctly.
.stars--3 .stars__star:nth-child(-n + 3), | ||
.stars--4 .stars__star:nth-child(-n + 4), | ||
.stars--5 .stars__star:nth-child(-n + 5) { | ||
background-image: url(../images/star-active.svg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that the image path '../images/star-active.svg' is correct and the image is available at this location. Otherwise, the active star icons might not display correctly.
src/styles/index.scss
Outdated
@import './utils/reset'; | ||
@import './utils/normalize'; | ||
@import './utils/variables'; | ||
@import './utils/colors'; | ||
@import './utils/mixins'; | ||
@import './blocks/catalog'; | ||
@import './blocks/header'; | ||
@import './blocks/stars'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that all the imported SCSS files ('reset', 'normalize', 'variables', 'colors', 'mixins', 'catalog', 'header', 'stars') exist in the specified paths. Missing files will cause compilation errors.
@@ -0,0 +1,3 @@ | |||
@mixin square($size) { | |||
grid-template-columns: repeat($size, $catalog__card-width); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that the variable $catalog__card-width
is defined elsewhere in your SCSS files. If not, this will cause a compilation error when the mixin is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, the pull request review was unsuccessful for the following reasons:
Warning
No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, the pull request review was unsuccessful for the following reasons:
Warning
No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, the pull request review was unsuccessful for the following reasons:
Warning
No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, the pull request review was unsuccessful for the following reasons:
Warning
No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
DEMO LINK
TEST REPORT LINK
All components follow BEM and use SCSS
Repeated sizes and special colors are put to variables
Grid is used for the columns
Cards are shown in 1, 2, 3, or 4 columns based on screen resolution
All changes on
:hover
are smoothCode follows all the Code Style Rules ❗️