-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
206 lines (185 loc) · 7.99 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
<!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">
<title>
Live Covid Tracker
</title>
<link rel="shortcut icon" href="./images/favicon.png" type="image/png">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;600;700;900&display=swap" rel="stylesheet">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="./css/grid.css">
<link rel="stylesheet" href="./css/app.css">
</head>
<body class="loading">
<div class="nav-wrapper">
<div class="container">
<div class="nav">
<a href="" class="logo">
COVID TRACKER
</a>
<div class="darkmode-switch" id="darkmode-switch">
<span>
<i class="bx bxs-moon"></i>
<i class="bx bxs-sun"></i>
</span>
</div>
</div>
</div>
</div>
<div class="content">
<div class="container">
<!-- country select -->
<div class="row">
<div class="col-3 col-md-6 col-sm-12">
<div class="box">
<div class="country-select" id="country-select">
<div class="country-select-toggle" id="country-select-toggle">
<span>
Global
</span>
<i class="bx bx-chevron-down"></i>
</div>
<div class="country-select-list" id="country-select-list">
<input type="text" placeholder="Search country name">
</div>
</div>
</div>
</div>
</div>
<!-- end country select -->
<!-- tracking information -->
<div class="row">
<!-- left content -->
<div class="col-8 col-md-12 col-sm-12">
<div class="row">
<!-- counter -->
<div class="col-4 col-md-4 col-sm-12">
<div class="box box-hover">
<div class="count count-confirmed">
<div class="count-icon">
<i class="bx bxs-virus"></i>
</div>
<div class="count-info">
<h5 id="confirmed-total">123,456,789</h5>
<span>confirmed</span>
</div>
</div>
</div>
</div>
<!-- counter -->
<!-- counter -->
<div class="col-4 col-md-4 col-sm-12">
<div class="box box-hover">
<div class="count count-recovered">
<div class="count-icon">
<i class="bx bxs-smile"></i>
</div>
<div class="count-info">
<h5 id="recovered-total">123,456,789</h5>
<span>recovered</span>
</div>
</div>
</div>
</div>
<!-- counter -->
<!-- counter -->
<div class="col-4 col-md-4 col-sm-12">
<div class="box box-hover">
<div class="count count-death">
<div class="count-icon">
<i class="bx bxs-sad"></i>
</div>
<div class="count-info">
<h5 id="death-total">123,456,789</h5>
<span>deaths</span>
</div>
</div>
</div>
</div>
<!-- counter -->
<!-- all time chart -->
<div class="col-12">
<div class="box">
<div class="box-header">
all times
</div>
<div class="box-body">
<div id="all-time-chart"></div>
</div>
</div>
</div>
<!-- end all time chart -->
</div>
</div>
<!-- end left content -->
<!-- right content -->
<div class="col-4 col-md-12 col-sm-12">
<!-- 30 days chart -->
<div class="box">
<div class="box-header">
last 30 days
</div>
<div class="box-body">
<div id="days-chart"></div>
</div>
</div>
<!-- end 30 days chart -->
<!-- top country affected -->
<div class="box">
<div class="box-header">
top countries affected
</div>
<div class="box-body">
<table class="table-countries" id="table-countries">
<thead>
<tr>
<th>
Country
</th>
<th>Confirmed</th>
<th>Recovered</th>
<th>Deaths</th>
</tr>
</thead>
<tbody>
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- end top country affected -->
</div>
<!-- end right content -->
</div>
<!-- end tracking information -->
</div>
</div>
<!-- end main content -->
<!-- footer -->
<div class="footer">
Source from <a href="https://documenter.getpostman.com/view/10808728/SzS8rjbc#b07f97ba-24f4-4ebe-ad71-97fa35f3b683" target="_blank">api.covid19api.com</a>
<br>
</div>
<!-- end footer -->
<!-- loader -->
<div class="loader">
<i class="bx bxs-virus bx-spin"></i>
</div>
<!-- end loader -->
<!-- apexchart -->
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<!-- JS -->
<script src="./js/fetchApi.js"></script>
<script src="./js/covidApi.js"></script>
<script src="./js/app.js"></script>
</body>
</html>