diff --git a/src/lib/components/inputs/TagFilter.svelte b/src/lib/components/inputs/TagFilter.svelte new file mode 100644 index 0000000..ae68a2d --- /dev/null +++ b/src/lib/components/inputs/TagFilter.svelte @@ -0,0 +1,202 @@ + + +
+ + diff --git a/src/lib/index.ts b/src/lib/index.ts index 2e36564..f209ffe 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -24,3 +24,5 @@ export const availableStudySpaceTags = [ export const volumeTags = ["Silent", "Quiet", "Some Noise", "Loud"]; export const wifiTags = ["Good WiFi", "Moderate WiFi", "Bad WiFi", "No WiFi"]; export const powerOutletTags = ["Many Outlets", "Some Outlets", "No Outlets"]; + +export const allTags = [...availableStudySpaceTags, ...volumeTags, ...wifiTags, ...powerOutletTags] diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 6e717f7..882797f 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -3,19 +3,69 @@ import defaultImg from "$lib/assets/study_space.png"; import crossUrl from "$lib/assets/cross.svg"; import Navbar from "$lib/components/Navbar.svelte"; + import TagFilter from "$lib/components/inputs/TagFilter.svelte"; + import {availableStudySpaceTags} from "$lib" const { data } = $props(); - const { studySpaces, supabase } = $derived(data); + const { studySpaces, supabase } = $derived(data); + + let selectedTags = $state