-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.html
86 lines (86 loc) · 2.24 KB
/
map.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
<!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>Earthquake Map View</title>
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"
integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI="
crossorigin="" />
<link
href="output.css"
rel="stylesheet" />
<style>
#map {
margin-top: 50px;
height: 400px;
}
</style>
</head>
<body class="max-h-screen bg-gray-200">
<header
class="sticky top-0 z-50 flex items-center justify-between px-4 py-4 text-white bg-gray-800 md:px-48">
<h1
class="text-xl font-bold sm:text-lg"
href="#">
Earthquakes
</h1>
</header>
<div class="container px-4 py-4 mx-auto my-4 md:px-20">
<h2 class="mb-4 text-xl font-bold text-center">Earthquake Map</h2>
<a
href="index.html"
class="flex items-center p-1 transition-all duration-500 bg-gray-200 rounded-md hover:bg-gray-300 w-max"
><svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-list"
width="26"
height="26"
viewBox="0 0 24 24"
stroke-width="2"
stroke="#000000"
fill="none"
stroke-linecap="round"
stroke-linejoin="round">
<path
stroke="none"
d="M0 0h24v24H0z"
fill="none" />
<path d="M9 6l11 0" />
<path d="M9 12l11 0" />
<path d="M9 18l11 0" />
<path d="M5 6l0 .01" />
<path d="M5 12l0 .01" />
<path d="M5 18l0 .01" />
</svg>
<span class="ml-2 text-lg">List View</span></a
>
<div class="w-full p-2 mt-2 bg-white rounded-lg shadow-lg">
<div
id="map"
class="border-2 border-gray-300 rounded-lg drop-shadow-xl"></div>
</div>
</div>
<footer
class="flex items-center justify-between px-4 py-4 text-white bg-gray-800 md:px-48">
<a
class="text-white"
href="https://earthquake.usgs.gov/"
target="_blank"
>Data provided by USGS</a
>
</footer>
<script
src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"
integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM="
crossorigin=""></script>
<script src="map.js"></script>
</body>
</html>