feat: map sorting and separate filter

This commit is contained in:
2025-06-13 13:27:51 +01:00
parent ce6c391d81
commit 2ef9a63027
7 changed files with 465 additions and 302 deletions

View File

@@ -5,7 +5,7 @@
import { invalidate } from "$app/navigation";
let { data, children } = $props();
let { session, supabase } = $derived(data);
let { session, supabase, route } = $derived(data);
onMount(() => {
posthog.init("phc_hTnel2Q8GKo0TgIBnFWBueJW1ATmCG9tJOtETnQTUdY", {
@@ -19,6 +19,13 @@
});
return () => data.subscription.unsubscribe();
});
$effect(() => {
if (route.id === "/filter") {
document.body.classList.add("coloured");
} else {
document.body.classList.remove("coloured");
}
});
</script>
<svelte:head>
@@ -33,6 +40,7 @@
margin: 0;
padding: 0;
width: 100%;
min-height: 100vh;
}
:global(html) {
@@ -40,6 +48,10 @@
color: #eaffeb;
}
:global(body.coloured) {
background: linear-gradient(-77deg, #2e4653, #223a37);
}
:global(*) {
box-sizing: border-box;
font-family: Inter;