-
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
add solution #5613
base: master
Are you sure you want to change the base?
add solution #5613
Conversation
Vlad-2608
commented
Oct 28, 2024
- DEMO LINK
- TEST REPORT LINK
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 your code meets most of the task requirements, there are a few critical issues that need to be addressed before we can approve the pull request:
-
href
Attribute: Thehref
attribute is currently set to#
, which is not a valid destination. This affects navigation and accessibility. Please update it to a valid URL or a meaningful identifier. -
Image
alt
Attribute: Thealt
attribute for the logo image is simply 'Logo'. It would be more accessible if it were descriptive enough to convey the purpose or the brand it represents.
These changes are important for ensuring the functionality and accessibility of your project. Once these are addressed, we can proceed with approval. Keep up the great work, and don't hesitate to reach out if you have any questions! 😊
✨ 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
<a | ||
href="#" | ||
class="img" |
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.
Consider adding a more descriptive href
attribute for the anchor tag instead of #
. This will improve accessibility and usability by providing a meaningful link destination.
src/index.html
Outdated
<img | ||
src="./images/logo.png" | ||
alt="Logo" |
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.
Ensure that the alt
attribute for the image is descriptive enough to convey the purpose of the image to users who rely on screen readers. Currently, 'Logo' might not be sufficient if the logo represents a brand or company.
src/index.html
Outdated
<a | ||
href="#" | ||
class="nav__link is-active" |
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 is set to #
, which is not a valid destination. Consider providing a valid URL or a meaningful identifier for in-page navigation.
src/index.html
Outdated
<a | ||
href="#" | ||
class="nav__link" |
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.
Similar to previous comments, ensure the href
attribute points to a valid URL or meaningful identifier for better accessibility.
src/index.html
Outdated
<a | ||
href="#" | ||
class="nav__link" |
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.
Ensure the href
attribute is set to a valid URL or meaningful identifier to improve navigation and accessibility.
src/index.html
Outdated
<a | ||
href="#" | ||
class="nav__link" |
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.
Consider updating the href
attribute to a valid URL or meaningful identifier to improve navigation and accessibility.
src/style.css
Outdated
@@ -1,3 +1,65 @@ | |||
body { | |||
--color: #00acdc; | |||
|
|||
font-family: Roboto, serif; |
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.
Consider using a more specific font stack for better fallback options. For example, 'Roboto, Arial, sans-serif' would provide a more consistent appearance across different browsers and systems.
src/style.css
Outdated
.nav__link { | ||
font-size: 12px; | ||
text-decoration: none; | ||
color: black; |
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.
Using a specific color like 'black' can be inflexible. Consider using a CSS variable or a more flexible color scheme to allow for easier theme changes in the future.
src/style.css
Outdated
} | ||
|
||
.nav__item { | ||
font-weight: 500; |
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 font-weight of 500 might not be supported by all fonts. Ensure that the 'Roboto' font includes this weight or consider using a more common weight like 400 or 600.
src/style.css
Outdated
} | ||
|
||
.is-active { | ||
position: relative; |
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 use of 'position: relative;' on '.is-active' suggests that there might be positioned children. Ensure this is necessary for the intended design, as it can affect layout in unexpected ways.