-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
312 lines (293 loc) · 17.8 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
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Main page</title>
<link rel="stylesheet" href="./assets/css/main.css">
</head>
<body>
<div class="page">
<header class="header">
<div class="container">
<a href="index.html" class="header__logo">
<svg width="110" height="32" viewBox="0 0 110 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="1" width="30" height="30" fill="#212429"/>
<rect x="38" width="32" height="32" rx="16" fill="#212429"/>
<path d="M78 0L110 32H78V0Z" fill="#212429"/>
</svg>
</a>
<h1 class="header__title">Reusable component library</h1>
</div>
</header>
<nav class="tabs">
<div class="container">
<div class="tabs__scroller">
<input type="radio" class="tabs__input" name="tab" id="all-tab" checked>
<label class="tabs__tab" for="all-tab">All components</label>
<input type="radio" class="tabs__input" name="tab" id="elements-tab">
<label class="tabs__tab" for="elements-tab">Elements</label>
<input type="radio" class="tabs__input" name="tab" id="containers-tab">
<label class="tabs__tab" for="containers-tab">Containers</label>
<input type="radio" class="tabs__input" name="tab" id="templates-tab">
<label class="tabs__tab" for="templates-tab">Templates</label>
</div>
<div class="tabs__content tabs__content_complex">
<!-- Сложные компоненты -->
</div>
<div class="tabs__content tabs__content_simple">
<!-- Простые компоненты -->
</div>
</div>
</nav>
<main class="preview">
<div class="container preview__cards-list">
<a href="/pages/tooltip.html" class="card type-container">
<div class="card__preview-area">
<div class="tooltip tooltip_force-show">
<svg class="tooltip__icon">
<use href="../../assets/images/icons.svg#question-mark"></use>
</svg>
<div class="tooltip__helper">Helper Text</div>
</div>
</div>
<div class="card__meta-info">
<h3 class="card__title">Tooltip</h3>
<div class="card__component-type">Container</div>
</div>
</a>
<a href="/pages/form-elements.html" class="card type-element">
<div class="card__preview-area">
<div class="card__block-elements">
<label class="radio">
<input type="radio" class="radio__input" name="name" value="value1">
<div class="radio__custom-element">
<div class="radio__control">
<div class="radio__icon"></div>
</div>
<div class="radio__text">Default</div>
</div>
</label>
<label class="radio">
<input type="radio" class="radio__input" checked name="name" value="value2">
<div class="radio__custom-element">
<div class="radio__control">
<div class="radio__icon"></div>
</div>
<div class="radio__text">Checked</div>
</div>
</label>
</div>
<div class="card__block-elements">
<label class="checkbox">
<input type="checkbox" class="checkbox__input">
<div class="checkbox__custom-element">
<div class="checkbox__control">
<svg class="checkbox__icon" width="15" height="13" viewBox="0 0 15 13" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M1.5 7.5L5 11L13 2" stroke="white" stroke-width="3"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="checkbox__text">Default</div>
</div>
</label>
<label class="checkbox">
<input type="checkbox" class="checkbox__input" checked>
<div class="checkbox__custom-element">
<div class="checkbox__control">
<svg class="checkbox__icon" width="15" height="13" viewBox="0 0 15 13" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M1.5 7.5L5 11L13 2" stroke="white" stroke-width="3"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="checkbox__text">Checked</div>
</div>
</label>
</div>
</div>
<div class="card__meta-info">
<h3 class="card__title">Custom form elements</h3>
<div class="card__component-type">Element</div>
</div>
</a>
<a href="/pages/calendar.html" class="card type-container">
<div class="card__preview-area">
<div class="calendar">
<div class="calendar__selected-month">
October 2019
</div>
<div class="calendar__outer-wrapper">
<div class="calendar__inner-wrapper">
<div class="calendar__date-item calendar__date-item_weekday">Mon</div>
<div class="calendar__date-item calendar__date-item_weekday">Tue</div>
<div class="calendar__date-item calendar__date-item_weekday">Wed</div>
<div class="calendar__date-item calendar__date-item_weekday">Thu</div>
<div class="calendar__date-item calendar__date-item_weekday">Fri</div>
<div class="calendar__date-item calendar__date-item_weekday">Sat</div>
<div class="calendar__date-item calendar__date-item_weekday">Sun</div>
<div class="calendar__date-item calendar__date-item_ordinary"></div>
<div class="calendar__date-item calendar__date-item_ordinary"></div>
<div class="calendar__date-item calendar__date-item_ordinary"></div>
<div class="calendar__date-item calendar__date-item_ordinary"></div>
<div class="calendar__date-item calendar__date-item_ordinary"></div>
<div class="calendar__date-item calendar__date-item_ordinary">1</div>
<div class="calendar__date-item calendar__date-item_ordinary">2</div>
<div class="calendar__date-item calendar__date-item_ordinary">3</div>
<div class="calendar__date-item calendar__date-item_ordinary">4</div>
<div class="calendar__date-item calendar__date-item_ordinary">5</div>
<div class="calendar__date-item calendar__date-item_ordinary">6</div>
<div class="calendar__date-item calendar__date-item_ordinary">7</div>
<div class="calendar__date-item calendar__date-item_ordinary">8</div>
<div class="calendar__date-item calendar__date-item_ordinary">9</div>
<div class="calendar__date-item calendar__date-item_ordinary">10</div>
<div class="calendar__date-item calendar__date-item_ordinary">11</div>
<div class="calendar__date-item calendar__date-item_ordinary">12</div>
<div class="calendar__date-item calendar__date-item_ordinary">13</div>
<div class="calendar__date-item calendar__date-item_ordinary">14</div>
<div class="calendar__date-item calendar__date-item_ordinary">15</div>
<div class="calendar__date-item calendar__date-item_ordinary">16</div>
<div class="calendar__date-item calendar__date-item_ordinary">17</div>
<div class="calendar__date-item calendar__date-item_ordinary calendar__date-item_selected">
18
</div>
<div class="calendar__date-item calendar__date-item_ordinary calendar__date-item_in-range">
19
</div>
<div class="calendar__date-item calendar__date-item_ordinary calendar__date-item_in-range">
20
</div>
<div class="calendar__date-item calendar__date-item_ordinary calendar__date-item_in-range">
21
</div>
<div class="calendar__date-item calendar__date-item_ordinary calendar__date-item_in-range">
22
</div>
<div class="calendar__date-item calendar__date-item_ordinary calendar__date-item_selected">
23
</div>
<div class="calendar__date-item calendar__date-item_ordinary">24</div>
<div class="calendar__date-item calendar__date-item_ordinary">25</div>
<div class="calendar__date-item calendar__date-item_ordinary">26</div>
<div class="calendar__date-item calendar__date-item_ordinary">27</div>
<div class="calendar__date-item calendar__date-item_ordinary">28</div>
<div class="calendar__date-item calendar__date-item_ordinary">29</div>
<div class="calendar__date-item calendar__date-item_ordinary">30</div>
<div class="calendar__date-item calendar__date-item_ordinary">31</div>
</div>
</div>
</div>
</div>
<div class="card__meta-info">
<h3 class="card__title">Calendar</h3>
<div class="card__component-type">Container</div>
</div>
</a>
<a href="/pages/modal.html" class="card type-template">
<div class="card__preview-area">
<div class="modal modal_force-show" id="modal">
<div class="modal__window">
<svg class="modal__close" id="modal-close" viewBox="0 0 24 24"
preserveAspectRatio="xMidYMid meet">
<use href="../../assets/images/icons.svg#cancel"></use>
</svg>
<p class="modal__title">Modal title</p>
<p class="modal__content">Amet minim mollit non deserunt ullamco est sit aliqua dolor do
amet sint. Velit</p>
</div>
</div>
</div>
<div class="card__meta-info">
<h3 class="card__title">Modal dialog</h3>
<div class="card__component-type">Template</div>
</div>
</a>
<a href="/pages/histogram.html" class="card type-template">
<div class="card__preview-area">
<div class="histogram">
<div class="histogram__meta">
<div class="histogram__title">
Total orders
</div>
<p class="histogram__full-view">
<!--<a href="" class="histogram__full-view-link">View all</a>-->
</p>
<p class="histogram__main-number">
50254
</p>
</div>
<div class="histogram__chart">
<div class="histogram__chart-item" style="height: 100%;"></div>
<div class="histogram__chart-item" style="height: 100%;"></div>
<div class="histogram__chart-item" style="height: 80%;"></div>
<div class="histogram__chart-item" style="height: 90%;"></div>
<div class="histogram__chart-item" style="height: 95%;"></div>
<div class="histogram__chart-item" style="height: 67%;"></div>
<div class="histogram__chart-item" style="height: 11%;"></div>
<div class="histogram__chart-item" style="height: 12%;"></div>
<div class="histogram__chart-item" style="height: 12%;"></div>
<div class="histogram__chart-item" style="height: 24%;"></div>
<div class="histogram__chart-item" style="height: 35%;"></div>
<div class="histogram__chart-item" style="height: 80%;"></div>
<div class="histogram__chart-item" style="height: 90%;"></div>
<div class="histogram__chart-item" style="height: 95%;"></div>
<div class="histogram__chart-item" style="height: 67%;"></div>
<div class="histogram__chart-item" style="height: 11%;"></div>
<div class="histogram__chart-item" style="height: 12%;"></div>
<div class="histogram__chart-item" style="height: 12%;"></div>
<div class="histogram__chart-item" style="height: 24%;"></div>
<div class="histogram__chart-item" style="height: 35%;"></div>
</div>
</div>
</div>
<div class="card__meta-info">
<h3 class="card__title">Histogram</h3>
<div class="card__component-type">Template</div>
</div>
</a>
<a href="/pages/avatar.html" class="card type-element">
<div class="card__preview-area">
<div class="avatar">
<img class="avatar__img" src="06-lection4/01-avatar/public/avatar-200.jpg" alt="Картинка с аватаром пользователя">
</div>
</div>
<div class="card__meta-info">
<h3 class="card__title">Avatar</h3>
<div class="card__component-type">Element</div>
</div>
</a>
</div>
<section class="container preview__section type-element-addition">
<header class="preview__section-header">buttons</header>
<div class="preview__section-content">
<div class="preview__section-block">
<div class="preview__section-mini-block">
<button class="button button_alternate" style="border: none; background: none;">Button</button>
<button class="button button_primary">Primary</button>
<button class="button button_secondary">Secondary</button>
<button class="button button_alternate">Alternate</button>
</div>
<div class="preview__section-mini-block">
<button class="button button_alternate" disabled style="border: none; background: none;">Button disabled</button>
<button class="button button_primary" disabled>Primary Disabled</button>
<button class="button button_secondary" disabled>Secondary Disabled</button>
<button class="button button_alternate" disabled>Alternate Disabled</button>
</div>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="container">
<header class="footer__title">About</header>
<p class="footer__description">This project is a collection of professionally designed, pre-built,
fully responsive HTML snippets you can drop into your projects. Get started by checking out our free
preview
components, or browsing the PNG previews in the categories you're most curious about.</p>
</div>
</footer>
</div>
<script src="assets/js/main.js"></script>
</body>
</html>