-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodal.html
More file actions
286 lines (264 loc) · 19.1 KB
/
modal.html
File metadata and controls
286 lines (264 loc) · 19.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/png" href="images/favicon.png">
<link rel="stylesheet" href="styles/style.css">
<title>HTML Academy: Седона</title>
</head>
<body class="page">
<div class="page__wrapper">
<header class="page-header" data-test="header">
<nav class="page-header__navigation navigation" aria-label="Основная">
<a class="navigation__logo" href="index.html" aria-current="page">
<img class="navigation__image" src="images/logo.svg" width="140" height="70" alt="Логотип Седона">
</a>
<ul class="navigation__list">
<li class="navigation__item">
<a class="title title_small navigation__link navigation__link_current" href="#"
aria-current="page">Главная</a>
</li>
<li class="navigation__item">
<a class="title title_small navigation__link" href="#">О Седоне</a>
</li>
<li class="navigation__item">
<a class="title title_small navigation__link" href="catalog.html">Гостиницы</a>
</li>
</ul>
</nav>
<div class="page-header__user user-menu">
<a class="user-menu__search user-menu__button" href="#">
<span class="visually-hidden">Поиск</span>
</a>
<a class="user-menu__favorites user-menu__button" href="#">
<span class="visually-hidden">Избранное</span>
<span class="user-menu__favorites-count">12</span>
</a>
<a class="button button_primary user-menu__promo" href="#">хочу сюда!</a>
</div>
</header>
<main class="main" data-test="main">
<section class="main__hero hero" data-test="hero">
<img class="hero__image" src="images/hero.svg" width="458" height="352"
alt="Welcome to the gorgeous Sedona, because the Grand Canyon sucks!" lang="en">
<h1 class="visually-hidden">Сайти бронирования отелей в Седоне</h1>
</section>
<section class="main__advantages advantages" data-test="advantages">
<h2 class="visually-hidden">Преимущества</h2>
<p class="title title_big title_accent advantages__slogan">Седона — небольшой городок в Аризоне, заслуживающий
большего!</p>
<p class="text_basic advantages__subtext">Рассмотрим причины, по которым Седона круче, чем Гранд-Каньон!</p>
<ul class="advantages__list">
<li class="advantages__item advantages__item_dark advantages__item_special">
<div class="advantages__container">
<h3 class="title title_accent advantages__title advantages__title_special">Настоящий городок</h3>
<p class="advantages__text advantages__text_dark">Седона — не аттракцион для туристов, там течёт своя
жизнь</p>
</div>
<img class="advantages__image" src="images/real-city.jpg" width="800" height="385" alt="Улицы седоны">
</li>
<li class="advantages__item advantages__item_light">
<div class="advantages__container">
<h3 class="title title_accent advantages__title">Небольшая площадь</h3>
<p class="advantages__text">Все достопримечательности находятся очень близко</p>
</div>
</li>
<li class="advantages__item ">
<div class="advantages__container">
<h3 class="title title_accent advantages__title">Красивая дорога</h3>
<p class="advantages__text">Ехать в Седону из Лас-Вегаса совсем не скучно!</p>
</div>
</li>
<li class="advantages__item advantages__item_light">
<div class="advantages__container">
<h3 class="title title_accent advantages__title">Мало туристов</h3>
<p class="advantages__text">Большинство едет в Гранд Каньон и толпится там</p>
</div>
</li>
<li class="advantages__item advantages__item_dark advantages__item_special">
<img class="advantages__image" src="images/devils-bridge.jpg" width="800" height="385" alt="Мост дьявола">
<div class="advantages__container">
<h3 class="title title_accent advantages__title advantages__title_special">Там есть <br>мост дьявола
</h3>
<p class="advantages__text advantages__text_dark">Да, по нему можно пройти! Если вы осмелитесь,
разумеется</p>
</div>
</li>
</ul>
</section>
<section class="main__facilities facilities" data-test="service">
<h2 class="visually-hidden">Возможности</h2>
<p class="facilities__heading">Приезжайте в Седону отдохнуть<br>в комфорте и уюте!</p>
<p class="text_basic facilities__subtext">Опытный персонал и качественное обслуживание!</p>
<ul class="facilities__list">
<li class="facilities__item facilities__item_dark facilities__item_home">
<h3 class="title title_accent facilities__title">Жильё</h3>
<p class="facilities__text">Рекомендуем пожить <br>в настоящем мотеле, <br>всё как в кино!</p>
</li>
<li class="facilities__item facilities__item_food">
<h3 class="title title_accent facilities__title">Еда</h3>
<p class="facilities__text">Всегда заказывайте <br>топовый фирменный бургер, <br>вы не разочаруетесь!</p>
</li>
<li class="facilities__item facilities__item_dark facilities__item_souvenirs">
<h3 class="title title_accent facilities__title">Сувениры</h3>
<p class="facilities__text">Не только китайского, <br>но и настоящего местного <br>производства!</p>
</li>
</ul>
</section>
<section class="main__hotel-search hotel-search" data-test="search">
<h2 class="visually-hidden">Поиск гостиницы</h2>
<p class="title title_big title_accent hotel-search__heading">Заинтересовались?</p>
<p class="text_basic hotel-search__text">
Укажите предполагаемые даты поездки, <br>и мы покажем вам лучшие предложения гостиниц в Седоне
</p>
<button class="button button_big button_primary hotel-search__button" type="button">
Поиск гостиницы в седоне
</button>
</section>
<section class="main__subscribe subscribe subscribe_special" data-test="subscribe">
<h2 class="title title_big title_accent subscribe__heading">Подпишитесь на рассылку</h2>
<p class="text_basic subscribe__text subscribe__text_special">
Только полезная информация и никакого спама, <br>честное бойскаутское!
</p>
<form class="subscribe__form" action="https://echo.htmlacademy.ru" method="post">
<label class="visually-hidden" for="email">Укажите ваш e-mail</label>
<input class="subscribe__email subscribe__email_special" type="email" name="email" id="email"
placeholder="Ваш e-mail" required autocomplete="email">
<button class="button button_big button_secondary subscribe__button" type="submit">Подписаться</button>
</form>
</section>
</main>
<footer class="page-footer" data-test="footer">
<ul class="page-footer__social social">
<li class="social__item">
<a class="social__link" href="https://vk.com/htmlacademy">
<svg class="social__icon" width="24" height="14" viewBox="0 0 24 14" fill="none"
xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M23.45 0.948C23.616 0.402 23.45 0 22.655 0H20.03C19.362 0 19.054 0.347 18.887 0.73C18.887 0.73 17.552 3.926 15.661 6.002C15.049 6.604 14.771 6.795 14.437 6.795C14.27 6.795 14.019 6.604 14.019 6.057V0.948C14.019 0.292 13.835 0 13.279 0H9.151C8.734 0 8.483 0.304 8.483 0.593C8.483 1.214 9.429 1.358 9.526 3.106V6.904C9.526 7.737 9.373 7.888 9.039 7.888C8.149 7.888 5.984 4.677 4.699 1.003C4.45 0.288 4.198 0 3.527 0H0.9C0.15 0 0 0.347 0 0.73C0 1.412 0.89 4.8 4.145 9.281C6.315 12.341 9.37 14 12.153 14C13.822 14 14.028 13.632 14.028 12.997V10.684C14.028 9.947 14.186 9.8 14.715 9.8C15.105 9.8 15.772 9.992 17.33 11.467C19.11 13.216 19.403 14 20.405 14H23.03C23.78 14 24.156 13.632 23.94 12.904C23.702 12.18 22.852 11.129 21.725 9.882C21.113 9.172 20.195 8.407 19.916 8.024C19.527 7.533 19.638 7.314 19.916 6.877C19.916 6.877 23.116 2.451 23.449 0.948H23.45Z"
fill="currentColor" />
</svg>
<span class="visually-hidden">Вконтакте</span>
</a>
</li>
<li class="social__item">
<a class="social__link" href="https://t.me/htmlacademy">
<svg class="social__icon" width="18" height="16" viewBox="0 0 18 16" fill="none"
xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
<path
d="M16.785 0.0992597L0.840489 6.24776C-0.247661 6.68481 -0.241365 7.29184 0.640845 7.56253L4.73445 8.83953L14.2058 2.8637C14.6537 2.59121 15.0629 2.7378 14.7265 3.03636L7.05283 9.96185H7.05103L7.05283 9.96275L6.77045 14.1823C7.18413 14.1823 7.36669 13.9925 7.59871 13.7686L9.58705 11.8351L13.7229 14.89C14.4855 15.31 15.0332 15.0941 15.2229 14.1841L17.9379 1.38885C18.2158 0.274623 17.5126 -0.229883 16.785 0.0992597Z"
fill="currentColor" />
</svg>
<span class="visually-hidden">Телеграм</span>
</a>
</li>
<li class="social__item">
<a class="social__link" href="https://www.youtube.com/user/htmlacademyru">
<svg class="social__icon" width="22" height="17" viewBox="0 0 22 17" fill="none"
xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
<path
d="M18.607 0H3.17413C1.31343 0 0 1.59375 0 3.4V13.4937C0 15.4062 1.31343 17 3.17413 17H18.8259C20.4677 17 22 15.4062 22 13.6V3.4C21.7811 1.59375 20.4677 0 18.607 0ZM7.66169 12.5375V4.4625L14.995 8.5L7.66169 12.5375Z"
fill="currentColor" />
</svg>
<span class="visually-hidden">Ютуб</span>
</a>
</li>
</ul>
<a class="page-footer__phone" href="tel:+78128121212">+7 (812) 812-12-12</a>
<a class="page-footer__logo" href="https://htmlacademy.ru/intensive/htmlcss">
<svg width="115" height="33" viewBox="0 0 115 33" fill="currentColor" xmlns="http://www.w3.org/2000/svg"
aria-hidden="true" focusable="false">
<path d="M0 12.9V15.5H2.5V12.9H0Z" />
<path
d="M11.6 4.5C10 4.5 8.8 5.2 8 6.2H7.9V0H5.9V15.5H7.9V10.2C7.9 8.1 9.2 6.6 11.2 6.6C13 6.6 14.1 8 14.1 9.8V15.5H16.1V9.4C16.2 6.4 14.3 4.5 11.6 4.5Z" />
<path
d="M26.6 4.8H21.8V1.1H19.8V4.9H17.9V6.9H19.8V12.9C19.8 14.6 20.8 15.6 22.5 15.6H26.6V13.6H22.9C22.2 13.6 21.8 13.2 21.8 12.5V6.8H26.6V4.8Z" />
<path
d="M41.1 4.6C39.5 4.6 38.2 5.4 37.6 6.7H37.5C36.9 5.5 35.7 4.6 34.1 4.6C32.7 4.6 31.6 5.4 31 6.4H30.9V4.8H29V15.4H31V10C31 8 32 6.5 33.6 6.5C35.1 6.5 36 7.5 36 9.1V15.4H38V9.8C38 7.4 39.4 6.5 40.6 6.5C42.1 6.5 43 7.5 43 9.1V15.4H45V8.9C45.1 6.4 43.6 4.6 41.1 4.6Z" />
<path
d="M47.8 12.7C47.8 14.4 48.8 15.4 50.6 15.4H52.6V13.4H50.9C50.2 13.4 49.8 13 49.8 12.3V0H47.8V12.7Z" />
<path
d="M28.9 19.7C28 18.6 26.7 17.9 25 17.9C21.9 17.9 19.6 20.2 19.6 23.5C19.6 26.8 21.9 29.1 25 29.1C26.8 29.1 28 28.3 28.8 27.2H28.9V28.8H30.9V18.2H28.9V19.7ZM25.3 27.1C23.1 27.1 21.7 25.5 21.7 23.5C21.7 21.5 23.1 19.9 25.3 19.9C27.5 19.9 28.9 21.5 28.9 23.5C28.9 25.4 27.5 27.1 25.3 27.1Z" />
<path
d="M44.2 22C43.7 19.6 41.6 17.9 38.8 17.9C35.4 17.9 33.2 20.4 33.2 23.5C33.2 26.6 35.4 29.1 38.8 29.1C41.6 29.1 43.7 27.3 44.2 24.9H42.1C41.7 26.2 40.4 27.2 38.8 27.2C36.6 27.2 35.2 25.6 35.2 23.6C35.2 21.6 36.6 20 38.8 20C40.4 20 41.6 21 42.1 22.2H44.2V22Z" />
<path
d="M55.1 19.7C54.2 18.6 52.9 17.9 51.2 17.9C48.1 17.9 45.8 20.2 45.8 23.5C45.8 26.8 48.1 29.1 51.2 29.1C53 29.1 54.2 28.3 55 27.2H55.1V28.8H57.1V18.2H55.1V19.7ZM51.5 27.1C49.3 27.1 47.9 25.5 47.9 23.5C47.9 21.5 49.3 19.9 51.5 19.9C53.7 19.9 55.1 21.5 55.1 23.5C55.1 25.4 53.6 27.1 51.5 27.1Z" />
<path
d="M68.7 19.8C67.8 18.7 66.5 17.9 64.8 17.9C61.7 17.9 59.4 20.2 59.4 23.5C59.4 26.8 61.6 29.1 64.8 29.1C66.5 29.1 67.8 28.3 68.6 27.3H68.7V28.8H70.7V13.4H68.7V19.8ZM65.1 27.1C62.9 27.1 61.5 25.5 61.5 23.5C61.5 21.5 62.9 19.9 65.1 19.9C67.3 19.9 68.7 21.5 68.7 23.5C68.6 25.5 67.2 27.1 65.1 27.1Z" />
<path
d="M78.3 17.9C75 17.9 72.8 20.4 72.8 23.5C72.8 26.5 74.9 29.1 78.3 29.1C80.8 29.1 82.8 27.8 83.5 25.5H81.4C80.9 26.5 79.8 27.1 78.4 27.1C76.5 27.1 75.1 25.8 75 24.2H83.8C84 20.6 81.8 17.9 78.3 17.9ZM78.3 19.8C80 19.8 81.3 20.8 81.6 22.4H75.1C75.4 20.9 76.6 19.8 78.3 19.8Z" />
<path
d="M98.2 17.9C96.6 17.9 95.3 18.7 94.6 19.9H94.5C93.9 18.7 92.7 17.9 91.1 17.9C89.7 17.9 88.6 18.6 88 19.7V18.2H86.1V28.8H88.1V23.4C88.1 21.4 89.1 20 90.7 19.9C92.2 19.9 93.1 20.9 93.1 22.5V28.8H95.1V23.2C95.1 20.8 96.5 19.9 97.7 19.9C99.2 19.9 100.1 20.9 100.1 22.5V28.8H102.1V22.3C102.2 19.7 100.7 17.9 98.2 17.9Z" />
<path
d="M109.4 27L105.8 18.1H103.6L108.4 29.7C108.1 30.6 107.7 30.9 106.7 30.9H104.2V32.9H106.7C108.5 32.9 109.5 32.1 110.2 30.3L114.9 18.1H112.8L109.4 27Z" />
</svg>
<span class="visually-hidden">HTML Academy</span>
</a>
</footer>
<div class="modal" data-test="modal">
<div class="modal__content">
<h2 class="title title_big title_accent modal__title">Поиск гостиницы в Седоне</h2>
<button class="modal__close" type="button"><span class="visually-hidden">Закрыть</span></button>
<form action="https://echo.htmlacademy.ru" method="get" class="modal__form">
<label class="title title_small modal__label modal__label_arrival" for="arrival-date">Дата Заезда:</label>
<input class="modal__input modal__input_arrival" type="text" name="arrival-date" id="arrival-date"
placeholder="Укажите дату" value="27 апреля 2020" aria-describedby="arrival-info" required>
<p class="modal__info modal__info_arrival modal__info_error" id="arrival-info">Мы не можем отправить вас в
прошлое.</p>
<label class="title title_small modal__label modal__label_departure" for="departure-date">Дата
Выезда:</label>
<input class="modal__input modal__input_departure" type="text" name="departure-date"
id="departure-date" placeholder="Укажите дату" value="1 сентября 2021" aria-describedby="departure-info" required>
<p class="modal__info modal__info_departure" id="departure-info">На эти даты есть свободные номера. Пока
есть.</p>
<label class="title title_small modal__label modal__label_adult" for="adults">Взрослые:</label>
<div class="modal__container_adult modal__countainer">
<button class="modal__changer modal__changer_minus" type="button">
<span class="visually-hidden">Уменьшить количество взрослых</span>
<span class="modal__changer-inner">
</span>
</button>
<input class="modal__counter" type="number" inputmode="numeric" name="adults" id="adults" value="2"
min="0" max="9" step="1" required>
<button class="modal__changer modal__changer_plus" type="button">
<span class="visually-hidden">Увеличить количество взрослых</span>
<span class="modal__changer-inner">
</span>
</button>
</div>
<div class="modal__children-tooltip">
<label class="title title_small modal__label modal__label_children" for="children">Дети:</label>
<span class="modal__tooltip">
<button class="modal__tooltip-button" type="button" aria-labelledby="tooltip-text">
<svg class="modal__tooltip-icon" width="2" height="12" viewBox="0 0 2 12" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H2V2H0V0ZM2 12H0V3H2V12Z" />
</svg>
</button>
<span class="modal__tooltip-text" role="tooltip" id="tooltip-text">
Укажите количество детей, которые будут с вами, возраст которых от 6 до 18 лет. Дети до 6 лет
размещаются бесплатно.
</span>
</span>
</div>
<div class="modal__container_children modal__countainer">
<button class="modal__changer modal__changer_minus" type="button">
<span class="visually-hidden">Уменьшить количество детей</span>
<span class="modal__changer-inner"></span>
</button>
<input class="modal__counter" type="number" inputmode="numeric" name="children" id="children" value="2"
min="0" max="9" step="1" placeholder="0">
<button class="modal__changer modal__changer_plus" type="button">
<span class="visually-hidden">Увеличить количество детей</span>
<span class="modal__changer-inner"></span>
</button>
</div>
<button class="button button_big button_secondary modal__button" type="submit">Найти</button>
</form>
</div>
</div>
</div>
<script src="scripts/modal.js"></script>
</body>
</html>