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

- [DEMO LINK](https://katerinaasss.github.io/layout_catalog/) - [TEST REPORT LINK](https://katerinaasss.github.io/layout_catalog/report/html_report/) #4997

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

Conversation

katerinaasss
Copy link

No description provided.

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.


Hello! 😊 You've done a great job with the implementation, and most of your code meets the task requirements. However, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. Data Attributes: The data-qa="card" attribute should only be added to the first card, not all cards. Please ensure this is corrected to meet the task requirements.

  2. Navigation Link Color: The navigation links should have the color #060b35, but currently, they are set to black in the header.scss. Please update this to match the specified color.

  3. SCSS Variables: The header.scss file uses hardcoded colors and sizes. These should be replaced with variables to maintain consistency and make future updates easier.

  4. Hover Effects: The hover effect for the card title should change the text color to #34568b. This specific hover effect is missing in your SCSS file. Please add it to ensure the hover behavior is as expected.

  5. HTML and SCSS Consistency: The .card__title selector is used in your SCSS, but there is no corresponding element in the HTML. Please ensure that the intended element is targeted, or update the HTML to include an element with this class.

Once these issues are addressed, 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
Comment on lines 154 to 446
<span class="card__stars-reviews">Reviews: 5</span>
</div>

<p class="card__price">
<span class="card__price-content">Price:</span>
$2,199
</p>

<a
href="#"
class="card__buy"
data-qa="card-hover"
>
BUY
</a>
</div>

<div
class="card"
data-qa="card"
>
<img
class="card__image"
src="/src/images/imac.jpeg"
alt="imac"
/>
<h1 class="card__content">
APPLE A1419 iMac 27" Retina
<br />
5K Monoblock (MNED2UA/A)
</h1>

<h2 class="card__code">Product code: 195434</h2>

<div class="card__stars">
<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>
<span class="card__stars-reviews">Reviews: 5</span>
</div>

<p class="card__price">
<span class="card__price-content">Price:</span>
$2,199
</p>

<a
href="#"
class="card__buy"
data-qa="card-hover"
>
BUY
</a>
</div>

<div
class="card"
data-qa="card"
>
<img
class="card__image"
src="/src/images/imac.jpeg"
alt="imac"
/>
<h1 class="card__content">
APPLE A1419 iMac 27" Retina
<br />
5K Monoblock (MNED2UA/A)
</h1>

<h2 class="card__code">Product code: 195434</h2>

<div class="card__stars">
<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>
<span class="card__stars-reviews">Reviews: 5</span>
</div>

<p class="card__price">
<span class="card__price-content">Price:</span>
$2,199
</p>

<a
href="#"
class="card__buy"
data-qa="card-hover"
>
BUY
</a>
</div>

Choose a reason for hiding this comment

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

The product details, including the image, name, product code, reviews, and price, are repeated across multiple cards. If this is intentional for testing purposes, it is fine. However, if the intention is to display different products, consider using dynamic content or updating the details for each card.

Comment on lines +23 to +25
& .card__title {
color: #34568b;
}

Choose a reason for hiding this comment

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

The selector .card__title is used here, but there is no element with this class in the HTML file. Ensure that the intended element is targeted, or update the HTML to include an element with this class if necessary.

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 from the previous review! 🎉 Your code is well-structured and meets the task requirements. However, there are a few critical points to keep in mind for future improvements:

  1. SCSS Variables: Ensure all colors, such as #00acdc, #060b35, #fff, and #f3f3f3, are defined as SCSS variables. This will help maintain consistency and ease future updates.

  2. Data Attributes: The data-qa="card" attribute should only be applied to the first card. Make sure this is corrected to align with the task requirements.

Your efforts are commendable, and these adjustments will enhance the quality and maintainability of your code. Keep up the great work and continue learning from these experiences! 🚀

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

Comment on lines +113 to +114
class="card"
data-qa="card"

Choose a reason for hiding this comment

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

The data-qa="card" attribute should only be added to the first card, not all cards. Please ensure this is corrected to meet the task requirements.

.card {
box-sizing: border-box;
font-family: $card-font-family;
border: 1px solid #f3f3f3;

Choose a reason for hiding this comment

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

The color #f3f3f3 should be replaced with an SCSS variable to maintain consistency and make future updates easier.

width: 200px;
height: 406px;
padding: 32px 16px 16px;
background-color: #fff;

Choose a reason for hiding this comment

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

The color #fff should be replaced with an SCSS variable to maintain consistency and make future updates easier.

height: 406px;
padding: 32px 16px 16px;
background-color: #fff;
color: #060b35;

Choose a reason for hiding this comment

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

The color #060b35 should be replaced with an SCSS variable to maintain consistency and make future updates easier.

align-items: center;
text-transform: uppercase;
text-decoration: none;
background-color: #00acdc;

Choose a reason for hiding this comment

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

The color #00acdc should be replaced with an SCSS variable to maintain consistency and make future updates easier.

&__link {
line-height: 15px;
text-align: center;
color: #060b35;

Choose a reason for hiding this comment

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

The color #060b35 is correctly used here, but ensure it is defined as an SCSS variable to maintain consistency and make future updates easier.

display: flex;

&:hover {
color: #00acdc;

Choose a reason for hiding this comment

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

The color #00acdc should be replaced with an SCSS variable to maintain consistency and make future updates easier.


.is-active {
position: relative;
color: #00acdc;

Choose a reason for hiding this comment

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

The color #00acdc should be replaced with an SCSS variable to maintain consistency and make future updates easier.

&::after {
height: 4px;
border-radius: 8px;
background-color: #00acdc;

Choose a reason for hiding this comment

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

The color #00acdc should be replaced with an SCSS variable to maintain consistency and make future updates easier.

@@ -0,0 +1,4 @@
$card-font-family: 'Roboto', serif;
$card-color-1: #060b35;

Choose a reason for hiding this comment

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

Ensure that all colors used in your SCSS files are defined as variables here. For example, colors like #f3f3f3, #fff, and #00acdc should also be included as variables for consistency.

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