diff --git a/src/routes/private/home/+page.svelte b/src/routes/private/home/+page.svelte index c9febf3..c6a5feb 100644 --- a/src/routes/private/home/+page.svelte +++ b/src/routes/private/home/+page.svelte @@ -2,53 +2,75 @@ let { data } = $props(); -

User Profile

+
+

User Dashboard

-
-
-
-
-
- {data.user?.user_metadata.display_name?.[0] ?? 'U'} +
+ +
+
+
+
+ {data.profile?.display_name?.[0]?.toUpperCase() ?? 'U'} +
+

{data.profile?.display_name}

+

{data.user?.email}

-
- {data.profile?.display_name} -
{data.user?.email}
+
- - - - - - - - - - - -
Section{data.profile?.section?.name ?? 'N/A'}
Position{data.profile?.section_position ?? 'N/A'}
-

User guide

-

- To scan a QR code, head over to Scanner in the top right corner. Click on Start scanning and - allow camera permissions. If you close and open your browser and your camera is stuck, simply - refresh the page or click Stop scanning and then Start scanning again. When you scan a QR - code, a request is sent to the server to get the user's personal information and to mark their - tickets as scanned. -

- {#if data.profile?.section_position === 'events_manager'} -

Events manager guide

-

You can view events

- {/if} + + +
+ +
+

Your Role

+
+
+
Section
+
+ {data.profile?.section?.name ?? 'N/A'} +
+
+
+
Position
+
+ {data.profile?.section_position ?? 'N/A'} +
+
+
+
+ + +
+

User Guide

+

+ To scan a QR code, head over to Scanner in the top right corner. Click + on "Start Scanning" and allow camera permissions. If your camera gets stuck, simply + refresh the page or click "Stop Scanning" and then "Start Scanning" again. When you scan + a QR code, the participant's ticket is automatically marked as scanned. +

+
+ + + {#if data.profile?.section_position === 'events_manager'} +
+

Events Manager Guide

+

+ As an Events Manager, you have access to the Events section. Here you + can create new events, manage participants by syncing with Google Sheets, send email + invitations with QR codes, and view event statistics. +

+
+ {/if} +
- - - Sign out -