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 solution #6102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Ivanna-Fedor
Copy link

  • DEMO LINK
  • TEST REPORT LINK
  • [x]Header height is set in 1 place (for the links)
  • [x]Content is vertically centered (for any header height)
  • [x]CSS is used to show all letters in Uppercase (don't type them in HTML)
  • [x]Logo is an image wrapped with a link
  • [x]CSS Variable is used for a blue color
  • [x]Pseudo-element is used for a blue line below the active link
  • [x]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.

Great job on meeting most of the task requirements! 🎉 While there are a few minor improvements suggested, such as enhancing the alt attribute for better accessibility and refining the CSS for performance, these do not impact the core functionality. Keep up the good work and consider these suggestions for future enhancements! 😊

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

Comment on lines +36 to +37
src="images/logo.png"
alt="logo"

Choose a reason for hiding this comment

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

Consider using a more descriptive alt attribute for the logo image to improve accessibility. For example, alt="Moyo Logo".

<ul class="nav__list">
<li class="nav__link">
<a
href="#"

Choose a reason for hiding this comment

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

The href attribute is set to #, which is a placeholder. Ensure to update it to point to the actual page or section when the links are functional.

APPLE
</a>
</li>
<li class="nav__link"><a href="#">SAMSUNG</a></li>

Choose a reason for hiding this comment

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

The href attribute is set to #, which is a placeholder. Ensure to update it to point to the actual page or section when the links are functional.

</a>
</li>
<li class="nav__link"><a href="#">SAMSUNG</a></li>
<li class="nav__link"><a href="#">SMARTPHONES</a></li>

Choose a reason for hiding this comment

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

The href attribute is set to #, which is a placeholder. Ensure to update it to point to the actual page or section when the links are functional.

<li class="nav__link"><a href="#">SMARTPHONES</a></li>
<li class="nav__link">
<a
href="#"

Choose a reason for hiding this comment

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

The href attribute is set to #, which is a placeholder. Ensure to update it to point to the actual page or section when the links are functional.

</li>
<li class="nav__link"><a href="#">GADGETS</a></li>
<li class="nav__link"><a href="#">TABLETS</a></li>
<li class="nav__link"><a href="#">PHOTO</a></li>

Choose a reason for hiding this comment

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

The href attribute is set to #, which is a placeholder. Ensure to update it to point to the actual page or section when the links are functional.

<li class="nav__link"><a href="#">GADGETS</a></li>
<li class="nav__link"><a href="#">TABLETS</a></li>
<li class="nav__link"><a href="#">PHOTO</a></li>
<li class="nav__link"><a href="#">VIDEO</a></li>

Choose a reason for hiding this comment

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

The href attribute is set to #, which is a placeholder. Ensure to update it to point to the actual page or section when the links are functional.

@@ -1,3 +1,64 @@
body {
margin: 0;
padding: 0;
font-family: Roboto, serif;

Choose a reason for hiding this comment

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

Consider using a fallback font in case 'Roboto' is not available. For example, font-family: 'Roboto', Arial, sans-serif;.


.nav__link a {
text-decoration: none;
color: black;

Choose a reason for hiding this comment

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

Ensure that the color contrast between the text and background is sufficient for accessibility. The current color 'black' on a white background is generally good, but be mindful of other potential background colors.


a.is-active,
.nav__link a:hover {
color: var(--blue-color);

Choose a reason for hiding this comment

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

Using CSS variables like var(--blue-color) is a good practice for maintainability. Ensure that this variable is defined in the :root selector, which it is in this case.

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