-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (57 loc) · 2.09 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
<!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">
<link rel="stylesheet" href="style.css">
<title>Expenses Chart Component</title>
<link rel="shortcut icon" href="./images/favicon-32x32.png" type="image/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,700&display=swap" rel="stylesheet">
</head>
<body>
<header></header>
<main>
<div class="container">
<div class="top">
<div class="top-left">
<p>My balance</p>
<h4>$921.48</h4>
</div>
<img src="./images/logo.svg" alt="">
</div>
<div class="bottom">
<h1>Spending - Last 7 days</h1>
<div class="chart">
<canvas id="bar-chart"></canvas></div>
<div class="divider"></div>
<div class="total">
<div class="total-left">
<p>Total this month</p>
<h1>$478.33</h1>
</div>
<div class="total-right">
<p>+2.4%</p>
<p>from last month</p>
</div>
</div>
</div>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- <script src=
"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"> -->
</script>
<script src="index.js"></script>
<footer>
<div class="attribution ">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>
Coded By
<a href="https://github.com/KJabeen">KJabeen</a>
</div>
</footer>
</body>
</html>