diff --git a/frontend/src/routes/collections/[id]/+page.svelte b/frontend/src/routes/collections/[id]/+page.svelte index ae1157a..e6b6643 100644 --- a/frontend/src/routes/collections/[id]/+page.svelte +++ b/frontend/src/routes/collections/[id]/+page.svelte @@ -28,7 +28,8 @@ groupTransportationsByDate, groupChecklistsByDate, osmTagToEmoji, - groupLodgingByDate + groupLodgingByDate, + ADVENTURE_TYPE_ICONS } from '$lib'; import ChecklistCard from '$lib/components/ChecklistCard.svelte'; import ChecklistModal from '$lib/components/ChecklistModal.svelte'; @@ -46,6 +47,14 @@ return marked(markdown); }; + function getLodgingIcon(type: string) { + if (type in ADVENTURE_TYPE_ICONS) { + return ADVENTURE_TYPE_ICONS[type as keyof typeof ADVENTURE_TYPE_ICONS]; + } else { + return '🏨'; + } + } + let collection: Collection; // add christmas and new years @@ -1031,6 +1040,28 @@ {/if} {/each} + {#each lodging as hotel} + {#if hotel.longitude && hotel.latitude} + + + {getLodgingIcon(hotel.type)} + + +
{hotel.name}
+

+ {hotel.type} +

+
+
+ {/if} + {/each}