-
Notifications
You must be signed in to change notification settings - Fork 4
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 to review #1
base: master
Are you sure you want to change the base?
Conversation
@@ -7,6 +7,308 @@ | |||
<link rel="stylesheet" href="./styles/main.scss"> | |||
</head> | |||
<body> | |||
<h1>Catalog</h1> | |||
<header class="header"> | |||
|
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.
Unnecessary empty string
<header class="header"> | ||
|
||
<div class="header__logo"></div> | ||
|
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.
Unnecessary empty string
<div class="header__logo"></div> | ||
|
||
<nav class="navigation"> | ||
<ul class="navigation__items-list"> |
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.
unnecessary empty string
|
||
<nav class="navigation"> | ||
<ul class="navigation__items-list"> | ||
<li class="navigation__items-list__item"> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
<nav class="navigation"> | ||
<ul class="navigation__items-list"> | ||
<li class="navigation__items-list__item"> | ||
<a href="#" class="navigation__link is-active">Apple</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.
Use a '--' for modifier instead whitespace
<li class="navigation__items-list__item"> | ||
<a href="#" class="navigation__link is-active">Apple</a> | ||
</li> | ||
<li class="navigation__items-list__item"> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
<li class="navigation__items-list__item"> | ||
<a href="#" class="navigation__link">Samsung</a> | ||
</li> | ||
<li class="navigation__items-list__item"> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
<a href="#" class="navigation__link is-active">Apple</a> | ||
</li> | ||
<li class="navigation__items-list__item"> | ||
<a href="#" class="navigation__link">Samsung</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.
Use new line for attributes
src/index.html
Outdated
<a href="#" class="navigation__link">Samsung</a> | ||
</li> | ||
<li class="navigation__items-list__item"> | ||
<a href="#" class="navigation__link">Смартфоны и телефоны</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.
Use new line for multiply attributes
<li class="navigation__items-list__item"> | ||
<a href="#" class="navigation__link">Смартфоны и телефоны</a> | ||
</li> | ||
<li class="navigation__items-list__item"> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
<a href="#" class="navigation__link">Смартфоны и телефоны</a> | ||
</li> | ||
<li class="navigation__items-list__item"> | ||
<a href="#" |
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.
Each attribute must be on a new line
Ноутбуки и компьютеры | ||
</a> | ||
</li> | ||
<li class="navigation__items-list__item"> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
<li class="navigation__items-list__item"> | ||
<a href="#" class="navigation__link">Гаджеты</a> | ||
</li> | ||
<li class="navigation__items-list__item"> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
<li class="navigation__items-list__item"> | ||
<a href="#" class="navigation__link">Планшеты</a> | ||
</li> | ||
<li class="navigation__items-list__item"> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
<li class="navigation__items-list__item"> | ||
<a href="#" | ||
class="navigation__link" | ||
data-qa="nav-hover"> |
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.
Closing bracket must be on the new line
&__stars--2 .stars__star:nth-child(-n+2), | ||
&__stars--3 .stars__star:nth-child(-n+3), | ||
&__stars--4 .stars__star:nth-child(-n+4), | ||
&__stars--5 .stars__star:nth-child(-n+5) { |
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.
Unnecessary nesting
align-items: flex-end; | ||
justify-content: space-between; | ||
|
||
&__word { |
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.
Here and below element in element - bad practice
width: 170px; | ||
height: 40px; | ||
margin-top: 20px; | ||
|
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.
Unneccessary empty line
border: 1px solid #00acdc; | ||
border-radius: 5px; | ||
background-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.
Unneccessary empty line
width: 40px; | ||
height: 40px; | ||
left: 50px; | ||
|
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.
Unneccessary empty line
<div class="card card--location" data-qa="card"> | ||
<img src="images/imac.jpeg" | ||
alt="imac" | ||
class="card__photo"> |
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.
Closing bracket must be on the new line in this case. Use new line for multiply attributes.
</a> | ||
</div> | ||
|
||
<div class="card card--location" data-qa="card"> |
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.
Only for the first card data-qa="card". Use new line for multiply attributes.
Card is block and location is element in this case.
</a> | ||
</div> | ||
|
||
<div class="card card--location" data-qa="card"> |
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.
Only for the first card data-qa="card". Use new line for multiply attributes.
Card is block and location is element in this case.
</a> | ||
</div> | ||
|
||
<div class="card card--location" data-qa="card"> |
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.
Only for the first card data-qa="card". Use new line for multiply attributes.
Card is block and location is element in this case.
</a> | ||
</div> | ||
|
||
<div class="card card--location" data-qa="card"> |
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.
Only for the first card data-qa="card". Use new line for multiply attributes.
Card is block and location is element in this case.
</a> | ||
</div> | ||
|
||
<div class="card card--location" data-qa="card"> |
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.
Only for the first card data-qa="card". Use new line for multiply attributes.
Card is block and location is element in this case.
src/index.html
Outdated
|
||
<div class="card__price"> | ||
<p class="card__price__word">Цена:</p> | ||
<p class="card__price__value">69 999 грн</p> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
src/index.html
Outdated
|
||
<div class="card__price"> | ||
<p class="card__price__word">Цена:</p> | ||
<p class="card__price__value">69 999 грн</p> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
src/index.html
Outdated
|
||
<div class="card__price"> | ||
<p class="card__price__word">Цена:</p> | ||
<p class="card__price__value">69 999 грн</p> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
src/index.html
Outdated
|
||
<div class="card__price"> | ||
<p class="card__price__word">Цена:</p> | ||
<p class="card__price__value">69 999 грн</p> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
src/index.html
Outdated
|
||
<div class="card__price"> | ||
<p class="card__price__word">Цена:</p> | ||
<p class="card__price__value">69 999 грн</p> |
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.
An element is always part of a block, not a second element. This means that the block__elem1__elem2 hierarchy cannot be written in the name of the elements.
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.
Reviewed
Review