-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
233 lines (209 loc) · 8.33 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
<html>
<head>
<title>geocode.mars</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
crossorigin=""/>
integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw=="
crossorigin=""></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-116653341-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-116653341-1');
</script>
<style>
.main-hero {
min-height: 400px;
height: 100vh;
max-height: 550px;
position: relative;
background-size: cover;
background-position: -250px center;
background-image: url('/geocodemars_header.jpg');
margin-bottom: 5rem;
}
.bg-dark-text {
color: #eee;
text-shadow: 1px 1px #333;
}
.main-content {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
footer {
padding: 1rem 0;
}
/* Divider
------------------------- */
.featurette-divider {
margin: 5rem 0; /* Space out the Bootstrap <hr> more */
}
/* RESPONSIVE CSS
-------------------------------------------------- */
@media (min-width: 40em) {
.main-hero {
background-position: 0% 0%;
max-height: 700px;
}
}
// pricing
.card-deck .card {
min-width: 250px;
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet-geocoder-mapzen/1.9.4/leaflet-geocoder-mapzen.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-geocoder-mapzen/1.9.4/leaflet-geocoder-mapzen.js"></script>
<style>
#map{ height: 800px; }
</style>
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container">
<a class="navbar-brand" href="/">geocode.mars</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="/#features">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/#pricing">Pricing</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main role="main">
<div class="main-hero">
<div class="container h-100">
<div class="row h-100">
<div class="col-sm-12 mt-5 mb-5">
<div class="main-content ">
<h1 class="bg-dark-text">Full Planet Search</h1>
<p class="bg-dark-text">Now on your favorite red planet!</p>
<p><a class="btn btn-lg btn-outline-primary mt-3" href="/#map" role="button">Try it now!</a></p>
</div>
</div>
</div>
</div>
</div>
</main>
<hr class="featurette-divider">
<div id="map"></div>
<a name="features"></a>
<div class="container">
<div class="feature-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h1 class="display-4">Features</h1>
</div>
<p class="lead text-center">Pretty okay geocoding of lots of places on Mars</p>
<div class="row justify-content-center">
<ul class="list-group col-md-6 justify-content-center">
<li class="list-group-item">Martian craters, mountains, canyons and more</li>
<li class="list-group-item">All known landers!</li>
<li class="list-group-item">A fully functional <a href="https://pelias.io">Pelias</a>-based geocoder at <a href="https://api.geocodemars.com/v1">https://api.geocodemars.com/v1</a></li>
<li class="list-group-item">Thanks to <a href="http://openplanetary.co/opm/">OpenPlanetaryMap</a> for the awesome basemap</li>
</ul>
</div>
</div>
<a name="pricing"></a>
<div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h1 class="display-4">Pricing</h1>
</div>
<p class="lead text-center">All plans come with a two millenium free trial</p>
<div class="container">
<div class="card-deck mb-3">
<div class="card border-primary mb-4 box-shadow">
<div class="card-header">
<h4 class="my-0 font-weight-normal">A little</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">FREE!</h1>
<ul class="list-unstyled mt-3 mb-4">
<li><strong>there are no rate limits</strong></li>
<li>but no guarantees, either</li>
</ul>
<a href="" class="btn btn-lg btn-block btn-primary">Get going</a>
</div>
</div>
<div class="card border-primary mb-4 box-shadow">
<div class="card-header">
<h4 class="my-0 font-weight-normal">A lot</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">FREE!</h1>
<ul class="list-unstyled mt-3 mb-4">
<li><strong>there are no rate limits</strong></li>
<li>only autocomplete is supported</li>
</ul>
<a href="" class="btn btn-lg btn-block btn-primary">Get going</a>
</div>
</div>
<div class="card border-primary mb-4 box-shadow">
<div class="card-header bg-primary text-white">
<h4 class="my-0 font-weight-normal">Way too much</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">FREE!</h1>
<ul class="list-unstyled mt-3 mb-4">
<li><strong>You'll probably break it for everyone</strong></li>
<li>don't do that</li>
</ul>
<a href="mailto:[email protected]" type="button" class="btn btn-lg btn-block btn-primary align-bottom">Email us if its broken</a>
</div>
</div>
</div>
<p class="text-muted text-center">Need a REAL geocoder for Earth? Email <a href="mailto:[email protected]">[email protected]</a></p>
</div>
<hr class="featurette-divider mb-0">
<!-- FOOTER -->
<footer class="container">
<div class="row">
<div class="col-12 col-md">
<small class="text-muted">
<span class="m-3"> © 2018 <a href="https://clearedfortakeoff.co">Cleared for Takeoff, Inc.</a></span>
·
<a class="d-inline text-muted m-3" href="https://geocode.earth">Geocoding for planet earth</a>
</small>
</div>
</footer>
<script>
// initialize the map
var map = L.map('map', {
center:[42.35, -71.08],
zoom: 3,
minZoom:2,
scrollWheelZoom: false
});
var geocodingOptions = {
url: 'https://api.geocodemars.com/v1',
textStrings: {
INPUT_PLACEHOLDER: 'Try Olympus Mons or Sojourner'
},
expanded: true,
attribution: ''
};
L.control.geocoder('no-key-required', geocodingOptions).addTo(map);
// load a tile layer
L.tileLayer('https://cartocdn-ashbu.global.ssl.fastly.net/nmanaud/api/v1/map/named/opm-mars-basemap-v0-1/all/{z}/{x}/{y}.png',
{
attribution: 'Tiles by <a href="http://openplanetary.co/opm/#3/11.80/-45.04">OpenPlanetaryMap</a>, Data from <a href="https://planetarynames.wr.usgs.gov/AdvancedSearch">IAU, NASA, oothers</a>',
maxZoom: 17,
minZoom: 1
}).addTo(map);
</script>
</body>
</html>