From 0d5792a99a83adbda952637a366f0a71cc734220 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Fri, 23 May 2025 11:23:24 -0400 Subject: [PATCH] Refactor adventure page layout and enhance UI components - Updated the layout of the adventure page to improve visual hierarchy and user experience. - Reorganized the structure of the hero section, including image navigation and quick info cards. - Enhanced the display of adventure details, including user info, visit history, and sun times. - Improved the handling of attachments and external links with better styling and accessibility. - Added functionality for copying coordinates and links to the clipboard. - Refined the map section to provide clearer location information and improved marker display. - Cleaned up unused imports and optimized the code for better readability. --- .../src/routes/adventures/[id]/+page.svelte | 971 +++++++++--------- 1 file changed, 490 insertions(+), 481 deletions(-) diff --git a/frontend/src/routes/adventures/[id]/+page.svelte b/frontend/src/routes/adventures/[id]/+page.svelte index 4d5d335..34144bb 100644 --- a/frontend/src/routes/adventures/[id]/+page.svelte +++ b/frontend/src/routes/adventures/[id]/+page.svelte @@ -1,12 +1,12 @@ {#if notFound} -
-
-
- Lost -
-

- {$t('adventures.not_found')} -

-

- {$t('adventures.not_found_desc')} -

-
- +
+
+
+ Lost +

{$t('adventures.not_found')}

+

{$t('adventures.not_found_desc')}

+
@@ -159,537 +142,563 @@ {/if} {#if !adventure && !notFound} -
- +
+
+ +
{/if} {#if adventure} {#if data.user && data.user.uuid == adventure.user_id} -
- +
{/if} -
-
-
-
- {#if adventure.images && adventure.images.length > 0} -
+
{/if} - {data.props.adventure && data.props.adventure.name + <title> + {data.props.adventure && data.props.adventure.name ? `${data.props.adventure.name}` - : 'Adventure'} + : 'Adventure'} +