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 to review #1

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

Solution to review #1

wants to merge 6 commits into from

Conversation

SobchukSasha
Copy link

Review

@@ -7,6 +7,308 @@
<link rel="stylesheet" href="./styles/main.scss">
</head>
<body>
<h1>Catalog</h1>
<header class="header">

Copy link
Author

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>

Copy link
Author

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">
Copy link
Author

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">
Copy link
Author

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>
Copy link
Author

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">
Copy link
Author

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">
Copy link
Author

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>
Copy link
Author

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>
Copy link
Author

@SobchukSasha SobchukSasha Oct 4, 2022

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">
Copy link
Author

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="#"
Copy link
Author

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">
Copy link
Author

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">
Copy link
Author

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">
Copy link
Author

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">
Copy link
Author

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) {
Copy link
Author

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 {
Copy link
Author

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;

Copy link
Author

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;

Copy link
Author

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;

Copy link
Author

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">
Copy link
Author

@SobchukSasha SobchukSasha Oct 5, 2022

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">
Copy link
Author

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">
Copy link
Author

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">
Copy link
Author

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">
Copy link
Author

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">
Copy link
Author

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>
Copy link
Author

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>
Copy link
Author

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>
Copy link
Author

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>
Copy link
Author

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>
Copy link
Author

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.

Copy link

@Artem2427 Artem2427 left a comment

Choose a reason for hiding this comment

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

Reviewed

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.

5 participants