-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
MOJO header #6114
base: master
Are you sure you want to change the base?
MOJO header #6114
Conversation
ivsasha
commented
Feb 11, 2025
- 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 you've made great progress, there are a few critical issues that need to be addressed before we can approve the pull request:
-
Use of
*
Selector: The use of the universal selector*
for resetting styles can impact performance and is against the task requirements. Consider using a more targeted approach for resetting styles. -
Flex Gap Property: The
gap
property is not supported in the testing environment. Please replace it withmargin
for spacing in the.menu ul
selector. -
CSS Variable for Blue Color: The task requires using a CSS variable for the blue color. Currently, the color
#00acdc
is used directly. Please define and use a CSS variable for this color. -
Header Height: The task specifies setting a specific height for the header, but it seems padding is used instead. Ensure the header height aligns with the task requirements.
-
Image Source Path: The logo image path should be
src/images
as per the task requirements, but it's currently set to./images/logo.png
. Please correct this path.
These changes are essential to meet the core requirements of the task. Once these are addressed, we can move forward with approval. Keep up the great 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
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<div class="logo"> | ||
<a href="#"> |
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 logo link to improve accessibility and SEO. Currently, it is set to #
, which doesn't provide meaningful navigation.
src/style.css
Outdated
align-items: center; | ||
} | ||
|
||
.menu .blue { |
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 .blue
class is defined here, which is used in the HTML file. Ensure that this color choice aligns with your overall design theme.
src/style.css
Outdated
color: #00acdc; | ||
} | ||
|
||
.menu .is-active::after { |
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 .is-active
class is styled with a pseudo-element for an underline effect. Verify that this effect is visually appealing and consistent with your design intentions.
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.
change css
що не так? |
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.
change css style
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 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.
Make sure to deploy your solution
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.
GJ 👍 Left a few comments to improve your code a bit
src/style.css
Outdated
align-items: center; | ||
} | ||
|
||
.menu ul { |
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.
same - add classes to ul, li, a and add styles to them directly, using class selector
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.
I don't think it's appropriate to add classes to li and a because there are a lot of them
src/style.css
Outdated
margin: 0; | ||
} | ||
|
||
.menu li { |
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 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.
give some class to li
and a
tags
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.
i have to add classes to each li element and to each a element?
src/style.css
Outdated
position: absolute; | ||
left: 50%; | ||
bottom: -0.2px; | ||
width: 35px; |
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.
width: 35px; | |
width: 100%; |
src/style.css
Outdated
content: ''; | ||
position: absolute; | ||
left: 50%; | ||
bottom: -0.2px; |
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.
bottom: -0.2px; | |
bottom: 0; |
src/style.css
Outdated
.menu .is-active::after { | ||
content: ''; | ||
position: absolute; | ||
left: 50%; |
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.
left: 50%; | |
left: 0; |
src/style.css
Outdated
height: 4px; | ||
border-radius: 8px; | ||
background-color: #00acdc; | ||
transform: translateX(-50%); |
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.
transform: translateX(-50%); |
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.
Good job 👍
Let's improve your code
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<div class="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.
Redundant wrapper
<div class="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.
Great work! 🔥