-
Notifications
You must be signed in to change notification settings - Fork 1
/
worldmap.html
100 lines (100 loc) · 5.13 KB
/
worldmap.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="./css/worldmap.css">
<link rel="icon" href="./asset/LOGO.png" type="image/icon type">
<title>Covid-19</title>
<link href='https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css' rel='stylesheet' />
</head>
<body>
<header class="text-gray-500 bg-gray-900 body-font">
<div class="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center">
<a class="flex title-font font-medium items-center text-white mb-4 md:mb-0">
<img src="./asset/LOGO.png" class="logo" alt="">
<span class="ml-3 text-xl">Covid-19</span>
</a>
<nav class="md:ml-auto flex flex-wrap items-center text-base justify-center">
<a href="./index.html" class="mr-5 hover:text-white">Home</a>
<a href="./hospitals.html" class="mr-5 hover:text-white">Hospitals</a>
<a href="./worldmap.html" class="mr-5 text-white">World Map</a>
<a href="./contact.html" class="mr-5 hover:text-white">Contact</a>
</nav>
</div>
</header>
<section class="text-gray-700 body-font">
<div class="container px-5 py-2 mx-auto">
<div class="flex flex-wrap -m-4 text-center">
<div class="p-3 sm:w-1/3 w-1/2">
<h2 class="title-font font-medium sm:text-4xl text-3xl text-blue-500">29,874,643</h2>
<p class="leading-relaxed text-gray-600">Coronavirus Cases</p>
</div>
<div class="p-3 sm:w-1/3 w-1/2">
<h2 class="title-font font-medium sm:text-4xl text-3xl text-red-500">941,769</h2>
<p class="leading-relaxed text-gray-600">Deaths</p>
</div>
<div class="p-3 sm:w-1/3 w-1/2">
<h2 class="title-font font-medium sm:text-4xl text-3xl text-green-500">21,657,920</h2>
<p class="leading-relaxed text-gray-600">Recovered</p>
</div>
</div>
</div>
</section>
<div id='map'></div>
<footer class="text-gray-500 bg-gray-900 body-font">
<div class="container px-5 py-8 mx-auto flex items-center sm:flex-row flex-col">
<a class="flex title-font font-medium items-center text-white mb-4 md:mb-0">
<img src="./asset/LOGO.png" class="logo" alt="">
<span class="ml-3 text-xl">Covid-19</span>
</a>
<p class="text-sm text-gray-600 sm:ml-4 sm:pl-4 sm:border-l-2 sm:border-gray-800 sm:py-2 sm:mt-0 mt-4">© 2020 Covid-19 @Rajesh Ranjan</a>
</p>
<span class="inline-flex sm:ml-auto sm:mt-0 mt-4 justify-center sm:justify-start">
<a class="text-gray-600">
<svg fill="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
<path d="M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z"></path>
</svg>
</a>
<a class="ml-3 text-gray-600">
<svg fill="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
<path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z"></path>
</svg>
</a>
<a class="ml-3 text-gray-600">
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
<rect width="20" height="20" x="2" y="2" rx="5" ry="5"></rect>
<path d="M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37zm1.5-4.87h.01"></path>
</svg>
</a>
<a class="ml-3 text-gray-600">
<svg fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="0" class="w-5 h-5" viewBox="0 0 24 24">
<path stroke="none" d="M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6zM2 9h4v12H2z"></path>
<circle cx="4" cy="4" r="2" stroke="none"></circle>
</svg>
</a>
</span>
</div>
</footer>
</body>
<script src='https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js'></script>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoiaHNlamFyIiwiYSI6ImNrZDJvb205eTFmdzgzMW12OHZlc3BnbDEifQ.Q-YbXHv2kmuQJd1-paUacw';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/dark-v10',
center: [80, 20],
zoom: 3
});
map.addControl(
new mapboxgl.GeolocateControl({
positionOptions: {
enableHighAccuracy: true
},
trackUserLocation: true
})
);
</script>
<script src="./index.js"></script>
</html>