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

Solution #108

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

Solution #108

wants to merge 2 commits into from

Conversation

ArtemVelychko
Copy link

Comment on lines +20 to 22
>

</head>

Choose a reason for hiding this comment

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

Suggested change
>
</head>
>
</head>

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

Choose a reason for hiding this comment

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

Don't forget to add empty lines between multiline sibling blocks of HTML. Check it everywhere, please

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

src/style.css Outdated
@@ -1 +1,71 @@
/* Styles go here */

Choose a reason for hiding this comment

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

remove redundant comments

src/style.css Outdated
align-items: center;
justify-content: space-between;
padding: 0 50px;
background-color: #fff;

Choose a reason for hiding this comment

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

Isn't it white by default?

Suggested change
background-color: #fff;

src/style.css Outdated
.nav__list {
margin: 0;
padding: 0;
position: relative;

Choose a reason for hiding this comment

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

Do you really need a relative position here?

src/style.css Outdated

.nav__link {
display: block;
position: relative;

Choose a reason for hiding this comment

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

Same here, remove it

src/style.css Outdated
}

.is-active {
color: #00acdc;

Choose a reason for hiding this comment

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

Use variables for repeatable colors

src/index.html Outdated
Comment on lines 14 to 17
<link
rel="preconnect"
href="https://fonts.gstatic.com"
>

Choose a reason for hiding this comment

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

You don't really need to wrap the line if there are only 2 attributes. But it's up to you actually

src/index.html Outdated
Comment on lines 18 to 20
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet"
>

Choose a reason for hiding this comment

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

In this case this syntax will look better

Suggested change
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet"
>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap"
rel="stylesheet"
>

Comment on lines +1 to +3
:root {
--blue: #00acdc;
}

Choose a reason for hiding this comment

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

Basically, it's better to create a separate file for variables

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