-
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.
Merge pull request #12 from vic-knyazeva/module9-task3
Module9 task3
- Loading branch information
Showing
20 changed files
with
120 additions
and
96 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
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
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 |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
<title>Cat Energy: Функциональное питание для котов</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<link rel="stylesheet" href="styles/styles.css"> | ||
<script src="scripts/index.js" defer></script> | ||
<link rel="icon" href="favicon.ico"> | ||
<link rel="icon" href="favicons/icon.svg" type="image/svg+xml"> | ||
<link rel="apple-touch-icon" href="favicons/apple.png"> | ||
|
@@ -76,12 +75,13 @@ <h2 class="visually-hidden">Варианты рациона для Кота</h2> | |
<li class="diets__item diets__item--weight-loss"> | ||
<h3 class="diets__title">Похудение</h3> | ||
<p class="diets__description">Ваш кот весит больше собаки и почти утратил способность лазить по деревьям? Пора на диету! Cat Energy Slim поможет вашему питомцу сбросить лишний вес.</p> | ||
<a class="diets__link" href="#">Каталог slim</a> | ||
<a class="diets__link" href="./catalog.html">Каталог slim</a> | ||
</li> | ||
|
||
<li class="diets__item diets__item--weight-gain"> | ||
<h3 class="diets__title">Набор массы</h3> | ||
<p class="diets__description">Заработать авторитет среди дворовых котов и даже собак? Серия Cat Energy Pro поможет вашему коту нарастить необходимые мышцы!</p> | ||
<a class="diets__link" href="#">Каталог pro</a> | ||
<a class="diets__link" href="./catalog.html">Каталог pro</a> | ||
</li> | ||
</ul> | ||
</section> | ||
|
@@ -99,7 +99,7 @@ <h2 class="benefits__title">Как это работает</h2> | |
<p class="benefits__description">Замените один-два приема обычной еды на наше функциональное питание.</p> | ||
</li> | ||
<li class="benefits__item benefits__item--time"> | ||
<p class="benefits__description">Уже через месяц наслаждайтесь изменениями к лучшему вашего питомца!</p> | ||
<p class="benefits__description">Уже через месяц наслаждайтесь изменениями к лучшему вашего питомца!</p> | ||
</li> | ||
</ul> | ||
</div> | ||
|
@@ -128,15 +128,15 @@ <h2 class="example__title">Живой пример</h2> | |
</div> | ||
<div class="example__slider slider"> | ||
<picture> | ||
<source type="image/webp" media="(min-width: 768px)" srcset="images/[email protected] 1x, images/[email protected] 2x"> | ||
<source type="image/webp" srcset="images/[email protected] 1x, images/[email protected] 2x"> | ||
<source width="560" height="512" type="image/webp" media="(min-width: 768px)" srcset="images/[email protected] 1x, images/[email protected] 2x"> | ||
<source width="560" height="512" type="image/webp" srcset="images/[email protected] 1x, images/[email protected] 2x"> | ||
|
||
<source width="560" height="512" type="image/png" media="(min-width: 768px)" srcset="images/[email protected] 1x, images/[email protected] 2x"> | ||
<img class="slider__image slider__image--before" src="images/[email protected]" srcset="images/[email protected] 2x" width="280" height="256" alt="Изображение кота до программы снижения веса."> | ||
</picture> | ||
<picture> | ||
<source type="image/webp" media="(min-width: 768px)" srcset="images/[email protected] 1x, images/[email protected] 2x"> | ||
<source type="image/webp" srcset="images/[email protected] 1x, images/[email protected] 2x"> | ||
<source width="560" height="512" type="image/webp" media="(min-width: 768px)" srcset="images/[email protected] 1x, images/[email protected] 2x"> | ||
<source width="560" height="512" type="image/webp" srcset="images/[email protected] 1x, images/[email protected] 2x"> | ||
|
||
<source width="560" height="512" type="image/png" media="(min-width: 768px)" srcset="images/[email protected] 1x, images/[email protected] 2x"> | ||
<img class="slider__image slider__image--after" src="images/[email protected]" srcset="images/[email protected] 2x" width="280" height="256" alt="Изображение кота после программы снижения веса."> | ||
|
@@ -185,13 +185,13 @@ <h2 class="contacts__title">Приглашаем<br>к сотрудничест | |
<h2 class="visually-hidden">Давайте дружить!</h2> | ||
<ul class="social__list"> | ||
<li class="social__item"> | ||
<a class="social__link social__link--vkontakte" href="https://vk.com/htmlacademy">Мы в Вконтакте</a> | ||
<a class="social__link social__link--vkontakte" href="https://vk.com/htmlacademy"><span class="visually-hidden">Мы в Вконтакте</span></a> | ||
</li> | ||
<li class="social__item"> | ||
<a class="social__link social__link--youtube" href="https://www.youtube.com/user/htmlacademyru">Мы в Ютубе</a> | ||
<a class="social__link social__link--youtube" href="https://www.youtube.com/user/htmlacademyru"><span class="visually-hidden">Мы в Ютубе</span></a> | ||
</li> | ||
<li class="social__item"> | ||
<a class="social__link social__link--telegram" href="https://t.me/htmlacademy">Мы в Телеграме</a> | ||
<a class="social__link social__link--telegram" href="https://t.me/htmlacademy"><span class="visually-hidden">Мы в Телеграме</span></a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
@@ -206,6 +206,7 @@ <h2 class="visually-hidden">Давайте дружить!</h2> | |
</div> | ||
</div> | ||
</footer> | ||
<script src="scripts/index.js" defer></script> | ||
</body> | ||
|
||
</html> |
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 |
---|---|---|
|
@@ -297,20 +297,34 @@ | |
right: 0; | ||
z-index: -1; | ||
min-height: 290px; | ||
background-image: linear-gradient(rgba(104, 183, 56, 0.85), rgba(104, 183, 56, 0.85)), url("../../images/catalog-background@1x.png"); | ||
background-image: linear-gradient(rgba(104, 183, 56, 0.85), rgba(104, 183, 56, 0.85)), url("../../images/catalog-background-mobile@1x.webp"); | ||
background-repeat: no-repeat; | ||
background-size: cover, cover; | ||
background-position: center center; | ||
|
||
@media (min-width: $tablet-width) { | ||
min-height: 200px; | ||
background-image: linear-gradient(rgba(104, 183, 56, 0.85), rgba(104, 183, 56, 0.85)), url("../../images/catalog-background-tablet@1x.png"); | ||
background-image: linear-gradient(rgba(104, 183, 56, 0.85), rgba(104, 183, 56, 0.85)), url("../../images/catalog-background-tablet@1x.webp"); | ||
} | ||
|
||
@media (min-width: $desktop-width) { | ||
width: 245px; | ||
min-height: 288px; | ||
background-image: linear-gradient(rgba(104, 183, 56, 0.85), rgba(104, 183, 56, 0.85)), url("../../images/[email protected]"); | ||
background-image: linear-gradient(rgba(104, 183, 56, 0.85), rgba(104, 183, 56, 0.85)), url("../../images/[email protected]"); | ||
} | ||
} | ||
|
||
@media (min-resolution: 2x) { | ||
.additional-products__banner::before { | ||
background: linear-gradient(rgba(104, 183, 56, 0.85), rgba(104, 183, 56, 0.85)), url("../../images/[email protected]"); | ||
|
||
@media (min-width: $tablet-width) { | ||
background-image: linear-gradient(rgba(104, 183, 56, 0.85), rgba(104, 183, 56, 0.85)), url("../../images/[email protected]"); | ||
} | ||
|
||
@media (min-width: $desktop-width) { | ||
background: linear-gradient(rgba(104, 183, 56, 0.85), rgba(104, 183, 56, 0.85)), url("../../images/[email protected]"); | ||
} | ||
} | ||
} | ||
|
||
|
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.