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

layout_product-cards #5014

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

Conversation

SerhiiSevriuhin
Copy link

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.

Thank you for your hard work on this pull request! 🌟 While you've done a great job meeting many of the task requirements, there are a few critical issues that need to be addressed before we can approve it:

  1. SCSS Compilation: The stylesheet link in your HTML file is pointing to an SCSS file. Browsers cannot interpret SCSS directly, so please ensure that the SCSS is compiled to CSS and update the link accordingly.

  2. Variable Definitions: There are multiple instances where SCSS variables like $secondary-color, $blue-color, $white-color, and $main-color are used. Please ensure these are defined in your variables.scss file to avoid compilation errors.

  3. Padding Property: The padding property is set to 'auto', which is not valid. Please specify padding in appropriate units like px, em, or %.

  4. Image and Background Paths: Ensure that all image paths, such as those for background images and the src attribute, are correct relative to the compiled CSS and HTML files. Incorrect paths can lead to images not displaying.

Once these issues are resolved, your code will be in great shape! Keep up the great 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.

<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="./styles/index.scss"

Choose a reason for hiding this comment

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

The href attribute is pointing to an SCSS file. Browsers cannot directly interpret SCSS files; they need to be compiled into CSS first. Ensure that the SCSS is compiled to CSS and the link is updated accordingly.

data-qa="card"
>
<img
src="../src/images/imac.jpeg"

Choose a reason for hiding this comment

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

The src attribute for the image uses a relative path ('../src/images/imac.jpeg'). Ensure that this path is correct relative to the location of the HTML file, or consider using an absolute path if the image is not displaying correctly.

@@ -0,0 +1,85 @@
.card {
box-sizing: border-box;
background-color: $white-color;

Choose a reason for hiding this comment

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

The variable $white-color is used here. Ensure that this variable is defined in your SCSS files. If it's not defined, the SCSS compilation will fail.

}

&__name {
color: $main-color;

Choose a reason for hiding this comment

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

The variable $main-color is used here. Ensure that this variable is defined in your SCSS files. If it's not defined, the SCSS compilation will fail.

}

&__product-code {
color: $secondary-color;

Choose a reason for hiding this comment

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

The variable $secondary-color is used here. Ensure that this variable is defined in your SCSS files. If it's not defined, the SCSS compilation will fail.

&:hover {
border: 1px solid $blue-color;
background-color: $white-color;
color: $blue-color;

Choose a reason for hiding this comment

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

The variable $blue-color is used here. Ensure that this variable is defined in your SCSS files. If it's not defined, the SCSS compilation will fail.

}

html {
color: $secondary-color;

Choose a reason for hiding this comment

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

The variable $secondary-color is used here. Ensure that this variable is defined in your SCSS files. If it's not defined, the SCSS compilation will fail.

display: flex;

&__stars {
background-image: url(../images/star.svg);

Choose a reason for hiding this comment

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

The background-image URL uses a relative path ('../images/star.svg'). Ensure that this path is correct relative to the location of the compiled CSS file, or consider using an absolute path if the image is not displaying correctly.

}

.stars :nth-child(-n + 4) {
background-image: url(../images/star-active.svg);

Choose a reason for hiding this comment

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

The background-image URL uses a relative path ('../images/star-active.svg'). Ensure that this path is correct relative to the location of the compiled CSS file, or consider using an absolute path if the image is not displaying correctly.

body {
margin: 0;
}
@import './utils/variables';

Choose a reason for hiding this comment

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

Ensure that the './utils/variables' file exists and contains definitions for all the variables used in the imported SCSS files, such as $white-color, $main-color, $secondary-color, and $blue-color. Missing variable definitions will cause compilation errors.

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