feat: map sorting and separate filter page #53

Merged
gk1623 merged 4 commits from map-sorting into master 2025-06-13 12:57:02 +00:00
9 changed files with 520 additions and 243 deletions
Showing only changes of commit 95c38c6f9f - Show all commits

View File

@@ -7,6 +7,7 @@
import { haversineDistance, timeToMins } from "$lib";
import Button from "$lib/components/Button.svelte";
import { urldecodeSortFilter } from "$lib/filter.js";
import { invalidate, invalidateAll } from "$app/navigation";
const { data } = $props();
const {
@@ -170,7 +171,12 @@
<footer>
{#if session}
<Button onclick={() => supabase.auth.signOut()}>Signout</Button>
<Button
onclick={async () => {
await supabase.auth.signOut();
invalidateAll();
}}>Signout</Button
>
{:else}
<Button href="/auth" type="link">Login / Signup</Button>
{/if}
@@ -183,7 +189,7 @@
grid-template-columns: 1fr 1fr;
gap: 1rem;
padding: 1rem;
max-width: 600px;
max-width: 32rem;
width: 100%;
margin: 0 auto;
}

View File

@@ -215,7 +215,7 @@
flex-direction: column;
gap: 1rem;
padding: 1rem;
max-width: 800px;
max-width: 32rem;
margin: auto;
}
.controls {