Skip to content

Commit

Permalink
fix stage pin display
Browse files Browse the repository at this point in the history
  • Loading branch information
dvantuyl committed May 17, 2024
1 parent df80fde commit 63da71f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
Binary file modified src/assets/images/map/1_columbiacity-phone.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/components/festival/Map.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import FaInfo from 'svelte-icons/fa/FaInfo.svelte';
import FaBriefcaseMedical from 'svelte-icons/fa/FaBriefcaseMedical.svelte';
import FaRestroom from 'svelte-icons/fa/FaRestroom.svelte';
import { info } from 'node_modules/astro/dist/core/logger/core';
export let stages: Stage[];
export let coordinates: Coordinates;
Expand Down Expand Up @@ -72,6 +73,7 @@
stage.pinEl && (stage.pinEl.style.left = `${left}px`);
stage.pinEl && (stage.pinEl.style.top = `${top}px`);
stage.pinEl && (stage.pinEl.style.display = 'flex');
});
Object.entries(other).forEach(([key, [x, y]]) => {
Expand All @@ -84,15 +86,19 @@
if (key === 'info') {
infoPinEl && (infoPinEl.style.left = `${left}px`);
infoPinEl && (infoPinEl.style.top = `${top}px`);
infoPinEl && (infoPinEl.style.display = 'flex');
} else if (key === 'medic') {
medicPinEl && (medicPinEl.style.left = `${left}px`);
medicPinEl && (medicPinEl.style.top = `${top}px`);
medicPinEl && (medicPinEl.style.display = 'flex');
} else if (key === 'potty') {
pottyPinEl && (pottyPinEl.style.left = `${left}px`);
pottyPinEl && (pottyPinEl.style.top = `${top}px`);
pottyPinEl && (pottyPinEl.style.display = 'flex');
} else if (key === 'potty2') {
potty2PinEl && (potty2PinEl.style.left = `${left}px`);
potty2PinEl && (potty2PinEl.style.top = `${top}px`);
potty2PinEl && (potty2PinEl.style.display = 'flex');
}
});
};
Expand Down Expand Up @@ -128,6 +134,7 @@
{#if stage}
<button
class="absolute flex h-8 w-8 rounded shadow-lg"
style="display: none;"
bind:this={stage.pinEl}
on:click={() => selectStage(stage.key)}
>
Expand All @@ -148,6 +155,7 @@
<!-- Info Pin -->
<span
class="absolute flex h-6 w-6 justify-center items-center rounded-full overflow-hidden shadow-lg"
style="display: none;"
bind:this={infoPinEl}
>
<span class="absolute inline-flex h-full w-full bg-green-500" />
Expand All @@ -160,6 +168,7 @@
<!-- Medic Pin -->
<span
class="absolute flex h-6 w-6 justify-center items-center rounded-t-lg overflow-hidden shadow-lg"
style="display: none;"
bind:this={medicPinEl}
>
<span class="absolute inline-flex h-full w-full bg-white" />
Expand All @@ -172,6 +181,7 @@
<!-- Potty Pin -->
<span
class="absolute flex h-6 w-6 justify-center items-center rounded overflow-hidden shadow-lg"
style="display: none;"
bind:this={pottyPinEl}
>
<span class="absolute inline-flex h-full w-full bg-blue-500" />
Expand All @@ -184,6 +194,7 @@
<!-- Potty 2 Pin -->
<span
class="absolute flex h-6 w-6 justify-center items-center rounded overflow-hidden shadow-lg"
style="display: none;"
bind:this={potty2PinEl}
>
<span class="absolute inline-flex h-full w-full bg-blue-500" />
Expand Down
8 changes: 4 additions & 4 deletions src/data/schedule.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
"19:00" = [ "", "", "", "" ]
"19:30" = [ "", "", "", "" ]
[days.coordinates]
"info" = [540.0,620.0]
"medic" = [540.0,540.0]
"potty" = [470.0,720.0]
"info" = [480.0,1270.0]
"medic" = [480.0,1180.0]
"potty" = [410.0,1330.0]


[[days]]
Expand All @@ -86,4 +86,4 @@
[days.coordinates]
"info" = [1200.0,420.0]
"medic" = [1200.0,510.0]
"potty" = [580.0, 1060.0]
"potty" = [1200.0, 740.0]
5 changes: 2 additions & 3 deletions src/data/stages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ mapUrl = "https://goo.gl/maps/DxAg4xmBYWnQR88d9"

[edmunds]
name = "Edmunds Stage"
x = 100.0
y = 800.0
x = 180.0
y = 1380.0
mapUrl = "https://maps.app.goo.gl/XLbUVWercZPEC9SU8"


[pratt_hill]
name = "North Hill Stage"
x = 775.0
Expand Down

0 comments on commit 63da71f

Please sign in to comment.