-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
228 lines (197 loc) · 8.15 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
<!DOCTYPE html>
<html>
<head>
<title>GO FTL</title>
<link rel="stylesheet" href="https://api.mapbox.com/mapbox-gl-js/v3.1.2/mapbox-gl.css">
<link rel="stylesheet" href="reset.css">
<script src="https://kit.fontawesome.com/8a24a0c95e.js" crossorigin="anonymous"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v3.1.2/mapbox-gl.js" crossorigin="anonymous"></script>
<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=Protest+Strike&family=Source+Code+Pro&display=swap" rel="stylesheet">
<style>
.source-code-pro {
font-family: "Source Code Pro", monospace;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
}
.protest-strike-regular {
font-family: "Protest Strike", sans-serif;
font-weight: 400;
font-style: normal;
}
html,
body {
height: 100%;
/* Ensure the full height of the page is used */
}
span {}
h1 {
font-size: 6vh;
line-height: 1.2em;
font-family: Protest Strike;
}
h2 {
font-size: 4vh;
line-height: 1.2em;
font-family: Protest Strike;
}
#countdown {
font-size: 1.5em;
line-height: 1em;
}
p {
font-size: 2.5vh;
line-height: 1.2em;
font-family: Source Code Pro;
font-weight: 500;
}
a {
text-decoration: underline;
color: #fff;
}
li {
font-family: Source Code Pro;
}
#map {
position: fixed;
/* Ensure this is positioned relatively to contain the absolutely positioned header */
width: 100%;
/* Adjust width as needed */
height: 100%;
/* Adjust height as needed, vh units ensure it takes up full viewport height */
}
#container {
position: absolute;
/* Position the header absolutely to float over the map */
bottom: 0;
/* Adjust as needed */
left: 0;
/* Adjust as needed */
width: 100%;
/* Ensure it spans across the map */
height: 100%;
background-color: rgba(0,
0,
0,
0.3);
/* Semi-transparent background for readability */
color: #fff;
/* Adjust text color as needed */
text-shadow: 0px 0px 5px #333;
padding: 20px;
/* Adjust padding as needed */
box-sizing: border-box;
/* Ensure padding doesn't affect the width */
z-index: 1;
/* Higher values will bring the element to the front */
}
section {
margin: 15px;
bottom: 10%;
position: fixed;
}
footer ul.icons li {
display: inline-block;
font-size: 3.5vh;
margin-right: 0.4em;
color: #fff;
}
footer ul.icons li a {
color: #fff;
}
footer ul.icons li a :hover {
color: #f5d822;
}
footer ul.brand li a {
text-transform: uppercase;
}
</style>
</head>
<body>
<div id="map">
<div id="container">
<section>
<h1>Open Public Beta: Join Us in Shaping the Future of Parking</h1>
<p>Welcome to the GO FTL. We're excited to introduce you to our cutting-edge web app, designed to provide real-time updates on available parking spaces, ensuring you have up-to-date information at your fingertips. We can't wait for you to join us on this journey toward smarter, more accessible solutions.</p>
<br>
<h2>Get ready to GO FTL</h2>
<br>
<p><span id="countdown"></span></p>
<br><br>
<!-- Footer -->
<footer>
<ul class="icons">
<li><a href="https://github.com/City-of-Fort-Lauderdale"><i class="fa-brands fa-github" target="_blank"></i></a></li>
<li><a href="https://www.youtube.com/CityofFortLauderdale" target="_blank"><i class="fa-brands fa-youtube"></i></a></li>
<li><a href="https://www.facebook.com/CityofFortLauderdale/" target="_blank"><i class="fa-brands fa-facebook"></i></a></li>
<li><a href="https://www.instagram.com/cityoffortlauderdale" target="_blank"><i class="fa-brands fa-instagram"></i></a></li>
<li><a href="https://twitter.com/FTLCityNews" target="_blank"><i class="fa-brands fa-x-twitter"></i></a></li>
<!-- <li><a href="#"><i class="fa-brands fa-medium" target="_blank"></i></a></li> -->
</ul>
<br>
<ul class="brand">
<li><a href="https://www.fortlauderdale.gov" target="_blank"><img src="logo.png" width="75" alt="City of Fort Lauderdale"></a></li>
</ul>
</footer>
</section>
</div>
</div>
<script>
mapboxgl.accessToken =
"pk.eyJ1IjoibWF1cmljaW9iYXF1ZXJvIiwiYSI6ImNscHNrZDd6aDA0NzcyaXJ6OTJiODVkMXYifQ.Sxnc-50cCwIwe1Om58AHQA";
const map = new mapboxgl.Map({
container: "map", // Specify the container ID
style: "mapbox://styles/mauriciobaquero/clrtokwti00qp01qs9hkfh2r7", // Specify the map style
center: [-80.13985, 26.1185], // Specify the initial center
zoom: 15.6, // Specify the initial zoom
pitch: 45 // Specify the initial pitch
});
function rotateCamera(timestamp) {
// clamp the rotation between 0 -360 degrees
// Divide timestamp by 100 to slow rotation to ~10 degrees / sec
map.rotateTo((timestamp / 800) % 360, {
duration: 0
});
// Request the next frame of the animation.
requestAnimationFrame(rotateCamera);
}
map.on("load", () => {
// Start the animation.
rotateCamera(0);
});
// Disable map zooming
map.scrollZoom.disable();
map.boxZoom.disable();
map.doubleClickZoom.disable();
map.touchZoomRotate.disable();
// Disable map panning
map.dragPan.disable();
map.dragRotate.disable();
map.keyboard.disable();
// Set the date we're counting down to
var countDownDate = new Date("Oct 1, 2024 00:00:00").getTime();
// Update the countdown every 1 second
var x = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the countdown date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in an element with id="countdown"
document.getElementById("countdown").innerHTML =
days + "D " + hours + "H " + minutes + "M " + seconds + "S ";
// If the countdown is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("countdown").innerHTML = "EXPIRED";
}
}, 1000);
</script>
</body>
</html>