diff --git a/src/lib/cards/Card.svelte b/src/lib/cards/Card.svelte index c7390f6..79d0c69 100644 --- a/src/lib/cards/Card.svelte +++ b/src/lib/cards/Card.svelte @@ -61,13 +61,14 @@ .actions { display: flex; position: absolute; + top: 5px; right: 0; display: flex; - gap: 1px + gap: 0px } .content { - margin-top: 16px; + margin-top: 5px; } button { @@ -75,5 +76,10 @@ color: white; background: none; border: none; + transition: all 0.3s ease; + } + + button:hover { + color: var(--island-header-color); } diff --git a/src/lib/cards/NearToMeCard.svelte b/src/lib/cards/NearToMeCard.svelte new file mode 100644 index 0000000..ac13434 --- /dev/null +++ b/src/lib/cards/NearToMeCard.svelte @@ -0,0 +1,68 @@ + + + + {#if !$uuid || $uuid === "null"} +

Register to use this feature

+ {:else} + {#if $location} + {#if !stations} +

Fetching locations...

+ {:else} + {#each stations as station} + {station.NLCDESC} - {station.miles}mi + {/each} + {/if} + {:else} +

+ {/if} + {/if} +
+ + \ No newline at end of file diff --git a/src/lib/navigation/header.svelte b/src/lib/navigation/header.svelte index a1a1226..5e127e7 100644 --- a/src/lib/navigation/header.svelte +++ b/src/lib/navigation/header.svelte @@ -46,6 +46,7 @@ margin-top: 7px; margin-left: 20px; font-size: 15pt; + text-shadow: 0 3px 3px var(--box-shadow-color); } .headerBlock { diff --git a/src/routes/test/+page.svelte b/src/routes/test/+page.svelte index c115546..14a9031 100644 --- a/src/routes/test/+page.svelte +++ b/src/routes/test/+page.svelte @@ -2,6 +2,7 @@ import Card from "$lib/cards/Card.svelte"; import type { LookupCardConfig } from "$lib/cards/Card.types"; import LookupCard from "$lib/cards/LookupCard.svelte"; + import NearToMeCard from "$lib/cards/NearToMeCard.svelte"; let CardConfig = { title: "Near to Me", @@ -34,9 +35,6 @@ } - -

content

-
- + \ No newline at end of file