-
Notifications
You must be signed in to change notification settings - Fork 107
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
base: master
Are you sure you want to change the base?
Solution #108
Conversation
ArtemVelychko
commented
Apr 28, 2023
- DEMO LINK
- TEST REPORT LINK
> | ||
|
||
</head> |
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.
> | |
</head> | |
> | |
</head> |
src/index.html
Outdated
</a> | ||
<nav class="nav"> |
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.
Don't forget to add empty lines between multiline sibling blocks of HTML. Check it everywhere, please
</a> | |
<nav class="nav"> | |
</a> | |
<nav class="nav"> |
src/style.css
Outdated
@@ -1 +1,71 @@ | |||
/* Styles go here */ |
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.
remove redundant comments
src/style.css
Outdated
align-items: center; | ||
justify-content: space-between; | ||
padding: 0 50px; | ||
background-color: #fff; |
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.
Isn't it white by default?
background-color: #fff; |
src/style.css
Outdated
.nav__list { | ||
margin: 0; | ||
padding: 0; | ||
position: relative; |
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.
Do you really need a relative position here?
src/style.css
Outdated
|
||
.nav__link { | ||
display: block; | ||
position: relative; |
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.
Same here, remove it
src/style.css
Outdated
} | ||
|
||
.is-active { | ||
color: #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.
Use variables for repeatable colors
src/index.html
Outdated
<link | ||
rel="preconnect" | ||
href="https://fonts.gstatic.com" | ||
> |
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.
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
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet" | ||
> |
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.
In this case this syntax will look better
<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" | |
> |
:root { | ||
--blue: #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.
Basically, it's better to create a separate file for variables