This commit is contained in:
cjdenio committed 2026-07-05 16:30:09 -06:00
1 parent 6f4d92c295
commit 31cd41d2a9
2 files changed
+39 -5

No files matched your search

+32 -5
View File
@@ -19,7 +19,7 @@
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
<style> <style>
.leaflet-marker-icon:has(.vehicle) { body:not(.skip-vehicle-animation) .leaflet-marker-icon:has(.vehicle) {
transition: transform 300ms linear; transition: transform 300ms linear;
} }
@@ -71,6 +71,28 @@
background-image: linear-gradient(to bottom right, #2eb566 33%, #004a97 33%, #004a97 66%, #be2036 66%); background-image: linear-gradient(to bottom right, #2eb566 33%, #004a97 33%, #004a97 66%, #be2036 66%);
} }
.nav {
grid-column: span 2;
background-color: #e5e7eb;
display: flex;
gap: 10px;
box-sizing: border-box;
line-height: 1.5;
}
.nav a {
display: block;
font-size: 30px;
padding: 0 20px;
text-decoration: none;
font-family: sans-serif;
}
.nav__item--selected {
background-color: white;
border-bottom: 3px solid #93c5fd;
}
#banner { #banner {
grid-column: span 2; grid-column: span 2;
background-color: #ef4444; background-color: #ef4444;
@@ -88,7 +110,7 @@
} }
#map, #sidebar { #map, #sidebar {
grid-row: 2 / 3; grid-row: 3 / 4;
} }
#sidebar label { #sidebar label {
@@ -108,7 +130,7 @@
#bottom-bar { #bottom-bar {
display: none; display: none;
grid-row: 3 / 4; grid-row: 4 / 5;
gap: 10px; gap: 10px;
justify-content: center; justify-content: center;
padding: 10px; padding: 10px;
@@ -126,7 +148,7 @@
#container { #container {
display: grid; display: grid;
grid-template-columns: auto 300px; grid-template-columns: auto 300px;
grid-template-rows: auto 1fr; grid-template-rows: auto auto 1fr;
height: 100dvh; height: 100dvh;
} }
@@ -138,7 +160,7 @@
@media screen and (max-width: 800px) { @media screen and (max-width: 800px) {
#container { #container {
grid-template-columns: 1fr; grid-template-columns: 1fr;
grid-template-rows: auto 1fr auto; grid-template-rows: auto auto 1fr auto;
} }
#sidebar { #sidebar {
display: none; display: none;
@@ -156,6 +178,11 @@
There are currently no vehicles running. Either service has ended for There are currently no vehicles running. Either service has ended for
the day, or UTA's tracker isn't working. Come back later! the day, or UTA's tracker isn't working. Come back later!
</div> </div>
<div class="nav">
<a title="UTA Vehicle Tracker" href="https://uta.clb.li" class="nav__item--selected">🚆</a>
<a title="TRAXcidents" href="https://traxcidents.clb.li">💥</a>
<a title="GreenBike Firehose" href="https://greenbike.clb.li">🚲</a>
</div>
<div id="map"></div> <div id="map"></div>
<div id="bottom-bar"> <div id="bottom-bar">
+7
View File
@@ -36,6 +36,13 @@ L.tileLayer(
} }
).addTo(map); ).addTo(map);
map.on("zoomstart", () => {
document.body.classList.add("skip-vehicle-animation")
})
map.on("zoomend", () => {
document.body.classList.remove("skip-vehicle-animation")
})
const busLayer = L.layerGroup().addTo(map); const busLayer = L.layerGroup().addTo(map);
const brtLayer = L.layerGroup().addTo(map); const brtLayer = L.layerGroup().addTo(map);
const traxLayer = L.layerGroup().addTo(map); const traxLayer = L.layerGroup().addTo(map);