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

Moyo Header #4908

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

Moyo Header #4908

wants to merge 6 commits into from

Conversation

LitviVit
Copy link

@LitviVit LitviVit commented Apr 29, 2024

  • 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

@roman-mirzoian roman-mirzoian left a comment

Choose a reason for hiding this comment

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

Good job, but pay attention to this comments.

src/index.html Outdated
>
<img
src="./images/logo.png"
alt="logo"

Choose a reason for hiding this comment

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

For logos, use the format: "[Organization name] logo."
Example:
image

src/style.css Outdated
margin-right: 50px;
}

.logo img {

Choose a reason for hiding this comment

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

Let`s use classes instead of tags as selectors.

src/style.css Outdated
}

body {
/* stylelint-disable-next-line font-family-name-quotes */

Choose a reason for hiding this comment

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

Try to write the code so that it is not necessary to disable the linter.

@LitviVit LitviVit requested a review from roman-mirzoian May 2, 2024 09:51
Copy link

@roman-mirzoian roman-mirzoian left a comment

Choose a reason for hiding this comment

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

Nice job, but the HTML formatting needs some work.

src/index.html Outdated
Comment on lines 29 to 46
<li class="list_item">
<a href="#" class="nav_link">Samsung</a>
</li>
<li class="list_item">
<a href="#" class="nav_link">Smartphones</a>
</li>
<li class="list_item">
<a href="#" data-qa="hover" class="nav_link">Laptops & Computers</a>
</li>
<li class="list_item">
<a href="#" class="nav_link">Gadgets</a>
</li>
<li class="list_item">
<a href="#" class="nav_link">Tablets</a>
</li>
<li class="list_item">
<a href="#" class="nav_link">Photo</a>
</li>

Choose a reason for hiding this comment

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

Add empty lines between multiline sibling blocks of HTML

image

src/index.html Outdated
Comment on lines 26 to 28
<li class="list_item">
<a href="#" class="nav_link is-active">Apple</a>
</li>

Choose a reason for hiding this comment

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

Keep your attributes correctly formatted.

Suggested change
<li class="list_item">
<a href="#" class="nav_link is-active">Apple</a>
</li>
<li class="list_item">
<a
href="#"
class="nav_link is-active"
>
Apple
</a>
</li>

image

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I knew that only 2 attributes in a single line are allowed. But the Prettier reduces everything to one attribute in a line. That's why I changed my formatter's default settings. But okay. I'll fix it the way you wish

@LitviVit LitviVit requested a review from roman-mirzoian May 3, 2024 09:56
Copy link

@dinaminahi dinaminahi left a comment

Choose a reason for hiding this comment

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

Well done ⭐

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.

3 participants