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

task-solution #5980

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

Conversation

Vladyslavbazenkomain
Copy link

@Vladyslavbazenkomain Vladyslavbazenkomain commented Jan 21, 2025

  • 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.


Great job on your submission! 🎉 Your code meets most of the task requirements and constraints, and it's clear you've put a lot of effort into it. Here are some key points and suggestions for improvement:

  • CSS Variables: You've correctly used a CSS variable for the blue color, which is excellent for maintainability.
  • Semantic HTML: The use of semantic tags like <header>, <nav>, and others is spot on.
  • Accessibility Improvements: Consider ensuring that the active color provides sufficient contrast against the background and that the text color is readable for users with visual impairments. Adding aria-current="page" to the active link can also enhance accessibility.
  • Font Loading: Make sure the 'Roboto' font is correctly loaded to avoid fallback to the default sans-serif font.
  • Testing Attributes: If the data-qa attribute is not needed in production, consider removing it.
  • Anchor Tags: Ensure that anchor tags have meaningful href attributes or roles to prevent unexpected behavior.

While there are a few areas for improvement, especially regarding accessibility and best practices, these should not hold you back. Addressing these issues will help you enhance your skills and produce even better code in the future. Keep up the great work and continue learning from these experiences! 🚀

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

<h1>Moyo header</h1>
<header class="header">
<div class="header__logo">
<a href="#">

Choose a reason for hiding this comment

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

The anchor tag <a href="#"> should have a more descriptive href attribute or a role attribute if it is meant to act as a button. Using # as href can cause unexpected behavior when clicked.

<nav class="nav">
<ul class="nav__list">
<li class="nav__item">
<a

Choose a reason for hiding this comment

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

Consider adding aria-current="page" to the active link for better accessibility. This attribute helps screen readers identify the current page.

</li>
<li class="nav__item">
<a
data-qa="hover"

Choose a reason for hiding this comment

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

The data-qa attribute is typically used for testing purposes. Ensure this is intended for production or remove it if it's only for development.

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

Choose a reason for hiding this comment

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

Ensure that the 'Roboto' font is correctly loaded in your HTML file. If the font fails to load, the browser will fall back to the default sans-serif font.

}

.nav__item a {
color: var(--primary-color);

Choose a reason for hiding this comment

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

Consider providing a higher contrast color for the text to improve readability, especially for users with visual impairments.

}

a.is-active {
color: var(--active-color);

Choose a reason for hiding this comment

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

Ensure that the active color provides sufficient contrast against the background for accessibility. You can use tools like WebAIM's contrast checker to verify this.

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