-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 #4930
base: master
Are you sure you want to change the base?
add task solution #4930
Conversation
ell10tt
commented
May 6, 2024
- 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 ❗️
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 have to make some changes.
src/style.css
Outdated
height: 40px; | ||
} | ||
|
||
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.
use class selector here
src/style.css
Outdated
@@ -1,3 +1,90 @@ | |||
body { | |||
margin: 0; | |||
} | |||
|
|||
header { |
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.
use class selector here
header { | ||
font-size: 12px; | ||
text-transform: uppercase; | ||
box-sizing: border-box; |
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.
use this style with * selector
src/style.css
Outdated
text-transform: uppercase; | ||
box-sizing: border-box; | ||
width: 100vw; | ||
background-color: #ffff; |
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.
background-color: #ffff; | |
background-color: #fff; |
src/style.css
Outdated
.page-link:hover { | ||
color: #00acdc; | ||
} | ||
|
||
.is-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.
.page-link:hover { | |
color: #00acdc; | |
} | |
.is-active { | |
color: #00acdc; | |
} | |
.page-link:hover, | |
.is-active { | |
color: #00acdc; | |
} |
src/style.css
Outdated
.roboto-regular { | ||
font-family: Roboto, sans-serif; | ||
font-weight: 400; | ||
font-style: normal; | ||
} | ||
|
||
.roboto-medium { | ||
font-family: Roboto, sans-serif; | ||
font-weight: 500; | ||
font-style: normal; | ||
} | ||
|
||
.roboto-bold { | ||
font-family: Roboto, sans-serif; | ||
font-weight: 700; | ||
font-style: normal; | ||
} |
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 part looks redundant. Just connect font-family and font-style to html selector and use appropriate font-weight in other selectors
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.
plz provide demo and test link
src/index.html
Outdated
<a | ||
class="page-link is-active" | ||
href="#" | ||
> | ||
<li>Apple</li> | ||
</a> |
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 | |
class="page-link is-active" | |
href="#" | |
> | |
<li>Apple</li> | |
</a> | |
<li | |
class="nav__item" | |
> | |
<a href="#" class="nav__link is-active">Apple</a> | |
</li> |
tag a
should be inside the li
src/style.css
Outdated
|
||
.page-link:hover, | ||
.is-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.
better to move it to some var and reuse everywhere
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!
src/index.html
Outdated
</a> | ||
<nav class="roboto-medium"> |
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 space between elements on one level depths
src/index.html
Outdated
<ul class="nav__list"> | ||
<li class="nav__item"> | ||
<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 making links nearest to real practice change from #
to actual name /apple
in this case
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!)
<nav class="roboto-medium"> | ||
<ul class="nav__list"> | ||
<li class="nav__item"> | ||
<a | ||
href="#" | ||
href="https://www.moyo.ua/portal_brand/apple_1/" |
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 mean just write /apple
but okay) I approve it)