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

Develop #5124

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

Develop #5124

wants to merge 6 commits into from

Conversation

Anna-0805
Copy link

  • DEMO LINK
  • TEST REPORT LINK
  • [x]есть 2 блока БЭМ cardи starsкаждый в своем файле
  • [x]SCSS Nesting используется для elements, modifiersиpseudo-classes
  • [x]Переменные SCSS используются для основных значений и помещаются в отдельный файл.
  • [x]все stars--Nмодификаторы работают как и ожидалось (выделить первые Nзвезды)
  • [x]Код соответствует всем [правилам стиля кода ❗️

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 project! 😊 There are a few critical issues that need to be addressed before we can approve the pull request.

  1. BEM Blocks Separation: The task requires the card and stars BEM blocks to be in separate SCSS files. Currently, both are in a single file. Please separate them into individual files as per the task requirements.

  2. SCSS Variables: The task specifies using SCSS variables for main values in a separate file. Ensure you implement this to enhance maintainability and readability of your code.

  3. Image Path: The image path should be relative to the index.scss file, starting with ../images. Please adjust the path accordingly.

These changes are important to meet the core requirements of the task. Once you've made these updates, feel free to resubmit. Keep up the great work, and don't hesitate to reach out if you have any questions! 🚀

✨ 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 14 to 17
<link
rel="preconnect"
href="https://fonts.googleapis.com"
/>

Choose a reason for hiding this comment

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

The second preconnect link to 'https://fonts.googleapis.com' is redundant as it is already declared above. You can remove this duplicate link to optimize the loading performance.

Comment on lines 29 to 38
&__title {
margin: 0;
padding: 0;
font-size: 12px;
line-height: 18px;
font-weight: 500;
color: #060b35;
align-items: center;
width: 100%;
}

Choose a reason for hiding this comment

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

The 'align-items: center;' property is not applicable to block elements like 'h2'. You can remove this line as it has no effect on the styling of '.product-card__title'.

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 many of the previous issues! 🎉 Your code is progressing well, and separating the BEM blocks into individual SCSS files is a significant step forward. However, to fully meet the task requirements and enhance your project's maintainability, please consider the following improvements:

  • SCSS Variables: It's crucial to create a separate SCSS file for variables. This file should include main values such as colors, font families, font sizes, and dimensions. Using variables will make your code more maintainable and easier to update.

  • Image Path: Ensure that the image path in your star.scss file is correctly set relative to the index.scss file, starting with ../images.

  • BEM Block Imports: Your index.scss file correctly imports the separate SCSS files for the BEM blocks. This is great, but remember to use SCSS variables in these blocks as per the task requirements.

These adjustments will not only help you meet the task requirements but also improve the overall quality and maintainability of your code. Keep up the good work, and continue learning from these experiences! 🚀

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

<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.

Ensure that the SCSS file index.scss includes the separated BEM blocks for card and stars as required by the task. They should be in separate SCSS files.

>
<img
class="product-card__image"
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 image path should be relative to the index.scss file, starting with ../images. Please adjust the path accordingly to ensure it is correct.

@@ -0,0 +1,91 @@
.product-card {
width: 200px;

Choose a reason for hiding this comment

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

Consider using SCSS variables for main values such as colors, font sizes, and dimensions. This will make your code more maintainable and easier to update.


border: 1px solid #f3f3f3;
border-radius: 5px;
background-color: #fff;

Choose a reason for hiding this comment

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

The background color should be defined using a SCSS variable. Ensure that all main values are stored in a separate variables file as per the task requirements.

font-size: 12px;
line-height: 18px;
font-weight: 500;
color: #060b35;

Choose a reason for hiding this comment

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

The color value should be defined using a SCSS variable. Ensure that all main values are stored in a separate variables file as per the task requirements.

font-size: 16px;
line-height: 18px;
font-weight: 700;
color: #060b35;

Choose a reason for hiding this comment

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

The color value should be defined using a SCSS variable. Ensure that all main values are stored in a separate variables file as per the task requirements.

display: flex;
justify-content: center;
align-items: center;
background-color: #00acdc;

Choose a reason for hiding this comment

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

The background color should be defined using a SCSS variable. Ensure that all main values are stored in a separate variables file as per the task requirements.

}

body {
font-family: Roboto, sans-serif;

Choose a reason for hiding this comment

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

Consider using an SCSS variable for the font family. This will make it easier to update the font across the entire project if needed.

.stars {
display: flex;
&__star {
width: 16px;

Choose a reason for hiding this comment

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

Consider using an SCSS variable for the width and height values. This will make it easier to update these values across the project if needed.

font-weight: 400;
line-height: 14px;
text-align: right;
color: #060b35;

Choose a reason for hiding this comment

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

The color value should be defined using an SCSS variable. Ensure that all main values are stored in a separate variables file as per the task requirements.

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