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 #4808

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

Conversation

JPodgrodzki
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 project! There are a few critical issues that need to be addressed before we can approve the pull request. The data-qa attributes need correction, specifically changing data-qa="hover" to data-qa="card-hover". Additionally, the SCSS file is missing essential media queries for the grid layout and hover effects that are part of the core requirements. Please make these adjustments to ensure the functionality aligns with the task specifications. Keep up the great work, and feel free 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
<ul class="nav__list">
<li class="nav__item">
<a
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 link points to index.html. If this is meant to navigate to a different section or page, ensure the correct URL is used.

src/index.html Outdated
</li>
<li class="nav__item">
<a
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 link points to index.html. If this is meant to navigate to a different section or page, ensure the correct URL is used.

src/index.html Outdated
</li>
<li class="nav__item">
<a
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 link points to index.html. If this is meant to navigate to a different section or page, ensure the correct URL is used.

src/index.html Outdated
</li>
<li class="nav__item">
<a
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 link points to index.html. If this is meant to navigate to a different section or page, ensure the correct URL is used.

src/index.html Outdated
</li>
<li class="nav__item">
<a
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 link points to index.html. If this is meant to navigate to a different section or page, ensure the correct URL is used.

src/index.html Outdated
</li>
<li class="nav__item">
<a
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 link points to index.html. If this is meant to navigate to a different section or page, ensure the correct URL is used.

src/index.html Outdated
</li>
<li class="nav__item">
<a
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 link points to index.html. If this is meant to navigate to a different section or page, ensure the correct URL is used.

src/index.html Outdated
</li>
<li class="nav__item">
<a
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 link points to index.html. If this is meant to navigate to a different section or page, ensure the correct URL is used.

Comment on lines 158 to 160
&:hover &__name {
color: #34568b;
}

Choose a reason for hiding this comment

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

The &:hover &__name selector seems misplaced. It targets .card__name when .card__price is hovered, which might not be the intended behavior. Ensure this is correct or adjust the selector to target the intended element.

Copy link

@natalia-klonowska natalia-klonowska left a comment

Choose a reason for hiding this comment

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

you forgot to add this effects on hover:
image

src/index.html Outdated
<li class="nav__item">
<a
href="#"
class="nav__link nav__link--hover"
Copy link

Choose a reason for hiding this comment

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

Co robi ta klasa --hover i czemu inne elementy jej nie maja? Pewnie zapomniałes usunac czy cos

transition: transform 300ms;

&__image {
background-image: url(../images/imac.jpeg);
Copy link

Choose a reason for hiding this comment

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

Nie jestem fanem dawanie tak waznych grafik jak grafiki produktów na background-image.
Pamietaj ze strona ładuje sie w tej kolejnosci HTML > CSS > JS wiec wkładajac tak wazne grafiki do CSS opozniasz ich wywołanie.

No jest to tez gorsze rozwiazanie pod SEO ponieważ roboty przegladajace twoja strone nie widza tych grafik. jak mozesz zauważyć nawet nie mozesz im dodać atrybutu ALT

&-star {
height: 16px;
width: 16px;
background-image: url(../images/star.svg);
Copy link

Choose a reason for hiding this comment

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

Gwiazdki juz raczej moge byc na background-image tutaj to jest chyba bez znaczenia

src/index.html Outdated
<li class="nav__item">
<a
href="#"
class="nav__link nav__link--active is-active"

Choose a reason for hiding this comment

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

you don't need nav__link--active modifier because you can use is-active instead

font-family: Roboto, sans-serif;
}

.header {

Choose a reason for hiding this comment

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

create separate files for all of BEM blocks (header, nav, container, card, stars)

src/index.html Outdated
<div class="card__image">
<img
src="./images/imac.jpeg"
class="photo card__image--photo"

Choose a reason for hiding this comment

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

A modifier must not be used without the class it modifies

Suggested change
class="photo card__image--photo"
class="card__image-photo"

src/index.html Outdated
<li class="nav__item">
<a
href="#"
class="nav__link nav__link--active is-active"

Choose a reason for hiding this comment

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

Suggested change
class="nav__link nav__link--active is-active"
class="nav__link is-active"

class="card__buy"
data-qa="card-hover"
>
<span class="card__buy-text">BUY</span>

Choose a reason for hiding this comment

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

you don't use card__buy-text class and you don't need span inside button

Comment on lines 69 to 71
&:hover &__name {
color: #34568b;
}

Choose a reason for hiding this comment

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

this selector is incorrect but correct version is located below &:hover .card__name

Copy link

@natalia-klonowska natalia-klonowska left a comment

Choose a reason for hiding this comment

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

Great work 🔥

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.

4 participants