-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Develop #5611
base: master
Are you sure you want to change the base?
Develop #5611
Conversation
pat5513
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.
Great job on your submission! 🎉 The code meets most of the task requirements and constraints, with only minor issues that don't significantly impact functionality. You've done well with the HTML structure and CSS styling. Just remember to specify units for properties like border-radius
to ensure the intended styling is applied. Keep up the good work and happy coding! 😊
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
src/style.css
Outdated
background-color: var(--nav-hover); | ||
border-radius: 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.
The border-radius
property should have a unit specified. It currently has a value of 50
, which is likely intended to be 50%
to create a rounded effect. Please correct this to ensure the desired styling is applied.
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.
test's are failing because of this extra spaces between elements
to fix it don't use display: inline-block
for li (also don't use tag names for styling )
instead use list-style: none;
and display: flex;
(for nav_links)
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.
Almost done 🚀
src/index.html
Outdated
<link | ||
rel="stylesheet" | ||
href="./style.css" | ||
/> | ||
</head> | ||
|
||
<body> | ||
<h1>Moyo header</h1> |
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.
you don't need this title ;)
src/style.css
Outdated
|
||
.header { | ||
display: flex; | ||
height: 60px; |
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.
Requirements: "the height should be set for nav links (not the header), take it from the design"
src/style.css
Outdated
.header__logo { | ||
align-self: center; | ||
display: flex; | ||
margin-left: 0; |
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.
don't need to reset margin-left
src/style.css
Outdated
justify-content: space-between; | ||
height: 100%; | ||
align-items: center; | ||
padding-inline-start: 0; |
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.
src/style.css
Outdated
align-items: center; | ||
height: 100%; |
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.
don't need align-items and it will be enough to add height only for link
src/style.css
Outdated
.is-active::after, | ||
.nav_link: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.
pseudo-element should be added only for link with is-active class so you can delete selector .nav_link:active::after
src/style.css
Outdated
.is-active:link { | ||
color: var(--link-on); | ||
text-decoration: none; | ||
font-size: 12px; | ||
text-transform: uppercase; | ||
align-items: center; | ||
display: flex; | ||
height: 100%; | ||
margin-left: 0; | ||
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.
you don't need all of these styles. remember that element has also nav_link class so you don't need to repeat styles that are added there
src/style.css
Outdated
height: 100%; | ||
} | ||
|
||
.nav_link: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.
you can just style nav__link without :link pseudo-class. also you don't need to style every state just hover ;)
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! You’re almost done. There are just a few small things to fix.
src/style.css
Outdated
|
||
.is-active { | ||
color: var(--link-on); | ||
margin-left: 0; |
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.
reset of margin with is-active is bad. You should use :first-child
pseudo class fro this
} | ||
|
||
.is-active { | ||
color: var(--link-on); |
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.
This color is not applied to the active link because .nav_link:visited
has higher specificity. You have to increase specificity of this selector to apply that active color.
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.
It should be
.nav_link.is_active {
}
To be more precise
align-items: center; | ||
} | ||
|
||
.nav_list { |
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.
ul tag is also applying some left padding. Thats why test's are failing.
src/style.css
Outdated
display: block; | ||
border-bottom: 4px solid var(--link-on); | ||
position: absolute; | ||
border-radius: 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.
I think that border radius on that underline should be higher. In figma i believe its 8px
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.
One small thing and we are good to go.
} | ||
|
||
.is-active { | ||
color: var(--link-on); |
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.
It should be
.nav_link.is_active {
}
To be more precise