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

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

moyo-header #5757

wants to merge 3 commits into from

Conversation

AllanCordella
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • Header height is set in 1 place (for the links)

  • Content is vertically centered (for any header height)

  • CSS is used to show all letters in Uppercase (don't type them in HTML)

  • Logo is an image wrapped with a link

  • CSS Variable is used for a blue color

  • Pseudo-element is used for a blue line below the active link

  • 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 you've made a great start, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. Semantic Tags: The use of semantic tags is not fully correct. The <nav> element should not contain the logo, which is a core requirement for semantic HTML structure.

  2. CSS Variables: The absence of CSS variables for the blue color is a requirement that needs to be fulfilled.

  3. Class Name Typos: There are multiple typos in class names such as nav__iten and nav__itemt. These need to be corrected to ensure styles are applied correctly.

  4. Invalid href Attributes: Many href attributes are not valid URLs. They should be updated to valid relative or absolute paths to ensure proper navigation.

  5. CSS Hover Selector: The :hover selector is too generic. It should be more specific to avoid unintended styling across the site.

These issues are critical as they affect the functionality and core requirements of the task. Once these are resolved, your code will be in great shape! Keep up the good 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.

src/index.html Outdated
<ul class="nav__list">
<li class="nav__item">
<a
href="Apple"

Choose a reason for hiding this comment

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

The href attribute value 'Apple' should be a valid URL. Consider using a relative or absolute URL path, such as 'apple.html' or '/apple'.

src/index.html Outdated
</li>
<li class="nav__item">
<a
href="Samsung"

Choose a reason for hiding this comment

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

The href attribute value 'Samsung' should be a valid URL. Consider using a relative or absolute URL path, such as 'samsung.html' or '/samsung'.

src/index.html Outdated
</li>
<li class="nav__item">
<a
href="Smartphones"

Choose a reason for hiding this comment

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

The href attribute value 'Smartphones' should be a valid URL. Consider using a relative or absolute URL path, such as 'smartphones.html' or '/smartphones'.

src/index.html Outdated
data-qa="hover"
>
<a
href="Laptopsecomputers"

Choose a reason for hiding this comment

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

The href attribute value 'Laptopsecomputers' seems to be a typo or improperly formatted. Consider using a valid URL, such as 'laptops-computers.html' or '/laptops-computers'.

src/index.html Outdated
</li>
<li class="nav__item">
<a
href="Gadgets"

Choose a reason for hiding this comment

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

The href attribute value 'Gadgets' should be a valid URL. Consider using a relative or absolute URL path, such as 'gadgets.html' or '/gadgets'.

src/index.html Outdated
</li>
<li class="nav__itemt">
<a
href="Tablets"

Choose a reason for hiding this comment

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

The href attribute value 'Tablets' should be a valid URL. Consider using a relative or absolute URL path, such as 'tablets.html' or '/tablets'.

src/index.html Outdated
</li>
<li class="nav__item">
<a
href="Photo"

Choose a reason for hiding this comment

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

The href attribute value 'Photo' should be a valid URL. Consider using a relative or absolute URL path, such as 'photo.html' or '/photo'.

src/index.html Outdated
</li>
<li class="nav__item">
<a
href="Video"

Choose a reason for hiding this comment

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

The href attribute value 'Video' should be a valid URL. Consider using a relative or absolute URL path, such as 'video.html' or '/video'.

src/style.css Outdated
justify-content: space-between;
}

.nav__iten {

Choose a reason for hiding this comment

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

There is a typo in the class name '.nav__iten'. It should be '.nav__item' to match the HTML class names and ensure the styles are applied correctly.

src/style.css Outdated
align-items: center;
}

:hover {

Choose a reason for hiding this comment

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

The ':hover' selector is too generic and will apply to all elements. Consider using a more specific selector, such as '.nav__link:hover', to target only the navigation links.

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.

Review Summary

Great effort on your submission! 🎉 While your code is on the right track, there are a few critical points that need attention to fully meet the task requirements:

  1. Semantic Tags: The <nav> element still incorrectly contains the logo. To maintain proper semantic structure, the logo should be placed outside the <nav> element.

  2. CSS Variables: The use of CSS variables for colors, especially for the blue color used in hover effects and active states, is currently missing. Implementing CSS variables will improve the maintainability of your code.

  3. Invalid href Attributes: Although the href attributes are now valid URLs pointing to "https://mate.academy/", they should be updated to valid relative or absolute paths relevant to your project.

Despite these issues, the decision to approve your Pull Request is made to help you move forward with your learning. Please review the comments and address these issues to enhance your code quality. Remember, addressing these points will not only improve your current project but also strengthen your coding skills for future tasks. 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! ✨

Comment on lines +32 to +43
<header class="header">
<a
class="img"
href="index.html"
>
<img
src="images/logo.png"
alt="moyologo"
/>
</a>

<nav class="nav">

Choose a reason for hiding this comment

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

The <nav> element should not contain the logo. Consider moving the logo outside the <nav> element to maintain proper semantic structure.

src/index.html Outdated
Comment on lines 47 to 106
href="https://mate.academy/"
class="nav__link is-active"
>
Apple
</a>
</li>
<li class="nav__item">
<a
href="https://mate.academy/"
class="nav__link"
>
Samsung
</a>
</li>
<li class="nav__item">
<a
href="https://mate.academy/"
class="nav__link"
>
Smartphones
</a>
</li>
<li
class="nav__item"
data-qa="hover"
>
<a
href="https://mate.academy/"
class="nav__link"
>
Laptops & Computers
</a>
</li>
<li class="nav__item">
<a
href="https://mate.academy/"
class="nav__link"
>
Gadgets
</a>
</li>
<li class="nav__item">
<a
href="https://mate.academy/"
class="nav__link"
>
Tablets
</a>
</li>
<li class="nav__item">
<a
href="https://mate.academy/"
class="nav__link"
>
Photo
</a>
</li>
<li class="nav__item">
<a
href="https://mate.academy/"

Choose a reason for hiding this comment

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

The href attributes for the navigation links are currently pointing to https://mate.academy/. These should be updated to valid relative or absolute paths relevant to your project.

Comment on lines +78 to +80
.nav__link:hover {
color: #00acdc;
}

Choose a reason for hiding this comment

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

The :hover selector should be more specific to avoid unintended styling across the site. Consider using a more specific selector like .nav__link:hover.

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