-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (110 loc) · 3.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
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
<!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>Recent Earthquakes</title>
<link
href="output.css"
rel="stylesheet" />
</head>
<body class="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>
<select
id="continent-selector"
class="px-2 py-1 text-gray-700 transition duration-500 bg-gray-300 rounded hover:bg-gray-400">
<option selected>Filter by Continent</option>
<option value="all">All</option>
<option value="north-america">North America</option>
<option value="south-america">South America</option>
<option value="europe">Europe</option>
<option value="africa">Africa</option>
<option value="asia">Asia</option>
<option value="oceania">Oceania</option>
</select>
</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">Recent Earthquakes</h2>
<a
href="map.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-map-2"
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="M12 18.5l-3 -1.5l-6 3v-13l6 -3l6 3l6 -3v7.5" />
<path d="M9 4v13" />
<path d="M15 7v5.5" />
<path
d="M21.121 20.121a3 3 0 1 0 -4.242 0c.418 .419 1.125 1.045 2.121 1.879c1.051 -.89 1.759 -1.516 2.121 -1.879z" />
<path d="M19 18v.01" />
</svg>
<span class="ml-2 text-lg">Map View</span></a
>
<div
id="earthquake-list"
class="relative p-2 pt-4 mt-2 bg-white rounded-lg shadow-lg">
<div
id="loading-spinner"
class="absolute items-center justify-center hidden right-1/2 top-20 animate-spin">
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-loader-2"
width="44"
height="44"
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="M12 3a9 9 0 1 0 9 9" />
</svg>
</div>
</div>
<nav
aria-label="Pagination"
class="flex justify-center mx-2 my-4">
<ul
id="pagination"
class="flex flex-wrap justify-center pagination"></ul>
</nav>
</div>
<footer
class="flex items-center justify-between p-4 text-white bg-gray-800">
<a
class="text-white"
href="https://earthquake.usgs.gov/"
target="_blank"
>All data provided by USGS</a
>
</footer>
<script src="script.js"></script>
</body>
</html>