Skip to content

Commit

Permalink
add favicon and remove popup bg
Browse files Browse the repository at this point in the history
  • Loading branch information
jonerrr committed Oct 25, 2024
1 parent b5081a7 commit de99034
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bus-map",
"version": "0.2.0",
"version": "0.2.1",
"private": true,
"scripts": {
"dev": "vite dev",
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="icon" href="%sveltekit.assets%/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>MTA Bus Map</title>
<meta name="description" content="A realtime map of MTA buses in New York City" />
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Routes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
>
<Popup>
{#if clicked_feature}
<div class={`bg-slate-800 p-2 max-w-[70vw]`}>
<div class={`max-w-[70vw]`}>
<h1 class="font-bold text-lg" style={`color: ${clicked_feature.color}`}>
{clicked_feature.short_name} | {clicked_feature.long_name}
</h1>
Expand All @@ -52,7 +52,7 @@
href={`${env.PUBLIC_FRONTEND_URL}/?d=${encodeURIComponent(clicked_feature.id)}`}
target="_blank"
rel="noopener"
class="font-semibold text-md text-blue-400"
class="font-semibold underline text-md text-indigo-700"
>
Live bus alerts
</a>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Stops.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
>
<Popup>
{#if clicked_feature}
<div class={`bg-slate-800 p-2 max-w-[70vw] rounded-xl flex flex-col gap-1`}>
<div class={`rounded-xl flex flex-col gap-1 text-black`}>
<h1 class="font-bold text-lg">
{clicked_feature.name}
</h1>
Expand All @@ -68,7 +68,7 @@
href={`${env.PUBLIC_FRONTEND_URL}/?d=${clicked_feature.id}`}
target="_blank"
rel="noopener"
class="font-semibold text-md text-blue-400"
class="font-semibold underline text-md text-indigo-700"
>
Live bus arrivals
</a>
Expand Down
19 changes: 9 additions & 10 deletions src/lib/Trips.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,27 @@
>
<Popup>
{#if clicked_feature}
<div class={`bg-slate-800 p-2 max-w-[70vw]`}>
<div class={`max-w-[70vw] flex flex-col gap-1 text-black`}>
<h1 class="font-bold text-lg">{clicked_feature.route_id}</h1>
{#if clicked_feature.passengers && clicked_feature.capacity}
<p>
<div class="flex gap-1">
<span class="font-bold">passengers</span>: {clicked_feature.passengers} / {clicked_feature.capacity}
</p>
</div>
{:else}
<p>
<div class="flex gap-1">
<span class="font-bold">passengers</span>: unknown
</p>
</div>
{/if}
<p></p>
<p>
<div>
<a
href={`${env.PUBLIC_FRONTEND_URL}/?d=${clicked_feature.id}`}
target="_blank"
rel="noopener"
class="font-semibold text-md text-blue-400"
class="font-semibold underline text-md text-indigo-700"
>
Live bus arrivals
Live Trip Updates
</a>
</p>
</div>
</div>
{/if}
</Popup>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@
<Trips geojson={$page.data.trips} {map} />
</MapLibre>

<style>
<!-- <style>
:global(.maplibregl-popup-content) {
background-color: var(--color-bg);
color: var(--color-text);
padding: 0px;
}
</style>
</style> -->
Binary file removed static/favicon.png
Binary file not shown.
1 change: 1 addition & 0 deletions static/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit de99034

Please sign in to comment.