Skip to content

Week 1 - #1

Merged
xaosaki merged 6 commits into
masterfrom
week1
Aug 7, 2017
Merged

Week 1#1
xaosaki merged 6 commits into
masterfrom
week1

Conversation

@ishli

@ishli ishli commented Jul 31, 2017

Copy link
Copy Markdown
Owner

No description provided.

@ishli
ishli requested a review from xaosaki July 31, 2017 08:14

@xaosaki xaosaki left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

В целом очень много ненужных оберток.

  • нужно привести в порядок sass
    блоки разбить по файлам, переменные вынести в отдельный файл.
    модификаторы держать рядом с их базовыми элементами/блоками
    На кнопках нет ховер состояний

Comment thread index.html Outdated
<div class="wrapper">
<div class="maincontent">
<section id="main" class="section main">
<div class="header__container">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Почему-то . в header__container лежит и main__container. Так же элемент вне блока в данном случае не нужен. Рекомендую пересмотреть созвон более правильный пример разметки мы там показывали.

Comment thread index.html Outdated
</head>
<body>
<div class="wrapper">
<div class="maincontent">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Зачем тут две обертки?

Comment thread index.html Outdated
<header class="header">
<div class="container">
<div class="header__logo">
<a class="logo" href="#main">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Тут ссылка не нужна, так как лого у нас висит на месте.

Comment thread index.html Outdated
<div class="container">
<div class="header__logo">
<a class="logo" href="#main">
<img src="img/icons/logo.svg" alt="burgers logo">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Картинку лучше сделать элементом logo. Дать ей класс logo__image

Comment thread index.html Outdated
<li class="nav__item"><a class="nav__link" >контакты</a>
</li>
</ul>
</nav><a class="order-link btn">Заказать</a>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Кнопку желательно через БЭМ привязать к header (элементом)

Comment thread index.html Outdated
</span>
</a>
</section>
<section id="weAreBest" class="section best">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

В html CamelCase обычно не используют

Comment thread scss/layout.scss Outdated
.nav__list::after,
.menu-acco::after,
.order__form::after,
.form-row::after,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Зачем это все, есть же клирфикс

Comment thread scss/layout.scss Outdated
clear: both;
}

.fixed-menu {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Лучше вынести в отдельный файл. В БЭМ есть правило отдельный блок -- отдельный файл.

Comment thread scss/sections/best.scss Outdated
text-align: center;
}

.section__title_black {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Модификаторы лучше писать в файле с основным элементом

Comment thread scss/sections/reviews.scss Outdated
@@ -0,0 +1,77 @@
$black: #2f3234;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

переменные должны быть в одном файле

@xaosaki
xaosaki merged commit 1630c44 into master Aug 7, 2017
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