-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
258 lines (246 loc) · 8.53 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
<!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>TrackIt</title>
<link
rel="shortcut icon"
href="./static/images/favicon.png"
type="image/png"
/>
<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=Open+Sans:wght@300;400;600;800&display=swap"
rel="stylesheet"
/>
<link
href="https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css"
rel="stylesheet"
/>
<!-- CSS -->
<link rel="stylesheet" href="./static/css/grid.css" />
<link rel="stylesheet" href="./static/css/app.css" />
</head>
<body class="loading">
<!-- top nav -->
<div class="nav-wrapper">
<div class="container">
<div class="nav">
<a href="" class="logo">
Track<i class="bx bxs-virus-block bx-tada"></i>It
</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>
<!-- end top nav -->
<!-- main content -->
<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 time graph</div>
<div class="box-body">
<div id="all-time-chart"></div>
</div>
</div>
</div>
<!-- end all time chart -->
<!-- embed video -->
<div class="col-6 col-md-6 col-sm-12">
<div class="box">
<div class="box-header">What is Covid-19?</div>
<div class="box-body">
<iframe
width="100%"
height="315"
src="https://www.youtube.com/embed/OZcRD9fV7jo"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</div>
</div>
</div>
<!-- end embed video -->
<!-- embed video -->
<div class="col-6 col-md-6 col-sm-12">
<div class="box">
<div class="box-header">How to protect yourself?</div>
<div class="box-body">
<iframe
width="100%"
height="315"
src="https://www.youtube.com/embed/lCABKB11vi4"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</div>
</div>
</div>
<!-- end embed video -->
</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 -->
<!-- recovery rate chart -->
<div class="box">
<div class="box-header">recovery rate</div>
<div class="box-body">
<div id="recover-rate-chart"></div>
</div>
</div>
<!-- end recovery rate 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 />
Developed by
<a href="https://github.com/priyanshk20/" target="_blank"
>Priyansh Khandelwal</a
>
<br />
Inspired by
<a href="https://www.youtube.com/tuattrananh" target="_blank"
>Tuat Tran Anh</a
>
</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="./static/js/fetchApi.js"></script>
<script src="./static/js/covidApi.js"></script>
<script src="./static/js/app.js"></script>
</body>
</html>