-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html
221 lines (189 loc) · 11.3 KB
/
form.html
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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Sedona Form</title>
<link rel="stylesheet" href="css/style.css" type="text/css">
<script>
// Picture element HTML5 shiv
document.createElement("picture");
</script>
<script src="js/picturefill.min.js" async></script>
</head>
<body class="no-js">
<div class="page-wrapper clearfix">
<header class="page-header">
<button class="hamburger" type="button">
<span class="hamburger--box">
</span>
</button>
<nav class="top-nav">
<ul class="top-nav__list">
<li class="top-nav__item"><a href="index.html" class="top-nav__link">Главная</a></li>
<li class="top-nav__item"><a href="photo.html" class="top-nav__link">Фото и видео</a></li>
<li class="top-nav__item"><a class="top-nav__link top-nav__link--active">Форма отзыва</a></li>
<li class="top-nav__item"><a href="#" class="top-nav__link">HTML ACADEMY</a></li>
</ul>
</nav>
</header>
<div class="logo-wrapper">
<div class="logo">
<picture>
<source media="(min-width: 1200px)" srcset="img/logo-sedona-desktop.svg">
<img src="img/logo-sedona-mobile.svg" alt="City of Sedona" class="top-logo" width="102" height="83">
</picture>
</div>
</div>
<!-- Intro -->
<div class="intro intro--small">
<img src="img/text-sedona.svg" class="intro__img intro__img--small" alt="Welcome to Sedona" width="229" height="39">
<div class="intro__triangle"> </div>
</div>
<!-- Preface -->
<div class="preface">
<h2 class="preface__title">Оставьте свой отзыв</h2>
<p class="preface__text">Помогите нашим отелям стать лучше! Оставьте отзыв о них, а также о посещенных вами достопримечательностях</p>
</div>
<!-- Form -->
<div class="feedback">
<form class="form" action="/echo" method="post" name="feedback-form">
<div class="form__group form__group--name">
<fieldset>
<legend class="form__title">Представьтесь<span class="span-form">, пожалуйста:</span></legend>
<div class="flex-wrapper flex-wrapper--name">
<label for="name" class="form__label">Имя:</label>
<input class="form__input" type="text" id="name" placeholder="Петр" required>
</div>
<div class="flex-wrapper flex-wrapper--name">
<label for="last-name" class="form__label">Фамилия: </label>
<input class="form__input" type="text" id="last-name" placeholder="Иванов" required>
</div>
<div class="flex-wrapper flex-wrapper--name">
<label for="middle-name" class="form__label">Отчество:</label>
<input class="form__input" type="text" id="middle-name" placeholder="Александрович" required>
</div>
</fieldset>
</div>
<div class="form__group form__group--contact">
<div class="form__title form__title--element">Контактная информация: </div>
<div class="flex-wrapper flex-wrapper--contacts">
<label for="tel" class="form__label">Контактный телефон:</label>
<input type="tel" class="form__input form__input--tel" id="tel" placeholder="Введите телефон" pattern="0-9" required>
<span class="form__icon-phone"></span>
<span class="form__error">Ошибка - перепроверьте номер</span>
</div>
<div class="flex-wrapper flex-wrapper--contacts">
<label for="email" class="form__label"> Электронная почта:</label>
<input type="email" id="email" class="form__input form__input--email" placeholder="Введите email" pattern="A-z" required>
<span class="form__icon-email"></span>
</div>
</div>
<div class="form__group form__group--general">
<fieldset>
<legend class="form__title"> Ваше общее впечатление: </legend>
<div class="flex-wrapper flex-wrapper--general">
<input class="form__radio" type="radio" id="good" name="general" checked>
<label for="good" class="form__label--radio">Скорее положительное</label>
</div>
<div class="flex-wrapper flex-wrapper--general">
<input class="form__radio" type="radio" id="bad" name="general">
<label for="bad" class="form__label--radio">Скорее отрицательное </label>
</div>
<div class="flex-wrapper flex-wrapper--general">
<input class="form__radio" type="radio" id="dunno" name="general">
<label for="dunno" class="form__label--radio">Затрудняюсь ответить</label>
</div>
</fieldset>
</div>
<div class="form__group form__group--sights">
<div class="form__title form__title--element"> Посещенные <span class="span-form--sights"></span>достопримечательности: </div>
<div class="flex-wrapper flex-wrapper--sights">
<input type="checkbox" class="form__checkbox" id="bridge" checked>
<label for="bridge" class="form__label--checkbox">Мост дьявола </label>
</div>
<div class="flex-wrapper flex-wrapper--sights">
<input type="checkbox" class="form__checkbox" id="slide-park" checked>
<label for="slide-park" class="form__label--checkbox">Слайд парк </label>
</div>
<div class="flex-wrapper flex-wrapper--sights">
<input type="checkbox" class="form__checkbox" id="mountain">
<label for="mountain" class="form__label--checkbox">Гора-Колокол </label>
</div>
<div class="flex-wrapper flex-wrapper--sights">
<input type="checkbox" class="form__checkbox" id="rocks" checked>
<label for="rocks" class="form__label--checkbox">Красные скалы</label>
</div>
</div>
<div class="form__group form__group--emo">
<fieldset>
<legend class="form__title form__title--element"> Опишите свои эмоции: </legend>
<textarea class="form__emotions" required placeholder="Опишите подробно все свои восторги"></textarea>
</fieldset>
</div>
<div class="button-wrapper">
<button type="submit" class="btn btn--form">Отправить отзыв</button>
<span class="form__asteriks">* - Обязательные поля</span>
</div>
</form>
</div>
<footer class="page-footer">
<div class="page-footer__header">#VisitSedona</div>
<div class="social-links">
<a href="#" class="social-link">
<svg class="icon-twitter" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="17.5px" height="14.663px" fill="white" viewBox="0 0 17.5 14.663" enable-background="new 0 0 17.5 14.663" xml:space="preserve">
<g id="W6EeEF_1_">
<g>
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.283,0.153c1.736-0.484,3.074,0.264,3.685,1.15
c0.694-0.225,1.372-0.47,2.072-0.69c-0.004,0.841-0.538,1.478-0.883,1.728C16.861,2.506,17.5,1.86,17.5,1.86
c-0.175,0.977-1.035,1.746-1.611,1.977C15.65,10.429,12.617,14.793,5.507,14.66c-0.538,0,0.077,0-0.46,0
c-0.422,0-4.29-0.45-5.047-1.843c2.341,0.192,4.011-0.412,4.835-1.15c-0.989-0.293-2.761-0.464-3.07-2.881
c0.362,0.105,0.583,0.223,1.228,0.117C1.757,8.067,0.385,7.366,0.461,5.218c0.294,0.319,1.1,0.523,1.381,0.461
c-0.725-0.235-2.03-3.281-0.921-4.836C2.794,2.655,4.769,4.364,8.29,4.528C8.506,2.288,9.461,0.788,11.283,0.153z" />
</g>
</g>
</svg>
</a>
<a href="#" class="social-link">
<svg class="icon-facebook" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="8.672px" height="18.944px" fill="white" viewBox="0 0 8.672 18.944" enable-background="new 0 0 8.672 18.944" xml:space="preserve">
<path d="M6.275,3.356c0.799,0,1.599,0,2.398,0c0-1.119,0-2.237,0-3.356c-0.959,0-1.92,0-2.878,0C2.656,0.181,1.54,2.387,1.948,6.114
H0v3.518h1.959c0,3.104,0,6.208,0,9.312c1.279,0,2.559,0,3.837,0c0-3.104,0-6.208,0-9.312h2.857V6.114H5.787
C5.765,5.069,5.75,3.709,6.275,3.356z" />
</svg>
</a>
<a href="#" class="social-link">
<svg class="icon-youtube" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="19.979px" height="14.015px" fill="white" viewBox="0 0 19.979 14.015" enable-background="new 0 0 19.979 14.015" xml:space="preserve">
<path d="M17.145,0H2.835C1.275,0,0,1.275,0,2.835v8.345c0,1.56,1.275,2.835,2.835,2.835h14.31c1.56,0,2.835-1.275,2.835-2.835V2.835
C19.979,1.275,18.704,0,17.145,0z M7.036,10.392V3.623l6.769,3.384L7.036,10.392z" />
</svg>
</a>
</div>
<div class="page-footer__copyright">
Разработано
<a href="#">
<svg class="icon-htmlacademy" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="26.943px" height="34.09px" viewBox="0 0 26.943 34.09" enable-background="new 0 0 26.943 34.09" xml:space="preserve">
<path d="M13.62,0.017L13.472,0L0,1.412v24.661l13.473,8.017l13.43-7.99l0.042-0.025V1.412L13.62,0.017z M25.019,12.127L13.495,5.334
L13.494,5.23l-0.087,0.05l-0.088-0.056v0.109L1.925,12.118V3.147l11.548-1.212l11.547,1.212V12.127z M13.405,6.787L24.923,13.5
l-4.479,2.64l-7.093-4.221l-0.014,1.415l5.904,3.513l-0.86,0.507l-5.03-2.992l-0.014,1.415l3.827,2.275l-0.782,0.523l-3.031-1.787
l-0.014,1.413l1.853,1.091l-1.8,1.081L2.034,13.622L13.405,6.787z M1.925,15.127l11.411,6.791l0.016,1.044L5.41,18.234L5.395,19.65
l7.979,4.795l0.018,1.076l-7.973-4.74l-0.013,1.414l8.021,4.822l0.046,0.025l8.143-4.872l-0.011-5.177l3.415-2.036v10.021
L13.472,31.85L1.925,24.979V15.127z" />
</svg>
</a>
</div>
</footer>
<!--Modal Forms - Success and Failure -->
<div class="modal-form modal-form--success">
<b class="modal-form__header"> Ваш отзыв отправлен</b>
<p class="modal-form__text">Спасибо за ваше участие, ваш отзыв уже поступил к нам, в ближайшее время мы опубликуем его на сайте</p>
<button type="button" class="btn bth--close">Отправить отзыв</button>
</div>
<div class="modal-form modal-form--failure">
<b class="modal-form__header">Что-то пошло не так! </b>
<p class="modal-form__text">Проверьте поля, выделенные красным, скорее всего, вы забыли их заполнить</p>
<button type="button" class="btn bth--ok">ОК</button>
</div>
</div>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>