-
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 #4932
base: master
Are you sure you want to change the base?
add task solution #4932
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.
src/index.html
Outdated
<header class="header"> | ||
<a | ||
href="#Home" | ||
class="image" | ||
> | ||
<img | ||
class="imageLogo" | ||
src="images/logo.png" | ||
alt="logo Moyo" | ||
/> | ||
</a> | ||
<nav class="nav"> | ||
<ul class="nav_list"> | ||
<li class="nav_li"> | ||
<a | ||
href="#" | ||
class="link is-active" | ||
> | ||
Apple | ||
</a> | ||
</li> | ||
<li class="nav_li"> | ||
<a | ||
href="#" | ||
class="link" | ||
> | ||
Samsung | ||
</a> | ||
</li> | ||
<li class="nav_li"> | ||
<a | ||
href="#" | ||
class="link" | ||
> | ||
Smartphones | ||
</a> | ||
</li> | ||
<li | ||
class="nav_li" | ||
data-qa="hover" | ||
> | ||
<a | ||
href="#" | ||
class="link" | ||
> | ||
Laptops & Computers | ||
</a> | ||
</li> | ||
<li class="nav_li"> | ||
<a | ||
href="#" | ||
class="link" | ||
> | ||
Gadgets | ||
</a> | ||
</li> | ||
<li class="nav_li"> | ||
<a | ||
href="#" | ||
class="link" | ||
> | ||
Tablets | ||
</a> | ||
</li> | ||
<li class="nav_li"> | ||
<a | ||
href="#" | ||
class="link" | ||
> | ||
Photo | ||
</a> | ||
</li> | ||
<li class="nav_li"> | ||
<a | ||
href="#" | ||
class="link" | ||
> | ||
Video | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</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.
Hello, @jonathanhora!
Remember to keep the BEM rules here. Instead of image
on line 36 and imageLogo
on line 38, you can use header__logo
and header__image
for example.
The same for the links, instead of nav_li
and link
, try to use nav__item
and nav__link
. You can also change nav_list
to nav__list
.
--font-texto-padrao: 'Roboto', sans-serif; | ||
--cor-texto-padrao: #000; | ||
--cor-ative: #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.
Change to english to keep the pattern on all code.
You can change to --default-text-font
, --default-text-color
and --active-color
for example.
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! 🚀🎉
DEMO LINK
TEST REPORT LINK
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 ❗️