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 task solution #4831

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

add task solution #4831

wants to merge 2 commits into from

Conversation

nikovod
Copy link

@nikovod nikovod commented Nov 7, 2024

  • 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 smooth

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


Thank you for your hard work on this project! 😊 While your code is mostly well-structured and meets many of the task requirements, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. SCSS Selector Issues: There are some incorrect SCSS selectors, such as the extra space in the modifier class ('&--1 :first-child') and the hover effect selector ('&:hover &__title'). These need to be corrected to ensure the styles apply as intended.

  2. Navigation and Button Links: All navigation links currently point to 'index.html', and the 'Buy' button's href is set to '#'. These should be updated to point to the correct pages or actions to ensure proper navigation and functionality.

  3. Margin Inheritance: Using 'margin: inherit;' might not work as expected if the parent element doesn't have a defined margin. Consider specifying a concrete value or removing it if not necessary.

Please address these issues to improve the functionality and maintainability of your code. Once these changes are made, your code will be in great shape for approval! Keep up the great work! 🚀

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

Comment on lines +39 to +41
<a
class="nav__link is-active"
href="index.html"

Choose a reason for hiding this comment

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

All navigation links point to 'index.html'. If these links are intended to navigate to different pages, ensure the 'href' attributes are updated accordingly.

Comment on lines +48 to +50
<a
class="nav__link"
href="index.html"

Choose a reason for hiding this comment

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

All navigation links point to 'index.html'. If these links are intended to navigate to different pages, ensure the 'href' attributes are updated accordingly.

Comment on lines +57 to +59
<a
class="nav__link"
href="index.html"

Choose a reason for hiding this comment

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

All navigation links point to 'index.html'. If these links are intended to navigate to different pages, ensure the 'href' attributes are updated accordingly.

Comment on lines +66 to +68
<a
class="nav__link"
href="index.html"

Choose a reason for hiding this comment

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

All navigation links point to 'index.html'. If these links are intended to navigate to different pages, ensure the 'href' attributes are updated accordingly.

Comment on lines +76 to +78
<a
class="nav__link"
href="index.html"

Choose a reason for hiding this comment

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

All navigation links point to 'index.html'. If these links are intended to navigate to different pages, ensure the 'href' attributes are updated accordingly.

Comment on lines +335 to +337
<a
href="#"
class="card__button"

Choose a reason for hiding this comment

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

The 'href' attribute of the 'Buy' button is set to '#', which means it doesn't lead anywhere. Consider updating this to point to a relevant page or action.

Comment on lines +367 to +369
<a
href="#"
class="card__button"

Choose a reason for hiding this comment

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

The 'href' attribute of the 'Buy' button is set to '#', which means it doesn't lead anywhere. Consider updating this to point to a relevant page or action.

Comment on lines 17 to 19
&:hover &__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 '&:hover &__title' is incorrect. The '&' in SCSS refers to the parent selector, so this will not apply the hover effect as intended. You should use '.card:hover .card__title' instead to change the title color on hover.

Comment on lines 40 to 41
margin: inherit;
margin-bottom: 16px;

Choose a reason for hiding this comment

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

Using 'margin: inherit;' might not work as expected if the parent element doesn't have a defined margin. Consider specifying a concrete value or removing it if not necessary.

Comment on lines +21 to +25
&--1 :first-child,
&--2 :nth-child(-n + 2),
&--3 :nth-child(-n + 3),
&--4 :nth-child(-n + 4),
&--5 :nth-child(-n + 5) {

Choose a reason for hiding this comment

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

There is an extra space after the modifier class (e.g., '&--1 :first-child'). This space can cause the selector to target any child element rather than the intended direct child. Remove the space to ensure the selector targets the correct elements (e.g., '&--1:first-child').

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.

Your code meets most of the task requirements, but there are a few issues to address for improvement. The HTML structure is correct, but ensure that the href attributes in navigation links and 'Buy' buttons point to the correct URLs. The SCSS files are well-structured, but be cautious with hover effects that cause layout shifts and ensure all variables are defined to avoid compilation errors. The checklist file should include verified items as specified. Address these issues to enhance your code quality. Keep up the good work and continue learning from these insights! 🚀

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

<li>
<a
class="nav__link is-active"
href="index.html"

Choose a reason for hiding this comment

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

The 'href' attribute for this navigation link is set to 'index.html'. Ensure this is the correct link for the 'Apple' section. If not, update it to the correct URL.

<li>
<a
class="nav__link"
href="index.html"

Choose a reason for hiding this comment

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

The 'href' attribute for this navigation link is set to 'index.html'. Ensure this is the correct link for the 'Samsung' section. If not, update it to the correct URL.

<li>
<a
class="nav__link"
href="index.html"

Choose a reason for hiding this comment

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

The 'href' attribute for this navigation link is set to 'index.html'. Ensure this is the correct link for the 'Smartphones' section. If not, update it to the correct URL.

<li>
<a
class="nav__link"
href="index.html"

Choose a reason for hiding this comment

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

The 'href' attribute for this navigation link is set to 'index.html'. Ensure this is the correct link for the 'Laptops & Computers' section. If not, update it to the correct URL.

<li>
<a
class="nav__link"
href="index.html"

Choose a reason for hiding this comment

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

The 'href' attribute for this navigation link is set to 'index.html'. Ensure this is the correct link for the 'Gadgets' section. If not, update it to the correct URL.

}

&:visited {
color: $main-text-color;

Choose a reason for hiding this comment

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

Ensure that the variable $main-text-color is defined in your SCSS files. If not, define it to avoid compilation errors.

}

&:hover {
color: $blue-color;

Choose a reason for hiding this comment

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

Ensure that the variable $blue-color is defined in your SCSS files. If not, define it to avoid compilation errors.


&::after {
content: '';
background-color: $blue-color;

Choose a reason for hiding this comment

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

Ensure that the variable $blue-color is defined in your SCSS files. If not, define it to avoid compilation errors.

}

&:link {
color: $blue-color;

Choose a reason for hiding this comment

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

Ensure that the variable $blue-color is defined in your SCSS files. If not, define it to avoid compilation errors.

}

&:visited {
color: $blue-color;

Choose a reason for hiding this comment

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

Ensure that the variable $blue-color is defined in your SCSS files. If not, define it to avoid 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