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 #5337

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

Conversation

DmytroHoncharuk
Copy 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 ❗️

  • DEMO LINK

  • TEST REPORT LINK

Copy link

@anastasiiavorobiova anastasiiavorobiova left a 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;

Choose a reason for hiding this comment

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

Suggested change
margin: 10px 50px;
margin: 10px 0;

.header {
display: flex;
align-items: center;
justify-content: space-between;

Choose a reason for hiding this comment

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

Suggested change
justify-content: space-between;
justify-content: space-between;
padding: 0 50px;

}

.li_nav {
margin-right: 20px;

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

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a 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"

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

Suggested change
src="images/moyo_1.png"
src="images/moyo.png"

src/index.html Outdated
Comment on lines 30 to 31
</a>
<nav class="nav">

Choose a reason for hiding this comment

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

Suggested change
</a>
<nav class="nav">
</a>
<nav class="nav">

src/index.html Outdated
Comment on lines 32 to 33
<ul class="ul__nav">
<li class="li_nav">

Choose a reason for hiding this comment

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

Fix classes everywhere

Suggested change
<ul class="ul__nav">
<li class="li_nav">
<ul class="nav__list">
<li class="nav__item">

src/index.html Outdated
Comment on lines 40 to 41
</li>
<li class="li_nav">

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

Suggested change
</li>
<li class="li_nav">
</li>
<li class="li_nav">

src/style.css Outdated
@@ -1,3 +1,70 @@
body {
margin: 0;
padding: 0;

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

Suggested change
padding: 0;

src/style.css Outdated
Comment on lines 7 to 8
margin: 0;
padding: 0;

Choose a reason for hiding this comment

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

Suggested change
margin: 0;
padding: 0;

src/style.css Outdated
padding: 0;
font-family: Roboto, sans-serif;

--active-color: #00acdc;

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;

Choose a reason for hiding this comment

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

Default

Suggested change
text-align: left;

Comment on lines +52 to +58
.nav__link:hover {
color: var(--active-color);
}

.is-active {
color: var(--active-color);
}

Choose a reason for hiding this comment

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

Suggested change
.nav__link:hover {
color: var(--active-color);
}
.is-active {
color: var(--active-color);
}
.nav__link:hover,
.is-active {
color: var(--active-color);
}

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.

4 participants