-
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
add task solution #5337
base: master
Are you sure you want to change the base?
add task solution #5337
Conversation
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! Almost done!
src/style.css
Outdated
} | ||
|
||
.logo-image { | ||
margin: 10px 50px; |
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.
margin: 10px 50px; | |
margin: 10px 0; |
.header { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; |
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.
justify-content: space-between; | |
justify-content: space-between; | |
padding: 0 50px; |
} | ||
|
||
.li_nav { | ||
margin-right: 20px; |
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 removing the margin right for the last child
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!
Let's make your code better
src/index.html
Outdated
class="logo" | ||
> | ||
<img | ||
src="images/moyo_1.png" |
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 already have this image
src="images/moyo_1.png" | |
src="images/moyo.png" |
src/index.html
Outdated
</a> | ||
<nav class="nav"> |
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.
</a> | |
<nav class="nav"> | |
</a> | |
<nav class="nav"> |
src/index.html
Outdated
<ul class="ul__nav"> | ||
<li class="li_nav"> |
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.
Fix classes everywhere
<ul class="ul__nav"> | |
<li class="li_nav"> | |
<ul class="nav__list"> | |
<li class="nav__item"> |
src/index.html
Outdated
</li> | ||
<li class="li_nav"> |
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.
Add the blank line between the links
</li> | |
<li class="li_nav"> | |
</li> | |
<li class="li_nav"> |
src/style.css
Outdated
@@ -1,3 +1,70 @@ | |||
body { | |||
margin: 0; | |||
padding: 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.
The body hasn't a padding
padding: 0; |
src/style.css
Outdated
margin: 0; | ||
padding: 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.
margin: 0; | |
padding: 0; |
src/style.css
Outdated
padding: 0; | ||
font-family: Roboto, sans-serif; | ||
|
||
--active-color: #00acdc; |
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.
Create a variable with :root
selector
src/style.css
Outdated
color: #000; | ||
font-size: 12px; | ||
font-weight: 500; | ||
text-align: left; |
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.
Default
text-align: left; |
.nav__link:hover { | ||
color: var(--active-color); | ||
} | ||
|
||
.is-active { | ||
color: var(--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.
.nav__link:hover { | |
color: var(--active-color); | |
} | |
.is-active { | |
color: var(--active-color); | |
} | |
.nav__link:hover, | |
.is-active { | |
color: var(--active-color); | |
} |
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 ❗️
DEMO LINK
TEST REPORT LINK