-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
base: master
Are you sure you want to change the base?
moyo-header #5757
Conversation
There was a problem hiding this 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:
-
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. -
CSS Variables: The absence of CSS variables for the blue color is a requirement that needs to be fulfilled.
-
Class Name Typos: There are multiple typos in class names such as
nav__iten
andnav__itemt
. These need to be corrected to ensure styles are applied correctly. -
Invalid
href
Attributes: Manyhref
attributes are not valid URLs. They should be updated to valid relative or absolute paths to ensure proper navigation. -
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this 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:
-
Semantic Tags: The
<nav>
element still incorrectly contains the logo. To maintain proper semantic structure, the logo should be placed outside the<nav>
element. -
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.
-
Invalid
href
Attributes: Although thehref
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! ✨
<header class="header"> | ||
<a | ||
class="img" | ||
href="index.html" | ||
> | ||
<img | ||
src="images/logo.png" | ||
alt="moyologo" | ||
/> | ||
</a> | ||
|
||
<nav class="nav"> |
There was a problem hiding this comment.
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
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/" |
There was a problem hiding this comment.
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.
.nav__link:hover { | ||
color: #00acdc; | ||
} |
There was a problem hiding this comment.
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
.
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 ❗️