generated from htmlacademy/html2-basic-template
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
75 changed files
with
3,076 additions
and
3,384 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
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 |
---|---|---|
@@ -1,17 +1,80 @@ | ||
<!DOCTYPE html> | ||
<html class="page" lang="ru"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Название проекта</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<link rel="preload" href="#" type="font/woff2" as="font"> | ||
<link rel="stylesheet" href="styles/styles.css"> | ||
<script src="scripts/index.js" defer></script> | ||
</head> | ||
<body class="page__body"> | ||
<header class="header">Шапка</header> | ||
<main> | ||
<h1>Страница для старта</h1> | ||
</main> | ||
</body> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Drink2Go Фадеева Виктория</title> | ||
<meta name="author" content="Фадеева Виктория"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<link rel="preload" href="#" type="font/woff2" as="font"> | ||
<link rel="stylesheet" href="styles/styles.css"> | ||
<link rel="preload" href="styles/styles.css" as="style"> | ||
<script src="scripts/index.js" defer></script> | ||
</head> | ||
|
||
<body class="page__body"> | ||
<header class="main-header" data-test="header"> | ||
<div class="main-header__container"> | ||
<a class="main-header__logo" href="index.html"> | ||
<picture> | ||
<source media="(min-width: 1440px)" width="170" height="36" type="image/svg+xml" | ||
srcset="images/logo-desktop.svg"> | ||
<source media="(min-width: 768px)" width="82" height="36" type="image/svg+xml" | ||
srcset="images/logo-tablet.svg"> | ||
<img class="main-header__logo-image" src="images/logo-mobile.svg" width="32" height="36" | ||
alt="Логотип Проекта Drink2Go"> | ||
</picture> | ||
<span class="main-header__logo-text">Интернет-магазин кофейных напитков</span> | ||
</a> | ||
<nav class="main-header__nav main-nav main-nav--closed main-nav--nojs"> | ||
<button class="main-nav__toggle" type="button"> | ||
<span class="visually-hidden">Открыть меню</span> | ||
</button> | ||
<ul class="main-nav__list site-list"> | ||
<li class="site-list__item"> | ||
<a class="site-list__link site-list__link--active" href="index.html"> | ||
главная | ||
</a> | ||
</li> | ||
<li class="site-list__item"> | ||
<a class="site-list__link" href="#"> | ||
каталог | ||
</a> | ||
</li> | ||
<li class="site-list__item"> | ||
<a class="site-list__link" href="#"> | ||
доставка | ||
</a> | ||
</li> | ||
<li class="site-list__item"> | ||
<a class="site-list__link" href="#"> | ||
о нас | ||
</a> | ||
</li> | ||
</ul> | ||
<div class="main-nav__user-list user-list"> | ||
<a class="user-list__icon user-list__icon--login" href="#"> | ||
<span class="user-list__text">войти</span> | ||
</a> | ||
<a class="user-list__icon user-list__icon--union" href="#"> | ||
<span class="user-list__text">корзина</span> | ||
</a> | ||
</div> | ||
</nav> | ||
</div> | ||
</header> | ||
<main> | ||
<section data-test="hero"> | ||
</section> | ||
<section data-test="features"> | ||
</section> | ||
<section data-test="catalog"> | ||
</section> | ||
<section data-test="map"> | ||
</section> | ||
</main> | ||
<footer data-test="footer"> | ||
</footer> | ||
</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 |
---|---|---|
@@ -1 +1,9 @@ | ||
/* в этот файл добавляет скрипты*/ | ||
const navMain = document.querySelector('.main-nav'); | ||
const navToggle = document.querySelector('.main-nav__toggle'); | ||
|
||
navMain.classList.remove('main-nav--nojs'); | ||
|
||
navToggle.onclick = function () { | ||
navMain.classList.toggle('main-nav--opened'); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
.main-header__container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
padding: 12px 20px; | ||
width: 320px; | ||
margin: 0 auto; | ||
|
||
|
||
@media (min-width: $tablet-width) { | ||
width: 768px; | ||
padding: 0 20px; | ||
} | ||
|
||
@media (min-width: $desktop-width) { | ||
width: 1440px; | ||
padding: 0 40px; | ||
} | ||
} | ||
|
||
.main-header__logo { | ||
text-decoration: none; | ||
display: block; | ||
width: 32px; | ||
height: 36px; | ||
margin-right: 88px; | ||
|
||
@media (min-width: $tablet-width) { | ||
width: 82px; | ||
margin-right: 67px; | ||
} | ||
|
||
@media (min-width: $desktop-width) { | ||
width: auto; | ||
display: flex; | ||
margin-right: 162px; | ||
} | ||
|
||
&:hover, | ||
&:focus-visible { | ||
opacity: 0.8; | ||
} | ||
|
||
&:active { | ||
opacity: 0.6; | ||
} | ||
} | ||
|
||
.main-header__logo-text { | ||
display: none; | ||
|
||
@media (min-width: $desktop-width) { | ||
display: block; | ||
width: 126px; | ||
font-family: $primary-font; | ||
font-size: 12px; | ||
line-height: 16px; | ||
color: $basic-black; | ||
margin-left: 20px; | ||
} | ||
} | ||
|
||
.main-header__logo-image { | ||
width: 32px; | ||
height: 36px; | ||
|
||
@media (min-width: $tablet-width) { | ||
width: 82px; | ||
} | ||
|
||
@media (min-width: $desktop-width) { | ||
width: 170px; | ||
} | ||
}; |
Oops, something went wrong.