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

Moyo header #5369

Closed
wants to merge 6 commits into from
Closed

Moyo header #5369

wants to merge 6 commits into from

Conversation

Oleg473
Copy link

@Oleg473 Oleg473 commented Sep 16, 2024

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! It looks like there are a few important issues to address in your code. The active class should only be used where appropriate, spacing in your HTML can improve readability, anchor links need to be fixed, and you'll want to remove any duplicate HTML tags. Keep up the good work, and with these changes, your code will be even better! 😊👍

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

href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap"
rel="stylesheet"
>
<title>Moyo header</title>

Choose a reason for hiding this comment

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

There are two title tags within the head section. Remove the duplicate title tag to comply with proper HTML structure.

Comment on lines +35 to +42
<a
href="#header"
class="logo"
>
<img
src="images/logo.png"
alt="Moyo-Logo"
/>

Choose a reason for hiding this comment

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

Don't use spaces in <a> tag's href property. Anchor links should start with the # symbol. Also, ensure that the href attribute links to the correct section of the page. If #header is not an actual id on the page, it should be updated to reflect the correct navigation target.

Comment on lines +43 to +119
</a>
<nav class="nav">
<ul class="nav__list">
<li class="nav__item">
<a
class="nav__link is-active"
href="#header"
>
Apple
</a>
</li>

<li class="nav__item">
<a
class="nav__link is-active"
href="#header"
>
Samsung
</a>
</li>

<li class="nav__item">
<a
class="nav__link is-active"
href="#header"
>
Smartphones
</a>
</li>

<li class="nav__item">
<a
class="nav__link is-active"
href="#header"
data-qa="hover"
>
Laptops & Computers
</a>
</li>

<li class="nav__item">
<a
class="nav__link is-active"
href="#header"
>
Gadgets
</a>
</li>

<li class="nav__item">
<a
class="nav__link is-active"
href="#header"
>
Tablets
</a>
</li>

<li class="nav__item">
<a
class="nav__link is-active"
href="#header"
>
Photo
</a>
</li>

<li class="nav__item">
<a
class="nav__link is-active"
href="#header"
>
Video
</a>
</li>
</ul>
</nav>

Choose a reason for hiding this comment

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

Add empty lines between multiline sibling blocks of HTML to add some 'air' and simplify reading. For example, there should be an empty line before and after each <li class="nav__item"> block.

Comment on lines +47 to +50
<a
class="nav__link is-active"
href="#header"
>

Choose a reason for hiding this comment

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

The class="nav__link is-active" suggests that all links are active, which is typically not the case. Usually, only one navigation link is 'active' at a time, indicating the current page or section. Ensure that the 'is-active' class is only applied to the appropriate link.

@Oleg473 Oleg473 closed this Sep 17, 2024
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