-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
218 lines (190 loc) · 11.5 KB
/
index.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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>Кекстаграм</title>
</head>
<body>
<main>
<section class="img-filters img-filters--inactive container">
<h2 class="img-filters__title visually-hidden">Фильтр фотографий</h2>
<form class="img-filters__form" action="index.html" method="get" autocomplete="off">
<button type=button class="img-filters__button img-filters__button--active" id="filter-popular">Популярные</button>
<button type=button class="img-filters__button" id="filter-new">Новые</button>
<button type=button class="img-filters__button" id="filter-discussed">Обсуждаемые</button>
</form>
</section>
<section class="pictures container">
<h2 class="pictures__title visually-hidden">Фотографии других пользователей</h2>
<section class="img-upload">
<div class="img-upload__wrapper">
<h2 class="img-upload__title visually-hidden">Загрузка фотографии</h2>
<form action="https://js.dump.academy/kekstagram" class="img-upload__form" id="upload-select-image" method="post" enctype="multipart/form-data" autocomplete="off">
<fieldset class="img-upload__start">
<input type="file" id="upload-file" class="img-upload__input visually-hidden" name="filename" required>
<label for="upload-file" class="img-upload__label img-upload__control">Загрузить</label>
</fieldset>
<div class="img-upload__overlay hidden">
<div class="img-upload__wrapper">
<div class="img-upload__preview-container">
<fieldset class="img-upload__resize resize">
<button type="button" class="resize__control resize__control--minus">Уменьшить</button>
<input type="text" class="resize__control resize__control--value" value="100%" title="Image Scale" name="scale" readonly>
<button type="button" class="resize__control resize__control--plus">Увеличить</button>
</fieldset>
<div class="img-upload__preview">
<img src="img/upload-default-image.jpg" alt="Предварительный просмотр фотографии">
</div>
<fieldset class="img-upload__scale scale hidden">
<input type="number" class="scale__value" name="effect-level" value="20">
<div class="scale__line">
<div class="scale__pin" tabindex="0">Кнопка изменения глубины эффекта фотографии</div>
<div class="scale__level">Глубина эффекта фотографии</div>
</div>
</fieldset>
<button type="reset" class="img-upload__cancel cancel" id="upload-cancel">Закрыть</button>
</div>
<fieldset class="img-upload__effects effects">
<ul class="effects__list">
<li class="effects__item">
<input type="radio" class="effects__radio visually-hidden" name="effect" id="effect-none" value="none" checked>
<label for="effect-none" class="effects__label">
<span class="effects__preview effects__preview--none">Превью фото без эффекта</span>
Оригинал
</label>
</li>
<li class="effects__item">
<input type="radio" class="effects__radio visually-hidden" name="effect" id="effect-chrome" value="chrome">
<label for="effect-chrome" class="effects__label">
<span class="effects__preview effects__preview--chrome">Превью эффекта Хром</span>
Хром
</label>
</li>
<li class="effects__item">
<input type="radio" class="effects__radio visually-hidden" name="effect" id="effect-sepia" value="sepia">
<label for="effect-sepia" class="effects__label">
<span class="effects__preview effects__preview--sepia">Превью эффекта Сепия</span>
Сепия
</label>
</li>
<li class="effects__item">
<input type="radio" class="effects__radio visually-hidden" name="effect" id="effect-marvin" value="marvin">
<label for="effect-marvin" class="effects__label">
<span class="effects__preview effects__preview--marvin">Превью эффекта Марвин</span>
Марвин
</label>
</li>
<li class="effects__item">
<input type="radio" class="effects__radio visually-hidden" name="effect" id="effect-phobos" value="phobos">
<label for="effect-phobos" class="effects__label">
<span class="effects__preview effects__preview--phobos">Превью эффекта Фобос</span>
Фобос
</label>
</li>
<li class="effects__item">
<input type="radio" class="effects__radio visually-hidden" name="effect" id="effect-heat" value="heat">
<label for="effect-heat" class="effects__label">
<span class="effects__preview effects__preview--heat">Превью эффекта Зной</span>
Зной
</label>
</li>
</ul>
</fieldset>
<fieldset class="img-upload__text text">
<input class="text__hashtags" name="hashtags" placeholder="#хэш-тег" validity>
<textarea class="text__description" name="description" placeholder="Ваш комментарий..." maxlength="140"></textarea>
</fieldset>
<button type="submit" class="img-upload__submit" id="upload-submit">Опубликовать</button>
</div>
</div>
</form>
</div>
</section>
</section>
<section class="big-picture overlay hidden">
<h2 class="big-picture__title visually-hidden">Просмотр фотографии</h2>
<div class="big-picture__preview">
<div class="big-picture__img">
<img src="img/logo-background-3.jpg" alt="Девушка в купальнике" width="600" height="600">
</div>
<div class="big-picture__social social">
<div class="social__header">
<img class="social__picture" src="img/avatar-1.svg" alt="Аватар автора фотографии" width="35" height="35">
<p class="social__caption">Тестим новую камеру! =)</p>
<p class="social__likes">Нравится <span class="likes-count">356</span></p>
</div>
<div class="social__comment-count">5 из <span class="comments-count">125</span> комментариев</div>
<ul class="social__comments">
<li class="social__comment">
<img class="social__picture" src="img/avatar-4.svg" alt="Аватар комментатора фотографии" width="35" height="35">
<p class="social__text">Мега фото! Просто обалдеть. Как вам так удалось?</p>
</li>
<li class="social__comment">
<img class="social__picture" src="img/avatar-3.svg" alt="Аватар комментатора фотографии" width="35" height="35">
<p class="social__text">Да это фоташоп!!!!!!!!</p>
</li>
</ul>
<button class="social__loadmore" type="button">Загрузить еще</button>
<div class="social__footer">
<img class="social__picture" src="img/avatar-6.svg" alt="Аватар комментатора фотографии" width="35" height="35">
<input type="text" class="social__footer-text" placeholder="Ваш комментарий...">
<button type="button" class="social__footer-btn" name="button">Отправить</button>
</div>
</div>
<button type="reset" class="big-picture__cancel cancel" id="picture-cancel">Закрыть</button>
</div>
</section>
</main>
<footer class="page-footer container">
<div class="page-footer__wrapper">
<div class="page-footer__copyright copyright">
<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>
<p>Сделано в <a class="copyright__link copyright__link--text" href="https://htmlacademy.ru/intensive/javascript">HTML Academy</a> © 2018</p>
</div>
<ul class="page-footer__contacts contacts">
<li>
<a href="https://twitter.com/htmlacademy_ru" class="contacts__link contacts__link--twitter">Twitter</a>
</li>
<li>
<a href="https://www.instagram.com/htmlacademy/" class="contacts__link contacts__link--instagram">Instagtam</a>
</li>
<li>
<a href="https://www.facebook.com/htmlacademy" class="contacts__link contacts__link--facebook">Facebook</a>
</li>
<li>
<a href="https://vk.com/htmlacademy" class="contacts__link contacts__link--vk">VK</a>
</li>
</ul>
</div>
</footer>
<template id="picture">
<a href="#" class="picture__link">
<img class="picture__img" src="" width="182" height="182" alt="Случайная фотография">
<p class="picture__stats">
<span class="picture__stat picture__stat--comments"></span>
<span class="picture__stat picture__stat--likes"></span>
</p>
</a>
<div class="img-upload__message img-upload__message--dragndrop hidden">Сюда!</div>
<div class="img-upload__message img-upload__message--loading hidden">Загружаем...</div>
<div class="img-upload__message img-upload__message--processing hidden">Кексограмим...</div>
<div class="img-upload__message img-upload__message--error error hidden">Ошибка загрузки файла
<div class="error__links">
<a class="error__link error__link--repeat" href="#">Попробовать снова</a>
<a class="error__link error__link--reset" href="#">Загрузить другой файл</a>
</div>
</div>
</template>
<script type="text/javascript" src="js/error.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/backend.js"></script>
<script type="text/javascript" src="js/gallery.js"></script>
<script type="text/javascript" src="js/upload.js"></script>
<script type="text/javascript" src="js/scale.js"></script>
<script type="text/javascript" src="js/effect.js"></script>
</body>
</html>