-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09f65e3
commit 2a223c8
Showing
8 changed files
with
463 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,93 @@ | ||
#menu__toggle { | ||
opacity: 0; | ||
display: none; | ||
} | ||
|
||
#menu__toggle:checked ~ .menu__btn > span { | ||
transform: rotate(45deg); | ||
} | ||
#menu__toggle:checked ~ .menu__btn > span::before { | ||
top: 0; | ||
transform: rotate(0); | ||
} | ||
#menu__toggle:checked ~ .menu__btn > span::after { | ||
top: 0; | ||
transform: rotate(90deg); | ||
} | ||
#menu__toggle:checked ~ .menu__box { | ||
visibility: visible; | ||
left: 0; | ||
|
||
|
||
display: block; | ||
width: 300px; | ||
height: calc(100vh - 60px); | ||
|
||
} | ||
|
||
|
||
|
||
.menu__btn { | ||
display: flex; | ||
align-items: center; | ||
position: fixed; | ||
top: 20px; | ||
left: 20px; | ||
|
||
width: 26px; | ||
height: 26px; | ||
|
||
cursor: pointer; | ||
z-index: 1; | ||
} | ||
|
||
.menu__btn > span, | ||
.menu__btn > span::before, | ||
.menu__btn > span::after { | ||
display: block; | ||
position: absolute; | ||
|
||
width: 100%; | ||
height: 2px; | ||
|
||
background-color: #616161; | ||
|
||
transition-duration: .25s; | ||
} | ||
.menu__btn > span::before { | ||
content: ''; | ||
top: -8px; | ||
} | ||
.menu__btn > span::after { | ||
content: ''; | ||
top: 8px; | ||
} | ||
|
||
.menu__box { | ||
display: none; | ||
visibility: hidden; | ||
top: 0; | ||
left: -100%; | ||
height: 100%; | ||
margin: 0; | ||
padding: 80px 0; | ||
list-style: none; | ||
background-color: $grey; | ||
border-right: 1px solid #d7d7d7; | ||
transition-duration: .25s; | ||
} | ||
|
||
.menu__item { | ||
display: block; | ||
padding: 12px 24px; | ||
color: #333; | ||
font-size: 20px; | ||
text-decoration: none; | ||
transition-duration: .25s; | ||
} | ||
.menu__box .active{ | ||
color: $green_text; | ||
} | ||
.menu__item:hover { | ||
background-color: #CFD8DC; | ||
} |
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,9 @@ | ||
$grey: #f6f6f6; | ||
$green: #6cd900; | ||
$green_text: #69d500; | ||
$blue: #00add8; | ||
|
||
|
||
|
||
|
||
|
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,76 @@ | ||
<!DOCTYPE html> | ||
<html lang="ru"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<script | ||
src="https://code.jquery.com/jquery-3.5.1.min.js" | ||
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" | ||
crossorigin="anonymous"></script> | ||
</head> | ||
<body> | ||
|
||
<header> | ||
<div class="logo"><img src="logo.png" alt="" srcset=""></div> | ||
<div class="select_hotel"> | ||
<select class="dropdown"> | ||
<option value="" class="label">Название отеля</option> | ||
<option value="1">Отель 1</option> | ||
<option value="2">Отель 2</option> | ||
<option value="3">Отель 3</option> | ||
<option value="4">Отель 4</option> | ||
<option value="5">Отель 5</option> | ||
</select> | ||
</div> | ||
</header> | ||
<div class="main"> | ||
<div class="hamburger-menu"> | ||
<input id="menu__toggle" type="checkbox" /> | ||
<label class="menu__btn " for="menu__toggle"> | ||
<span></span> | ||
</label> | ||
|
||
<ul class="menu__box"> | ||
<li><a class="menu__item active" href="/about">О отеле</a></li> | ||
<li><a class="menu__item" href="/numberrooms">Номерной фонд</a></li> | ||
<li><a class="menu__item" href="/chess">Шахматка</a></li> | ||
<li><a class="menu__item" href="/prices">Тарифы и Цены</a></li> | ||
<li><a class="menu__item" href="/saleschannels">Каналы Продаж</a></li> | ||
</ul> | ||
</div> | ||
<div class="content"> | ||
<div class="content_header"> | ||
<p>О отеле (название отеля)</p> | ||
</div> | ||
<div class="content_body"> | ||
<form action=""> | ||
<input type="text"> | ||
<select class="dropdown"> | ||
<option value="" class="label">Название отеля</option> | ||
<option value="1">Отель 1</option> | ||
<option value="2">Отель 2</option> | ||
<option value="3">Отель 3</option> | ||
<option value="4">Отель 4</option> | ||
<option value="5">Отель 5</option> | ||
</select> | ||
<select class="dropdown"> | ||
<option value="" class="label">Название отеля</option> | ||
<option value="1">Отель 1</option> | ||
<option value="2">Отель 2</option> | ||
<option value="3">Отель 3</option> | ||
<option value="4">Отель 4</option> | ||
<option value="5">Отель 5</option> | ||
</select> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
</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 |
---|---|---|
@@ -0,0 +1 @@ | ||
*,*::before,*::after{box-sizing:border-box}ul[class],ol[class]{padding:0}body,h1,h2,h3,h4,p,ul[class],ol[class],figure,blockquote,dl,dd{margin:0}body{min-height:100vh;scroll-behavior:smooth;text-rendering:optimizeSpeed;line-height:1.5}ul[class],ol[class]{list-style:none}a:not([class]){text-decoration-skip-ink:auto}img{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}} |
Oops, something went wrong.