feat: Added feature to allow users to give directions for study spaces. These directions appear when you click on a study space.

Co-authored-by: Asaam, Caspar <caspar.asaam22@imperial.ac.uk>
This commit is contained in:
TadiosT
2025-06-13 13:06:10 +01:00
parent b737c67377
commit f4517ef467
6 changed files with 20 additions and 1 deletions

View File

@@ -166,7 +166,12 @@
</div>
{/each}
<hr />
<div class="subtitle">Directions:</div>
<p class="addrContainer">
{space.directions}
</p>
<div class="subtitle">Where it is:</div>
<p class="addrContainer">
{#if place.name}

View File

@@ -21,6 +21,7 @@ export const load: PageServerLoad = async ({ params, locals: { supabase } }) =>
return {
space: {
description: "",
directions: "",
building_location: undefined,
location: "",
tags: [],

View File

@@ -461,6 +461,14 @@
rows={2}
/>
<label for="directions">Give directions:</label>
<Textarea
name="directions"
bind:value={studySpaceData.directions}
placeholder="Turn left once you enter Huxley and walk straight."
rows={2}
/>
<label for="building-location">Add the building location:</label>
<Text
name="building-location"