1
1
<!DOCTYPE html>
2
2
< html lang ="ru ">
3
+
3
4
< head >
4
5
< meta charset ="utf-8 ">
5
6
< meta name ="viewport " content ="width=device-width,initial-scale=1 ">
6
7
< link rel ="stylesheet " href ="css/normalize.css ">
7
8
< link rel ="stylesheet " href ="css/style.css ">
8
9
< link rel ="shortcut icon " href ="favicon.ico " type ="image/x-icon ">
9
10
<!--<script src="/js/functions.js"></script>-->
11
+ < script src ="./vendor/pristine/pristine.min.js "> </ script >
10
12
< script type ="module " src ="/js/main.js "> </ script >
11
13
< title > Кекстаграм</ title >
12
14
</ head >
18
20
< section class ="img-filters img-filters--inactive container ">
19
21
< h2 class ="img-filters__title visually-hidden "> Фильтр фотографий</ h2 >
20
22
< form class ="img-filters__form " action ="index.html " method ="get " autocomplete ="off ">
21
- < button type =button class ="img-filters__button img-filters__button--active " id ="filter-default "> По умолчанию</ button >
23
+ < button type =button class ="img-filters__button img-filters__button--active " id ="filter-default "> По
24
+ умолчанию</ button >
22
25
< button type =button class ="img-filters__button " id ="filter-random "> Случайные</ button >
23
26
< button type =button class ="img-filters__button " id ="filter-discussed "> Обсуждаемые</ button >
24
27
</ form >
@@ -32,7 +35,9 @@ <h2 class="pictures__title visually-hidden">Фотографии других
32
35
< section class ="img-upload ">
33
36
< div class ="img-upload__wrapper ">
34
37
< h2 class ="img-upload__title visually-hidden "> Загрузка фотографии</ h2 >
35
- < form class ="img-upload__form " id ="upload-select-image " autocomplete ="off ">
38
+ < form class ="img-upload__form " enctype ="multipart/form-data "
39
+ action ="https://31.javascript.htmlacademy.pro/kekstagram " method ="POST " id ="upload-select-image "
40
+ autocomplete ="off ">
36
41
37
42
<!-- Изначальное состояние поля для загрузки изображения -->
38
43
< fieldset class ="img-upload__start ">
@@ -48,7 +53,8 @@ <h2 class="img-upload__title visually-hidden">Загрузка фотограф
48
53
<!-- Изменение размера изображения -->
49
54
< fieldset class ="img-upload__scale scale ">
50
55
< button type ="button " class ="scale__control scale__control--smaller "> Уменьшить</ button >
51
- < input type ="text " class ="scale__control scale__control--value " value ="100% " title ="Image Scale " name ="scale " readonly >
56
+ < input type ="text " class ="scale__control scale__control--value " value ="100% " title ="Image Scale "
57
+ name ="scale " readonly >
52
58
< button type ="button " class ="scale__control scale__control--bigger "> Увеличить</ button >
53
59
</ fieldset >
54
60
@@ -71,42 +77,48 @@ <h2 class="img-upload__title visually-hidden">Загрузка фотограф
71
77
< fieldset class ="img-upload__effects effects ">
72
78
< ul class ="effects__list ">
73
79
< li class ="effects__item ">
74
- < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-none " value ="none " checked >
80
+ < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-none "
81
+ value ="none " checked >
75
82
< label for ="effect-none " class ="effects__label ">
76
83
< span class ="effects__preview effects__preview--none "> Превью фото без эффекта</ span >
77
84
Оригинал
78
85
</ label >
79
86
</ li >
80
87
< li class ="effects__item ">
81
- < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-chrome " value ="chrome ">
88
+ < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-chrome "
89
+ value ="chrome ">
82
90
< label for ="effect-chrome " class ="effects__label ">
83
91
< span class ="effects__preview effects__preview--chrome "> Превью эффекта Хром</ span >
84
92
Хром
85
93
</ label >
86
94
</ li >
87
95
< li class ="effects__item ">
88
- < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-sepia " value ="sepia ">
96
+ < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-sepia "
97
+ value ="sepia ">
89
98
< label for ="effect-sepia " class ="effects__label ">
90
99
< span class ="effects__preview effects__preview--sepia "> Превью эффекта Сепия</ span >
91
100
Сепия
92
101
</ label >
93
102
</ li >
94
103
< li class ="effects__item ">
95
- < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-marvin " value ="marvin ">
104
+ < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-marvin "
105
+ value ="marvin ">
96
106
< label for ="effect-marvin " class ="effects__label ">
97
107
< span class ="effects__preview effects__preview--marvin "> Превью эффекта Марвин</ span >
98
108
Марвин
99
109
</ label >
100
110
</ li >
101
111
< li class ="effects__item ">
102
- < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-phobos " value ="phobos ">
112
+ < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-phobos "
113
+ value ="phobos ">
103
114
< label for ="effect-phobos " class ="effects__label ">
104
115
< span class ="effects__preview effects__preview--phobos "> Превью эффекта Фобос</ span >
105
116
Фобос
106
117
</ label >
107
118
</ li >
108
119
< li class ="effects__item ">
109
- < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-heat " value ="heat ">
120
+ < input type ="radio " class ="effects__radio visually-hidden " name ="effect " id ="effect-heat "
121
+ value ="heat ">
110
122
< label for ="effect-heat " class ="effects__label ">
111
123
< span class ="effects__preview effects__preview--heat "> Превью эффекта Зной</ span >
112
124
Зной
@@ -156,15 +168,18 @@ <h2 class="big-picture__title visually-hidden">Просмотр фотогра
156
168
</ div >
157
169
158
170
<!-- Комментарии к изображению -->
159
- < div class ="social__comment-count "> < span class ="social__comment-shown-count "> 5</ span > из < span class ="social__comment-total-count "> 125</ span > комментариев</ div >
171
+ < div class ="social__comment-count "> < span class ="social__comment-shown-count "> 5</ span > из < span
172
+ class ="social__comment-total-count "> 125</ span > комментариев</ div >
160
173
< ul class ="social__comments ">
161
174
< li class ="social__comment ">
162
- < img class ="social__picture " src ="img/avatar-4.svg " alt ="Аватар комментатора фотографии " width ="35 " height ="35 ">
175
+ < img class ="social__picture " src ="img/avatar-4.svg " alt ="Аватар комментатора фотографии " width ="35 "
176
+ height ="35 ">
163
177
< p class ="social__text "> Мега фото! Просто обалдеть. Как вам так удалось?</ p >
164
178
</ li >
165
179
< li class ="social__comment ">
166
- < img class ="social__picture " src ="img/avatar-3.svg " alt ="Аватар комментатора фотографии " width ="35 " height ="35 ">
167
- < p class ="social__text "> Да это фоташоп!!!!!!!!</ p >
180
+ < img class ="social__picture " src ="img/avatar-3.svg " alt ="Аватар комментатора фотографии " width ="35 "
181
+ height ="35 ">
182
+ < p class ="social__text "> Да это фоташоп!!!!!!!!</ p >
168
183
</ li >
169
184
</ ul >
170
185
@@ -173,7 +188,8 @@ <h2 class="big-picture__title visually-hidden">Просмотр фотогра
173
188
174
189
<!-- Форма для отправки комментария -->
175
190
< div class ="social__footer ">
176
- < img class ="social__picture " src ="img/avatar-6.svg " alt ="Аватар комментатора фотографии " width ="35 " height ="35 ">
191
+ < img class ="social__picture " src ="img/avatar-6.svg " alt ="Аватар комментатора фотографии " width ="35 "
192
+ height ="35 ">
177
193
< input type ="text " class ="social__footer-text " placeholder ="Ваш комментарий... ">
178
194
< button type ="button " class ="social__footer-btn " name ="button "> Отправить</ button >
179
195
</ div >
@@ -188,11 +204,14 @@ <h2 class="big-picture__title visually-hidden">Просмотр фотогра
188
204
< footer class ="page-footer container ">
189
205
< div class ="page-footer__wrapper ">
190
206
< div class ="page-footer__copyright copyright ">
191
- < a class ="copyright__link copyright__link--image " href ="https://htmlacademy.ru/intensive/javascript "> < img src ="img/htmla-logo.svg " width ="130 " height ="45 " alt ="HTML Academy "> </ a >
192
- < p > Сделано в < a class ="copyright__link copyright__link--text " href ="https://htmlacademy.ru/intensive/javascript "> HTML Academy</ a > </ p >
207
+ < a class ="copyright__link copyright__link--image " href ="https://htmlacademy.ru/intensive/javascript "> < img
208
+ src ="img/htmla-logo.svg " width ="130 " height ="45 " alt ="HTML Academy "> </ a >
209
+ < p > Сделано в < a class ="copyright__link copyright__link--text "
210
+ href ="https://htmlacademy.ru/intensive/javascript "> HTML Academy</ a > </ p >
193
211
</ div >
194
212
< ul class ="page-footer__contacts contacts ">
195
- < li > < a href ="https://twitter.com/htmlacademy_ru " class ="contacts__link contacts__link--twitter "> Twitter</ a > </ li >
213
+ < li > < a href ="https://twitter.com/htmlacademy_ru " class ="contacts__link contacts__link--twitter "> Twitter</ a >
214
+ </ li >
196
215
< li > < a href ="https://vk.com/htmlacademy " class ="contacts__link contacts__link--vk "> VK</ a > </ li >
197
216
</ ul >
198
217
</ div >
@@ -229,12 +248,13 @@ <h2 class="success__title">Изображение успешно загруже
229
248
</ section >
230
249
</ template >
231
250
232
- <!-- Сообщение с ошибкой загрузки изображений от других пользователей -->
233
- < template id ="data-error ">
234
- < section class ="data-error ">
235
- < h2 class ="data-error__title "> Не удалось загрузить данные</ h2 >
236
- </ section >
237
- </ template >
251
+ <!-- Сообщение с ошибкой загрузки изображений от других пользователей -->
252
+ < template id ="data-error ">
253
+ < section class ="data-error ">
254
+ < h2 class ="data-error__title "> Не удалось загрузить данные</ h2 >
255
+ </ section >
256
+ </ template >
238
257
239
258
</ body >
259
+
240
260
</ html >
0 commit comments