Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jonathanhora
Copy link

  • 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 ❗️

Copy link

@gitlherme gitlherme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, @jonathanhora!

Great job! 🚀

Just some points about the code, can you please check it? 🙏

src/index.html Outdated
Comment on lines 32 to 114
<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>
Copy link

@gitlherme gitlherme May 8, 2024

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.

Comment on lines +2 to +4
--font-texto-padrao: 'Roboto', sans-serif;
--cor-texto-padrao: #000;
--cor-ative: #00acdc;

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.

@jonathanhora jonathanhora requested a review from gitlherme May 8, 2024 23:57
Copy link

@gitlherme gitlherme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! 🚀🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants