-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui-style-guide.html
488 lines (466 loc) · 18.2 KB
/
ui-style-guide.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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- BOOTSTRAP -->
<link rel="stylesheet" href="./assets/css/bootstrap-utilities.min.css" />
<link rel="stylesheet" href="./assets/css/bootstrap-gird.min.css" />
<!-- CUSTOM STYLESHEETS -->
<link rel="stylesheet" href="./assets/css/mc-calendar.min.css" />
<link rel="stylesheet" href="./assets/css/timepicki.css" />
<link rel="stylesheet" href="./assets/css/styles.css" />
<link rel="stylesheet" href="./assets/css/utilities.css" />
<title>Style Guide</title>
</head>
<body>
<div id="dark-overlay-dropdown"></div>
<div id="dark-overlay-calendar"></div>
<div id="dark-overlay-timer"></div>
<div id="dark-overlay" class="hide"></div>
<h2 class="text-center mt-4">UI style guide</h2>
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-12" style="max-width: 400px">
<div class="text-fields p-3">
<div class="mb-4">
<div class="custom-form-control">
<h4 class="text-light-2">Default</h4>
<input
class="custom-input"
type="text"
placeholder="Placeholder"
/>
</div>
</div>
<div class="mb-4">
<div class="custom-form-control">
<h4 class="text-light-2">Normal</h4>
<input class="custom-input" type="text" value="Default Value" />
</div>
</div>
<div class="mb-4">
<div class="custom-form-control">
<h4 class="text-light-2">Disable</h4>
<input
class="custom-input"
type="text"
disabled
value="Default Value"
/>
</div>
</div>
<div class="mb-4">
<div class="custom-form-control with-helper error">
<h4 class="text-light-2">Error</h4>
<input class="custom-input" type="text" value="Default Value" />
<div class="helper">
<img
src="./assets/images/input-error-helper.svg"
alt="error"
/>
<div class="text">Please provide a valid email address</div>
</div>
</div>
</div>
<div class="mb-4">
<div class="custom-form-control with-helper success">
<h4 class="text-light-2">Success</h4>
<input class="custom-input" type="text" value="Default Value" />
<div class="helper">
<img
src="./assets/images/input-success-helper.svg"
alt="success"
/>
<div class="text">Successfully updated</div>
</div>
</div>
</div>
<div class="mb-4">
<div class="custom-form-control with-helper info">
<h4 class="text-light-2">Info</h4>
<input class="custom-input" type="text" value="Default Value" />
<div class="helper">
<img src="./assets/images/input-info-helper.svg" alt="info" />
<div class="text">
Please provide a valid age between 18 to 60.
</div>
</div>
</div>
</div>
<div class="mb-4">
<div class="custom-form-control">
<h4 class="text-light-2">DROPDOWN</h4>
<div class="custom-select">
<select>
<option value="1">Saving</option>
<option value="2">Current</option>
</select>
</div>
</div>
</div>
<div class="mb-4">
<div class="custom-form-control mt-4">
<div class="with-icon">
<input
class="custom-input timepicker"
type="text"
placeholder="Choose Time"
onfocus="(this.type='date')"
onblur="(this.type='text')"
/>
<svg
xmlns="http://www.w3.org/2000/svg"
width="17"
height="17"
viewBox="0 0 17 17"
class="icon no-clr"
>
<g
class="white-clr"
id="Group_10713"
data-name="Group 10713"
transform="translate(-11718.5 15196.5)"
>
<g
class="no-clr"
id="clock"
transform="translate(11717 -15198)"
>
<circle
id="Ellipse_179"
data-name="Ellipse 179"
cx="8"
cy="8"
r="8"
transform="translate(2 2)"
fill="none"
stroke="#31353f"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="1"
/>
<path
id="Path_10235"
data-name="Path 10235"
d="M12,6v4.8l3.2,1.6"
transform="translate(-2 -0.8)"
fill="none"
stroke="#31353f"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="1"
/>
</g>
<g
id="Rectangle_1591"
data-name="Rectangle 1591"
transform="translate(11719 -15196)"
fill="#fff"
stroke="#31353f"
stroke-width="1"
opacity="0"
class="no-clr"
>
<rect
class="no-clr"
width="16"
height="16"
stroke="none"
/>
<rect
class="no-clr"
x="0.5"
y="0.5"
width="15"
height="15"
fill="none"
/>
</g>
</g>
</svg>
</div>
</div>
</div>
<div class="mb-4">
<div class="custom-form-control switch-container mt-0">
<label for="#nominee">
<h4>Toggler</h4>
</label>
<label id="nominee" class="switch">
<input type="checkbox" checked />
<span class="slider round"></span>
</label>
</div>
</div>
<div class="mb-4">
<div class="custom-form-control">
<h4 class="text-light-2">GENDER</h4>
<div class="radio-container">
<label class="custom-radio"
>Male
<input type="radio" checked="checked" name="gender" />
<span class="checkmark"></span>
</label>
<label class="custom-radio"
>Female
<input type="radio" name="gender" />
<span class="checkmark"></span>
</label>
<label class="custom-radio"
>Other
<input type="radio" name="gender" />
<span class="checkmark"></span>
</label>
</div>
</div>
</div>
<div class="mb-4">
<div class="custom-form-control">
<label class="checkbox-container fs-1919-16"
>Signed Up
<input type="checkbox" checked="checked" />
<span class="checkmark"></span>
</label>
<label class="checkbox-container mt-3 fs-1919-16"
>Investment
<input type="checkbox" />
<span class="checkmark"></span>
</label>
</div>
</div>
<div class="mb-4">
<div class="custom-form-control">
<div class="with-icon">
<input
class="custom-input"
type="text"
id="example"
type="date"
placeholder="Choose Date"
/><svg
class="icon"
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16.055"
viewBox="0 0 16 16.055"
>
<g
id="Group_10631"
data-name="Group 10631"
transform="translate(-790 -600.973)"
>
<g id="Group_1614" data-name="Group 1614" opacity="0">
<rect
id="Rectangle_1614"
data-name="Rectangle 1614"
width="16"
height="16"
transform="translate(790 601)"
fill=""
/>
<path
id="Rectangle_1614_-_Outline"
data-name="Rectangle 1614 - Outline"
d="M1,1V15H15V1H1M0,0H16V16H0Z"
transform="translate(790 601)"
fill=""
/>
</g>
<g
id="calendar_1_"
data-name="calendar (1)"
transform="translate(791 601.473)"
>
<path
id="Rectangle"
d="M2-.5H12A2.5,2.5,0,0,1,14.5,2V12A2.5,2.5,0,0,1,12,14.5H2A2.5,2.5,0,0,1-.5,12V2A2.5,2.5,0,0,1,2-.5Zm10,14A1.5,1.5,0,0,0,13.5,12V2A1.5,1.5,0,0,0,12,.5H2A1.5,1.5,0,0,0,.5,2V12A1.5,1.5,0,0,0,2,13.5Z"
transform="translate(0 1.055)"
fill=""
/>
<path
id="Path"
d="M.5,3.511a.5.5,0,0,1-.5-.5V0A.5.5,0,0,1,.5-.5.5.5,0,0,1,1,0V3.011A.5.5,0,0,1,.5,3.511Z"
transform="translate(9.286)"
fill=""
/>
<path
id="Path-2"
data-name="Path"
d="M.5,3.511a.5.5,0,0,1-.5-.5V0A.5.5,0,0,1,.5-.5.5.5,0,0,1,1,0V3.011A.5.5,0,0,1,.5,3.511Z"
transform="translate(3.264)"
fill=""
/>
<path
id="Path-3"
data-name="Path"
d="M13.549,1H0A.5.5,0,0,1,0,0H13.549a.5.5,0,0,1,0,1Z"
transform="translate(0 5.522)"
fill=""
/>
</g>
</g>
</svg>
</div>
</div>
</div>
<h2 class="text-center mb-3">Alert</h2>
<div class="mb-4">
<div class="alert alert-info">
<div class="alert-icon">
<img src="./assets/vector/alert-icon-info.svg" alt="icon" />
</div>
<div class="alert-text">
<div class="head fw-700 fs-16">Information</div>
<div class="body fs-14 fs-575-12">
Your profile has been updated.
</div>
</div>
</div>
</div>
<div class="mb-4">
<div class="alert alert-success">
<div class="alert-icon">
<img
src="./assets/vector/alert-icon-success.svg"
alt="icon"
/>
</div>
<div class="alert-text">
<div class="head fw-700 fs-16">Congratulations</div>
<div class="body fs-14 fs-575-12">
You have successfully submitted the application!
</div>
</div>
</div>
</div>
<div class="mb-4">
<div class="alert alert-warning">
<div class="alert-icon">
<img
src="./assets/vector/alert-icon-warning.svg"
alt="icon"
/>
</div>
<div class="alert-text">
<div class="head fw-700 fs-16">Heads up</div>
<div class="body fs-14 fs-575-12">
You’ve reached your limit. Please Upgrade to premium.
</div>
</div>
</div>
</div>
<div class="mb-4">
<div class="alert alert-danger">
<div class="alert-icon">
<img src="./assets/vector/alert-icon-danger.svg" alt="icon" />
</div>
<div class="alert-text">
<div class="head fw-700 fs-16">Error</div>
<div class="body fs-14 fs-575-12">
There was a problem sending your mail. Please try again.
</div>
</div>
</div>
</div>
<h2 class="text-center mb-3">Dialogue</h2>
<div class="d-flex justify-content-center">
<button id="dialogue-btn" class="btn btn-bg-primary">
Open Dialogue
</button>
</div>
<div class="mb-4">
<div class="reset-modal">
<div class="fs-24 fw-700 text-center mb-2">Reset Profile</div>
<div class="fs-14 mt-4 body">
Are you sure, want to continues to reset your profile. It will
erase all previous fund allocation and goal duration.
</div>
<div class="btns d-flex">
<button class="btn btn-outlined-dark">Not now</button>
<button class="btn btn-bg-primary">Yes, Reset</button>
</div>
</div>
</div>
<h2 class="text-center mb-3">Reaction</h2>
<div class="d-flex justify-content-center">
<button id="reactions-btn" class="btn btn-bg-primary">
Open Reaction Dialogue
</button>
</div>
<div class="reactions-modal">
<div class="close">
<img src="./assets/vector/cross.svg" alt="cross" />
</div>
<div class="fs-16 text-center head">
How likely are you to answer to this question?
</div>
<div class="reactions">
<button class="btn reaction">
<img src="./assets/vector/react-sad.svg" alt="sad" />
</button>
<button class="btn reaction">
<img src="./assets/vector/react-normal.svg" alt="normal" />
</button>
<button class="btn reaction">
<img src="./assets/vector/react-happy.svg" alt="happy" />
</button>
</div>
<div class="custom-form-control mt-4">
<h4 class="fs-14 fs-575-12 fw-500">
Tell us how we can improve
</h4>
<textarea
class="custom-input"
placeholder="Write your massage here"
rows="3"
></textarea>
</div>
<div
class="d-flex justify-content-between align-items-center btns mt-4"
>
<button class="btn px-0 fs-14 fs-575-12">Skip</button>
<button class="btn btn-bg-primary">Submit</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="./assets/js/jquery.min.js"></script>
<script src="./assets/js/select.js"></script>
<script src="./assets/js/common.js"></script>
<script src="./assets/js/mc-calendar.min.js"></script>
<script src="./assets/js/timepicki.js"></script>
<script defer>
$(document).ready(function () {
const myDatePicker = MCDatepicker.create({
el: "#example",
dateFormat: "DD/MM/YYYY",
showCalendarDisplay: false,
customOkBTN: "Done",
customClearBTN: "Reset",
customWeekDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
});
$(".timepicker").timepicki({ reset: true });
});
$("#dialogue-btn").click(function () {
$("#dark-overlay").removeClass("hide");
$(".reset-modal").addClass("show");
});
$(".reset-modal .btn").click(function () {
$("#dark-overlay").addClass("hide");
$(".reset-modal").removeClass("show");
});
$("#reactions-btn").click(function () {
$("#dark-overlay").removeClass("hide");
$(".reactions-modal").addClass("show");
});
$(".reactions-modal .close").click(function () {
$("#dark-overlay").addClass("hide");
$(".reactions-modal").removeClass("show");
});
</script>
</body>
</html>