diff --git a/frontend/src/lib/components/AdventureCard.svelte b/frontend/src/lib/components/AdventureCard.svelte index 7ea900c..5083b6b 100644 --- a/frontend/src/lib/components/AdventureCard.svelte +++ b/frontend/src/lib/components/AdventureCard.svelte @@ -18,6 +18,7 @@ import CollectionLink from './CollectionLink.svelte'; import DotsHorizontal from '~icons/mdi/dots-horizontal'; import DeleteWarning from './DeleteWarning.svelte'; + import ImageDisplayModal from './ImageDisplayModal.svelte'; export let type: string; @@ -27,7 +28,7 @@ let isWarningModalOpen: boolean = false; let keyword: string = ''; - + let image_url: string | null = null; export let adventure: Adventure; if (adventure.type == 'visited') { @@ -155,6 +156,10 @@ /> {/if} +{#if image_url} + (image_url = null)} {adventure} /> +{/if} +
@@ -166,7 +171,9 @@ class="carousel-item w-full" style="display: {i === currentSlide ? 'block' : 'none'}" > - {adventure.name} + (image_url = image.image)} + >{adventure.name}
{#each adventure.images as _, i} +
+