feat(api): add endpoint to fetch guest list

* implement ListGuests method in store
* create handleGuestList function in API
* add GuestListEntry and GuestList interfaces in UI
* create guest list page to display RSVPs
This commit is contained in:
2026-08-12 19:21:14 +02:00
parent 2c28b18098
commit df5d8efeb1
5 changed files with 152 additions and 6 deletions
+20 -6
View File
@@ -24,12 +24,12 @@
</script>
<svelte:head>
<title>Zoé &amp; Shaldon are getting married</title>
<link rel="icon" href={favicon} />
<title>Zoé &amp; Shaldon are getting married</title>
<link rel="icon" href={favicon} />
</svelte:head>
<div
class="bg-surface-50 dark:bg-surface-950 flex min-h-screen flex-col bg-[url('/patterns/damask.svg')] bg-repeat [background-size:160px_160px]"
class="bg-surface-50 dark:bg-surface-950 flex min-h-screen flex-col bg-[url('/patterns/damask.svg')] bg-repeat [background-size:160px_160px]"
>
<div class="sticky top-0 z-20 flex flex-col">
<nav
@@ -65,18 +65,32 @@
onclick={() => (menuOpen = !menuOpen)}
>
{#if menuOpen}
<svg viewBox="0 0 24 24" class="size-6" fill="none" stroke="currentColor" stroke-width="2">
<svg
viewBox="0 0 24 24"
class="size-6"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path stroke-linecap="round" d="M6 6l12 12M18 6L6 18" />
</svg>
{:else}
<svg viewBox="0 0 24 24" class="size-6" fill="none" stroke="currentColor" stroke-width="2">
<svg
viewBox="0 0 24 24"
class="size-6"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path stroke-linecap="round" d="M4 7h16M4 12h16M4 17h16" />
</svg>
{/if}
</button>
</nav>
{#if menuOpen}
<div class="bg-primary-950 border-primary-800 flex flex-col gap-1 border-t px-4 py-3 sm:hidden">
<div
class="bg-primary-950 border-primary-800 flex flex-col gap-1 border-t px-4 py-3 sm:hidden"
>
{#each links as link (link.href)}
<a
href={link.href}