-
Notifications
You must be signed in to change notification settings - Fork 2
/
homepage.html
581 lines (537 loc) · 35.8 KB
/
homepage.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
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/ee0fedb69f.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.bundle.min.jss"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.css"></script>
<link rel="stylesheet" href="header.css">
<link rel="stylesheet" href="sidebar.css">
<link rel="stylesheet" href="content.css">
<link rel="stylesheet" href="popup-note.css">
<script src="chart-control.js"></script>
<script src="popup-note.js"></script>
<title>Home page</title>
</head>
<body>
<div class="header">
<div class="container">
<div class="row">
<div class="col-sm-1 home">
<a href="#" class="btn btn-primary btn-lg active btn-home" role="button" aria-pressed="true">
<i class="fas fa-coins img-coins"></i>
</a>
</div>
<div class="col-sm-3 finance-now">
<i class="fas fa-credit-card"></i> Tài chính hiện tại: 100000 VND
</div>
<div class="col-sm-6 add-note">
<button type="button" class="btn btn-success btn-add-note" data-toggle="modal" data-target="#addNote" onclick="popupNote()">Thêm ghi chép</button>
</div>
<div class="col-sm-2 profile">
<a href="#" class="btn btn-primary btn-lg active btn-profile" role="button" aria-pressed="true">
<i class="fas fa-bell img-bell"></i>
</a>
<a href="#" class="btn btn-primary btn-lg active btn-profile" role="button" aria-pressed="true">
<i class="fas fa-user-circle img-user"></i>
<div class="user-name">Quang</div>
</a>
</div>
</div>
</div>
</div>
<div>
<div class="container">
<div class="row">
<div class="col-sm-1 sidebarContainer">
<ul>
<li>
<i class="fas fa-home"></i>
<div>Tổng quan</div>
</li>
<li>
<i class="fas fa-book"></i>
<div>Sổ ghi chép</div>
</li>
<li>
<i class="fas fa-list-alt"></i>
<div>Tài khoản</div>
</li>
<li>
<i class="fas fa-building"></i>
<div>Hạn mức chi</div>
</li>
<li>
<i class="fab fa-wpforms"></i>
<div>Báo cáo</div>
</li>
<li>
<i class="fas fa-bars"></i>
<div>Khác</div>
</li>
</ul>
</div>
<div class="col-sm-11 contentContainer">
<div class="container height100">
<div class="row height100">
<div class="col-sm-8 left-nav">
<div class="month">Thu chi thang 2/2020</div>
<div class="total border-green">Tai chinh hien tai <br />+10.000.000 VND</div>
<div class="detail-container">
<div class="container height100">
<div class="row height100">
<div class="col-sm-4">
<div class="detail-today-container">
<div class="detail-today border-green">
Tai chinh hom nay: </br> 3.000.000 VND
</div>
<ul class="detail-item-container">
<li class="border-red">
<div class="detail-item-text">An sang</div>
<div class="detail-item-number"> - 500.000D</div>
</li>
<li class="border-red">
<div class="detail-item-text">An trua</div>
<div class="detail-item-number"> - 500.000D</div>
</li>
<li class="border-red">
<div class="detail-item-text">Cafe và Nước</div>
<div class="detail-item-number"> - 500.000D</div>
</li>
<li class="border-green">
<div class="detail-item-text">Sếp thưởng</div>
<div class="detail-item-number"> - 500.000D</div>
</li>
<li>
<div class="more">
<a href="#">Xem thêm </a>
<a href="#"><i class="fas fa-angle-double-down"></i></a>
</div>
</li>
</ul>
</div>
</div>
<div class="col-sm-8 chart-nav">
<div class="container padding-bottom-25 my-border-bottom">
<div class="row">
<div class="col-xl-7">
<div class="chart-container">
<canvas id="myChart" width="40" height="40"></canvas>
<script>
var ctx = document.getElementById('myChart');
var myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ['Thu', 'Chi'],
datasets: [{
label: "Thu",
data: [12, 3],
backgroundColor: [
'rgb(25, 141, 47)',
'rgb(204, 0, 0)',
],
borderColor: [
'rgb(25, 141, 47)',
'rgb(204, 0, 0)',
],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
stacked: true,
gridLines: {
display: true,
color: "rgba(255,99,132,0.2)"
}
}],
xAxes: [{
gridLines: {
display: false
}
}]
}
}
});
</script>
</div>
</div>
<div class="col-xl-5">
<div class="my-border-bottom">
<div class="collect green-text">
<span>Thu :</span>
<span class="money">12.000.000VND</span>
</div>
<div class="collect red-text">
<span>Chi :</span>
<span class="money">1.900.000</span>
</div>
</div>
<div class="collect">
<span>Tích lũy :</span>
<span class="money red-text">10.100.000VND</span>
</div>
</div>
</div>
</div>
<div class="container padding-bottom-25 ">
<div class="row">
<div class="col-sm-7">
<div class="chart-container-max">
<canvas id="oilChart" width="60" height="40"></canvas>
<script>
var Canvas = document.getElementById("oilChart");
Chart.defaults.global.defaultFontFamily = "Lato";
Chart.defaults.global.defaultFontSize = 18;
var Data = {
labels: [
"ăn uống",
"sinh hoạt"
],
datasets: [
{
data: [12, 7],
backgroundColor: [
"#FF6384",
"#63FF84",
]
}]
};
var pieChart = new Chart(Canvas, {
type: 'pie',
data: Data
});
</script>
</div>
</div>
<div class="col-sm-5">
<div>
<div class="collect ">
<span>Ăn uống :</span>
<span class="money red-text">12.000.000VND</span>
</div>
<div class="collect ">
<span>Sinh hoạt :</span>
<span class="money red-text">1.900.000</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="title-detail">Tình hình thu chi</div>
<select class="custom-select select-day">
<option selected>Hôm nay</option>
<option value="1">Ngày mai</option>
<option value="2">Ngày kia</option>
</select>
</div>
<div class="col-sm-4 right-nav">
<div class="border-nav">
<div class="title-header">
<div class="container ">
<div class="row">
<div class="col-sm-4">Tiêu đề</div>
<div class="col-sm-4">Số tiền</div>
<div class="col-sm-4">Ghi chú</div>
</div>
</div>
</div>
<div class="content-header">
<div class="container">
<div class="row">
<div class="col-sm-4">Lãi đầu tư</div>
<div class="col-sm-4 green-text">+5.000.000 VNĐ</div>
<div class="col-sm-4 italic">Năm triệu VNĐ</div>
</div>
</div>
</div>
<div class="content-header">
<div class="container">
<div class="row">
<div class="col-sm-4">Thưởng tháng</div>
<div class="col-sm-4 green-text">+2.000.000 VNĐ</div>
<div class="col-sm-4 italic">Hai triệu VNĐ</div>
</div>
</div>
</div>
<div class="content-header">
<div class="container">
<div class="row">
<div class="col-sm-4">Valentine</div>
<div class="col-sm-4 red-text">-5.000.000</div>
<div class="col-sm-4 italic">Năm triệu VNĐ</div>
</div>
</div>
</div>
<div class="more top-bottom-40">
<a href="#">Xem thêm </a>
<a href="#"><i class="fas fa-angle-double-down"></i></a>
</div>
<div class="title-detail top-20">
Tình hình thu chi sắp tới
</div>
<select class="custom-select select-day top-20 right-width-header">
<option selected>Hôm nay</option>
<option value="1">Ngày mai</option>
<option value="2">Ngày kia</option>
</select>
</div>
<div class="border-nav right-nav position-rela">
<div class="title-header">
<div class="container">
<div class="row">
<div class="col-sm-8">1/2-24/2</div>
<div class="col-sm-4 green-text">Còn 20 ngày: </br> <span> 24.000.000 VNĐ</span></div>
</div>
<div class="wrapper">
<div class="line line1">30%</div>
</div>
<div class="row top-bottom-40">
<div class="col-sm-8 red-text">Đã chi : 15.000.000</div>
<div class="col-sm-4">Bội chi : 0đ</span></div>
</div>
<div class="title-detail top-20">
Hạn mức chi
</div>
</div>
</div>
</div>
<div class="border-nav right-nav position-rela">
<div class="scroll">
<div class="container">
<div class="row">
<div class="col-sm-4">AUD</div>
<div class="col-sm-8">1 AUD~15,770.85 Vnđ</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">CAD</div>
<div class="col-sm-8">1 CAD~17,727.09 Vnđ</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">CHF</div>
<div class="col-sm-8">1 CHF~23,917.76</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">AUD</div>
<div class="col-sm-8">1 AUD~15,770.85 Vnđ</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">AUD</div>
<div class="col-sm-8">1 AUD~15,770.85 Vnđ</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">AUD</div>
<div class="col-sm-8">1 AUD~15,770.85 Vnđ</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">AUD</div>
<div class="col-sm-8">1 AUD~15,770.85 Vnđ</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">AUD</div>
<div class="col-sm-8">1 AUD~15,770.85 Vnđ</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">AUD</div>
<div class="col-sm-8">1 AUD~15,770.85 Vnđ</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">AUD</div>
<div class="col-sm-8">1 AUD~15,770.85 Vnđ</div>
</div>
</div>
<div class="title-detail top-20">
Tỉ giá đối ngoại
</div>
<select class="custom-select select-day top-20 right-width-header">
<option selected>Hôm nay</option>
<option value="1">Ngày mai</option>
<option value="2">Ngày kia</option>
</select>
</div>
<div class="more margin-bottom-25">
<a href="#">Xem thêm </a>
<a href="#"><i class="fas fa-angle-double-down"></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Add Note -->
<div class="modal fade" id="addNote" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header container note-header">
<div class="row row-header">
<div class="col-sm-4" id="titleLeft">
<i class="fas fa-circle-notch"></i> Thêm ghi chép
</div>
<div class="col-sm-4">
<p class="modal-title" id="titleNote">Chi tiền</p>
</div>
<div class="col-sm-4">
<button type="button" id="btnClose" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
</div>
<div class="modal-body">
<div class="container">
<div class="row">
<div class="col-sm-7">
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="input-border">
<div class="input-title">Số tiền</div>
<div>
<input type="number" class="form-control input-form" value="100000" aria-describedby="basic-addon1" style="width:80%" />
<label style="position:absolute; top:68px; right:30px">VND</label>
</div>
</div>
<div class="input-border">
<div class="input-title">Loại</div>
<select class="input-form" id="type" style="width:90%; margin-left:10px; margin-top:5px">
<option>Chi tiêu ngày</option>
<option>Chi tiêu tuần</option>
<option>Chi tiêu tháng</option>
<option>Chi tiêu năm</option>
</select>
</div>
</div>
<div class="col-sm-6">
<div class="input-border">
<div class="input-title">Ngày tháng</div>
<div><input type="date" class="form-control input-form" aria-describedby="basic-addon1"></div>
</div>
<div class="input-border">
<div class="input-title">Danh mục</div>
<select class="input-form" id="category" style="width:90%; margin-left:10px; margin-top:5px">
<option>Chữa bệnh</option>
<option>Mua sắm</option>
<option>Thức ăn</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-5 input-border">
<div class="input-title">Ghi chú</div>
<div><textarea class="form-control input-form" style="height:140px"></textarea></div>
</div>
</div>
<button type="button" class="btn btn-extend" onclick="noteExtend()">Thông tin thêm</button>
<div id="note-extend">
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="input-border">
<div class="input-title">Chi cho ai</div>
<div>
<input type="text" class="form-control input-form" aria-describedby="basic-addon1" />
</div>
</div>
</div>
<div class="col-sm-4">
<div class="input-border">
<div class="input-title">Địa điểm</div>
<div>
<input type="text" class="form-control input-form" aria-describedby="basic-addon1" />
</div>
</div>
</div>
<div class="col-sm-4">
<div class="input-border">
<div class="input-title">Sự kiện</div>
<div>
<input type="text" class="form-control input-form" aria-describedby="basic-addon1" />
</div>
</div>
</div>
</div>
</div>
<div class="label">
<label for="img">Hình ảnh</label>
<input type="file" id="img" name="img" accept="image/*">
</div>
<div class="custom-control custom-switch label">
<input type="checkbox" class="custom-control-input" id="customSwitch" onclick="borrow()">
<label class="custom-control-label" for="customSwitch">Đi vay</label>
</div>
<div id="borrow">
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="input-border">
<div class="input-title">Người cho vay</div>
<div>
<input type="text" class="form-control input-form" aria-describedby="basic-addon1" />
</div>
</div>
</div>
<div class="col-sm-6">
<div class="input-border">
<div class="input-title">Hạn trả</div>
<div>
<input type="date" class="form-control input-form" aria-describedby="basic-addon1">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-save" data-dismiss="modal">
<i class="far fa-save"></i> Lưu
</button>
<button type="button" class="btn btn-secondary btn-cancel" data-dismiss="modal">
<i class="far fa-trash-alt"></i> Hủy
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</body>
</html>