-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Исправляет ошибки и исправляет pixel perfect (#17)
* Доделывает проект для сдачи * поправляет карту каталога * исправляет по pixelperfect
- Loading branch information
1 parent
587dca6
commit d42b380
Showing
23 changed files
with
228 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
<link rel="apple-touch-icon" href="favicons/180.png"> | ||
<link rel="manifest" href="manifest.webmanifest"> | ||
<script src="scripts/index.js" defer></script> | ||
<link rel="preload" href="fonts/lato/Lato-Regular.woff2" as="font" crossorigin="anonymous"> | ||
<link rel="preload" href="fonts/oswald/oswaldregular.woff2" as="font" crossorigin="anonymous"> | ||
</head> | ||
|
||
<body class="page__body nojs"> | ||
|
@@ -25,7 +27,7 @@ | |
</picture> | ||
</a> | ||
<a class="header__logo-text logo " href="index.html" aria-current="page"> | ||
<img class="logo__image" src="images/logo-text.svg" width="101" height="18" alt="Логотип cat energy надписью"> | ||
<img class="logo__image logo__image--text" src="images/logo-text.svg" width="101" height="18" alt="Логотип cat energy надписью"> | ||
</a> | ||
<button class="header__toggle button-toggle button-toggle--closed" type="button" id="button"> | ||
<span class="visually-hidden">Меню</span> | ||
|
@@ -90,10 +92,10 @@ <h3 class="card__title">Cat Energy PRO 500 г</h3> | |
<a class="card__link" href="#" tabindex="-1"> | ||
<picture> | ||
<source media="(min-width: 1440px)" srcset="images/[email protected], images/[email protected] 2x" width="172" height="196" type="image/webp"> | ||
<source media="(min-width: 768px)" srcset="images/[email protected], images/[email protected] 2x" width="168" height="206" type="image/webp"> | ||
<source media="(min-width: 768px)" srcset="images/[email protected], images/[email protected] 2x" width="200" height="206" type="image/webp"> | ||
<source media="(min-width: 320px)" srcset="images/[email protected], images/[email protected] 2x" width="84" height="100" type="image/webp"> | ||
<source media="(min-width: 1440px)" srcset="images/[email protected], images/[email protected] 2x" width="172" height="196" type="image/png"> | ||
<source media="(min-width: 768px)" srcset="images/[email protected], images/[email protected] 2x" width="168" height="206" type="image/png"> | ||
<source media="(min-width: 768px)" srcset="images/[email protected], images/[email protected] 2x" width="200" height="206" type="image/png"> | ||
<img class="card__image" src="images/[email protected]" srcset="images/[email protected] 2x" width="84" height="100" alt="Продукт со вкусом курицы 1000 г"> | ||
</picture> | ||
</a> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
<link rel="apple-touch-icon" href="favicons/180.png"> | ||
<link rel="manifest" href="manifest.webmanifest"> | ||
<script src="scripts/index.js" defer></script> | ||
<link rel="preload" href="fonts/lato/Lato-Regular.woff2" as="font" crossorigin="anonymous"> | ||
<link rel="preload" href="fonts/oswald/oswaldregular.woff2" as="font" crossorigin="anonymous"> | ||
</head> | ||
|
||
<body class="page__body nojs"> | ||
|
@@ -25,7 +27,7 @@ | |
</picture> | ||
</a> | ||
<a class="header__logo-text logo " href="index.html" aria-current="page"> | ||
<img class="logo__image" src="images/logo-text.svg" width="101" height="18" alt="Логотип cat energy надписью"> | ||
<img class="logo__image logo__image--text" src="images/logo-text.svg" width="101" height="18" alt="Логотип cat energy надписью"> | ||
</a> | ||
<button class="header__toggle button-toggle button-toggle--closed" type="button" id="button"> | ||
<span class="visually-hidden">Меню</span> | ||
|
@@ -50,8 +52,7 @@ | |
<main class="main"> | ||
<section class="hero"> | ||
<div class="hero__wrapper wrapper"> | ||
<h1 class="hero__title">Функциональное | ||
питание для котов</h1> | ||
<h1 class="hero__title">Функциональное<br>питание для котов</h1> | ||
<p class="hero__subtitle">Занялся собой? Займись котом!</p> | ||
<div class="hero__image"> | ||
<picture> | ||
|
@@ -67,19 +68,19 @@ <h1 class="hero__title">Функциональное | |
</div> | ||
</section> | ||
|
||
<section class="programms"> | ||
<div class="programms__wrapper wrapper"> | ||
<section class="programs"> | ||
<div class="programs__wrapper wrapper"> | ||
<h2 class="visually-hidden">Выбор программы</h2> | ||
<ul class="programms__list"> | ||
<li class="programms__item programms__item--slim"> | ||
<h3 class="programms__title">Похудение</h3> | ||
<p class="programms__description">Ваш кот весит больше собаки и почти утратил способность лазить по деревьям? Пора на диету! Cat Energy Slim поможет вашему питомцу сбросить лишний вес.</p> | ||
<a class="programms__link" href="#">Каталог Slim</a> | ||
<ul class="programs__list"> | ||
<li class="programs__item programs__item--slim"> | ||
<h3 class="programs__title">Похудение</h3> | ||
<p class="programs__description">Ваш кот весит больше собаки и почти утратил способность лазить по деревьям? Пора на диету! Cat Energy Slim поможет вашему питомцу сбросить лишний вес.</p> | ||
<a class="programs__link" href="#">Каталог Slim</a> | ||
</li> | ||
<li class="programms__item programms__item--pro"> | ||
<h3 class="programms__title">Набор массы</h3> | ||
<p class="programms__description">Заработать авторитет среди дворовых котов и даже собак? Серия Cat Energy Pro поможет вашему коту нарастить необходимые мышцы!</p> | ||
<a class="programms__link" href="#">Каталог Pro</a> | ||
<li class="programs__item programs__item--pro"> | ||
<h3 class="programs__title">Набор массы</h3> | ||
<p class="programs__description">Заработать авторитет среди дворовых котов и даже собак? Серия Cat Energy Pro поможет вашему коту нарастить необходимые мышцы!</p> | ||
<a class="programs__link" href="#">Каталог Pro</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
@@ -115,20 +116,20 @@ <h2 class="instructions__title">Как это работает</h2> | |
<div class="example__wrapper wrapper"> | ||
<h2 class="example__title">Живой пример</h2> | ||
<p class="example__subtitle">Борис сбросил 5 кг за 2 месяца, просто заменив свой обычный корм на Cat Energy Slim. Отличный результат без изнуряющих тренировок! При этом он не менял своих привычек и по-прежнему спит по 16 часов в день.</p> | ||
<div class="example__stats-container"> | ||
<dl class="example__list example__list--weight"> | ||
<dt class="example__number example__number--weight">5 КГ</dt> | ||
<dd class="example__description example__description--weight">снижение веса</dd> | ||
</dl> | ||
<dl class="example__list example__list--time"> | ||
<dt class="example__number example__number--time">60 ДНЕЙ</dt> | ||
<dd class="example__description example__description--time">затрачено времени</dd> | ||
</dl> | ||
<dl class="example__list example__list--cost"> | ||
<dl class="example__list"> | ||
<div class="example__item example__item--weight"> | ||
<dt class="example__description example__description--weight">Снижение веса</dt> | ||
<dd class="example__number example__number--weight">5 кг</dd> | ||
</div> | ||
<div class="example__item example__item--time"> | ||
<dt class="example__description example__description--time">Затрачено времени</dt> | ||
<dd class="example__number example__number--time">60 дней</dd> | ||
</div> | ||
<div class="example__item example__item--cost"> | ||
<dt class="example__expenses">Затраты на питание:</dt> | ||
<dd class="example__total">15 000 РУБ.</dd> | ||
</dl> | ||
</div> | ||
<dd class="example__total">15 000 руб.</dd> | ||
</div> | ||
</dl> | ||
<div class="example__demonstration demonstration"> | ||
<picture> | ||
<source media="(min-width: 768px)" srcset="images/[email protected], images/[email protected] 2x" width="560" height="512" type="image/webp"> | ||
|
@@ -153,14 +154,13 @@ <h2 class="example__title">Живой пример</h2> | |
|
||
<section class="location" data-test="contacts"> | ||
<div class="location__wrapper wrapper"> | ||
<h2 class="location__title">Приглашаем к сотрудничеству дилеров!</h2> | ||
<h2 class="location__title">Приглашаем<br>к сотрудничеству<br>дилеров!</h2> | ||
<address class="location__address"> | ||
<p class="location__street">ул. Большая | ||
Конюшенная, д. 19/8</p> | ||
<p class="location__street">ул. Большая<br>Конюшенная, д. 19/8</p> | ||
<p class="location__city">Санкт-Петербург</p> | ||
</address> | ||
</div> | ||
<div class="location-map"> | ||
<div class="location__map"> | ||
<h2 class="visually-hidden">Карта</h2> | ||
<div class="location__image-container"> | ||
<picture> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,5 +53,6 @@ | |
|
||
@media (min-width: $desktop-width) { | ||
margin: 0; | ||
padding: 5px 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
} | ||
|
||
&:active { | ||
color: rgba($base-color-white, 0.3); | ||
color: rgba($base-color-white, 0.4); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ | |
} | ||
|
||
@media (min-width: $desktop-width) { | ||
margin-top: 81px; | ||
margin-top: 88px; | ||
width: 243px; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.