From bb14cfa5a576ff8a456b7f195afe72ecf46e4289 Mon Sep 17 00:00:00 2001 From: Brian Nelson Date: Tue, 6 Oct 2026 09:44:38 -0400 Subject: [PATCH] app structure --- PROJECT.md | 6 ++-- src/routes/(app)/+layout.svelte | 29 +++++++++++++++++++ src/routes/(app)/dashboard/+page.svelte | 12 ++++++++ .../{dashboard-01 => (app)/dashboard}/data.ts | 0 src/routes/(public)/+layout.svelte | 15 ++++++++++ src/routes/(public)/login/+page.svelte | 1 + src/routes/(public)/rsvp/[token]/+page.svelte | 1 + src/routes/+page.svelte | 2 +- src/routes/dashboard-01/+page.svelte | 29 ------------------- src/routes/dashboard/+page.svelte | 0 10 files changed, 63 insertions(+), 32 deletions(-) create mode 100644 src/routes/(app)/+layout.svelte create mode 100644 src/routes/(app)/dashboard/+page.svelte rename src/routes/{dashboard-01 => (app)/dashboard}/data.ts (100%) create mode 100644 src/routes/(public)/+layout.svelte create mode 100644 src/routes/(public)/login/+page.svelte create mode 100644 src/routes/(public)/rsvp/[token]/+page.svelte delete mode 100644 src/routes/dashboard-01/+page.svelte delete mode 100644 src/routes/dashboard/+page.svelte diff --git a/PROJECT.md b/PROJECT.md index 1abf397..0853fc1 100644 --- a/PROJECT.md +++ b/PROJECT.md @@ -1,9 +1,9 @@ ## Status ### Last Completed -Worked on the (Feature List)[#feature-list] +Started building out the app structure and putting in placeholders for unique rsvp token pages ### Next Up -Start building the database structure or the app layout and structure +Continue to build on app structure ## Feature List ### Must Haves @@ -33,5 +33,7 @@ At the top level the guest book will contain "Households". Every guest will belo For guests that are given a +1, there will be a placeholder name added as a Guest `"Guest of [NAME]"`. And a flag will be added to that guest entry. When responding to the RSVP, there will be an option to fill in the +1's name. +The `(app)` directory will be for all pages that need to have authentication. These will be the pages that the couple or planner will have access to. Publically facing pages will be in the `(public)` directory (things like the landing page and login page). This will also allow for a "wedding website" option that is publically accessible. + ## Open Questions \ No newline at end of file diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte new file mode 100644 index 0000000..b5934a8 --- /dev/null +++ b/src/routes/(app)/+layout.svelte @@ -0,0 +1,29 @@ + + + + + + + + + + +
+
+
+ {@render children()} +
+
+
+
+
diff --git a/src/routes/(app)/dashboard/+page.svelte b/src/routes/(app)/dashboard/+page.svelte new file mode 100644 index 0000000..4825dce --- /dev/null +++ b/src/routes/(app)/dashboard/+page.svelte @@ -0,0 +1,12 @@ + + +
+ +
+ \ No newline at end of file diff --git a/src/routes/dashboard-01/data.ts b/src/routes/(app)/dashboard/data.ts similarity index 100% rename from src/routes/dashboard-01/data.ts rename to src/routes/(app)/dashboard/data.ts diff --git a/src/routes/(public)/+layout.svelte b/src/routes/(public)/+layout.svelte new file mode 100644 index 0000000..7e9c3c9 --- /dev/null +++ b/src/routes/(public)/+layout.svelte @@ -0,0 +1,15 @@ + + + + + + +
+ {@render children()} +
\ No newline at end of file diff --git a/src/routes/(public)/login/+page.svelte b/src/routes/(public)/login/+page.svelte new file mode 100644 index 0000000..d7ee809 --- /dev/null +++ b/src/routes/(public)/login/+page.svelte @@ -0,0 +1 @@ +

Login Page

\ No newline at end of file diff --git a/src/routes/(public)/rsvp/[token]/+page.svelte b/src/routes/(public)/rsvp/[token]/+page.svelte new file mode 100644 index 0000000..f6a02c5 --- /dev/null +++ b/src/routes/(public)/rsvp/[token]/+page.svelte @@ -0,0 +1 @@ +

RSVP with Unique Token

\ No newline at end of file diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index d3051e0..a227cf7 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -4,4 +4,4 @@ import { Button } from "#lib/components/ui/button/index.js"; - + diff --git a/src/routes/dashboard-01/+page.svelte b/src/routes/dashboard-01/+page.svelte deleted file mode 100644 index c0e0772..0000000 --- a/src/routes/dashboard-01/+page.svelte +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - -
-
-
- -
- -
- -
-
-
-
-
diff --git a/src/routes/dashboard/+page.svelte b/src/routes/dashboard/+page.svelte deleted file mode 100644 index e69de29..0000000