-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Develop #4535
Develop #4535
Conversation
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.
Good job 👍
Let's improve your code
src/index.html
Outdated
<link rel="preconnect" href="https://fonts.gstatic.com" | ||
crossorigin = "anonymous"> |
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.
Fix code style everywhere
<link rel="preconnect" href="https://fonts.gstatic.com" | |
crossorigin = "anonymous"> | |
<link | |
rel="preconnect" | |
href="https://fonts.gstatic.com" | |
crossorigin="anonymous" | |
> |
src/index.html
Outdated
<a class="header__logo" href="#" | ||
aria-label="Home"> |
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.
<a class="header__logo" href="#" | |
aria-label="Home"> | |
<a | |
class="header__logo" | |
href="#" | |
aria-label="Home" | |
> |
src/index.html
Outdated
</a> | ||
<nav class="header__nav"> | ||
<ul class="header__list"> | ||
<li class="nav__item"><a href="#" class="nav__link is-active">Apple</a></li> |
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.
Need to fix code style everywhere and add the blank line between the links
<li class="nav__item"><a href="#" class="nav__link is-active">Apple</a></li> | |
<li class="nav__item"> | |
<a href="#" class="nav__link is-active">Apple</a> | |
</li> | |
src/index.html
Outdated
<a href="#" class="nav__link" | ||
data-qa="hover">Laptops & computers</a> |
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.
<a href="#" class="nav__link" | |
data-qa="hover">Laptops & computers</a> | |
<a | |
href="#" | |
class="nav__link" | |
data-qa="hover" | |
> | |
Laptops & computers | |
</a> |
src/style.css
Outdated
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
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.
Default color
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.
напишіть що конкретно треба або пояснення
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.
мається на увазі що це і так дефолтний колір, то це правило тут не потрібне, просто видали його
src/style.css
Outdated
padding: 0 50px; | ||
} | ||
|
||
.header img { |
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 the classes selector for image
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.
як??????????? поясніть. Я учусь
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.
додай атрибут клас для цієї картинки і використовуй його замість img
src/style.css
Outdated
color: var(--main-color); | ||
} | ||
|
||
.nav__link.is-active::after { |
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.
.nav__link.is-active::after { | |
.is-active::after { |
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.
Great job overall! Just couple tiny things needs to be fixed before approval)
next time if you will have questions about review or something else plz ask it in your fe_chat
src/style.css
Outdated
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
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.
мається на увазі що це і так дефолтний колір, то це правило тут не потрібне, просто видали його
src/style.css
Outdated
padding: 0 50px; | ||
} | ||
|
||
.header img { |
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.
додай атрибут клас для цієї картинки і використовуй його замість img
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.
Need to fix last point
src/style.css
Outdated
padding: 0 50px; | ||
} | ||
|
||
.header__logo img { |
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.
still not fixed
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.
напиши як
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.
ви тут навчаэте чи допити влаштовуєте????
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.
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.
if you have additional questions ask in fe_chat
src/style.css
Outdated
padding: 0 50px; | ||
} | ||
|
||
.header__logo img { |
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.
src/index.html
Outdated
href="#" | ||
aria-label="Home" | ||
> | ||
<img src="./images/logo.png" alt="logo"> |
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.
<img src="./images/logo.png" alt="logo"> | |
<img class="header__img" src="./images/logo.png" alt="logo"> |
src/style.css
Outdated
padding: 0 50px; | ||
} | ||
|
||
.header__logo img { |
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.
.header__logo img { | |
.header__img { |
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.
а в чому помилка коли на тег а стояв клас?
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.
я не міг зрозуміти що потрібно якщо клас від а впринципі керував картинкою
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.
Завжди краще робити саме таким чином
Комбіновані селектори уже мають вищу специфічність, це надійніше і зручніше потім підтримувати якщо селектор це просто 1 класс :)
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.
.
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 ❗️