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 task solution #5864

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

add task solution #5864

wants to merge 1 commit into from

Conversation

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

Review Summary

Great job on your submission! 🎉 Your code meets most of the task requirements, and you've done well in using semantic HTML tags, CSS variables, and implementing the required styling features. However, there are a few areas for improvement:

  • Link href Attributes: Ensure that the href attributes are correctly formatted and descriptive. Avoid using spaces or special characters like & without proper encoding.
  • Image Alt Text: The alt attribute for images should be descriptive of the image's content or function, such as 'Moyo Logo' instead of 'Moyo.png'.
  • CSS Specificity: Consider simplifying your CSS selectors to avoid specificity conflicts, such as using .link.is-active instead of .is-active.link.
  • Unnecessary CSS Properties: Remove any unnecessary CSS properties, such as the color property in .is-active::after.
  • HTML Formatting: Keep lines within 80 characters for better readability.
  • Flexbox Usage: Adhere to the task requirement of using margin instead of the gap property for spacing in Flexbox.
  • Header Height: Ensure the header height is set for the nav links, not the header itself.

These adjustments will enhance the functionality and maintainability of your code. Keep up the good work, and make sure to address these points in future projects to continue improving your skills! 🚀

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

src="/src/images/logo.png"
width="40"
height="40"
alt="Moyo.png"

Choose a reason for hiding this comment

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

The alt attribute for the image is 'Moyo.png', which is not descriptive. Alt text should describe the content or function of the image, such as 'Moyo Logo'.

<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' seems to be a relative path. Ensure that this path correctly points to the intended resource or page. Consider using a more descriptive path or filename if necessary.


<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 checked to ensure it correctly points to the intended resource. Consider using a more descriptive path or filename if necessary.


<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 verified to ensure it correctly points to the intended resource. Consider using a more descriptive path or filename if necessary.

<li class="nav__item">
<a
class="link"
href="laptops&computers"

Choose a reason for hiding this comment

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

The href attribute value 'laptops&computers' contains an ampersand. Ensure that this URL is correctly formatted and points to the intended resource. Consider using URL encoding if necessary.


<li class="nav__item">
<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 verified to ensure it correctly points to the intended resource. Consider using a more descriptive path or filename if necessary.


<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 verified to ensure it correctly points to the intended resource. Consider using a more descriptive path or filename if necessary.


<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 verified to ensure it correctly points to the intended resource. Consider using a more descriptive path or filename if necessary.

}

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

Choose a reason for hiding this comment

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

The selector '.is-active.link' might be overly specific. Consider using '.link.is-active' to maintain consistency with other class selectors and avoid specificity conflicts.

.is-active::after {
content: '';
position: absolute;
color: #00acdc;

Choose a reason for hiding this comment

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

The 'color' property in '.is-active::after' is not necessary since the pseudo-element is a block with a background color. You can remove this line to clean up the code.

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