diff --git a/src/routes/(protected)/+layout.server.ts b/src/routes/(protected)/+layout.server.ts
new file mode 100644
index 0000000..16cb0fe
--- /dev/null
+++ b/src/routes/(protected)/+layout.server.ts
@@ -0,0 +1,12 @@
+import type { LayoutServerLoad } from "./$types";
+import { error } from "@sveltejs/kit";
+import { prisma } from "$lib/db";
+
+// const authorizedRoles - Not an admin gate, therefore all authenticated roles are authorized.
+
+export const load: LayoutServerLoad = async ({ locals }) => {
+ const user = await prisma.user.findUnique({ where: { id: locals.user?.id } });
+ if (!user) {
+ throw error(403, "not authorized");
+ }
+}
\ No newline at end of file
diff --git a/src/routes/(protected)/+layout.svelte b/src/routes/(protected)/+layout.svelte
new file mode 100644
index 0000000..701583a
--- /dev/null
+++ b/src/routes/(protected)/+layout.svelte
@@ -0,0 +1,14 @@
+
+
+
+
+
+ {@render children()}
+
+
diff --git a/src/routes/(protected)/affirmations/+page.server.ts b/src/routes/(protected)/affirmations/+page.server.ts
new file mode 100644
index 0000000..e1805f9
--- /dev/null
+++ b/src/routes/(protected)/affirmations/+page.server.ts
@@ -0,0 +1,7 @@
+import type { PageServerLoad } from "./$types";
+import { prisma } from "$lib/db";
+
+export const load: PageServerLoad = async () => {
+ const affirmations = await prisma.affirmation.findMany();
+ return { affirmations }
+}
\ No newline at end of file
diff --git a/src/routes/(protected)/affirmations/+page.svelte b/src/routes/(protected)/affirmations/+page.svelte
new file mode 100644
index 0000000..e6982bd
--- /dev/null
+++ b/src/routes/(protected)/affirmations/+page.svelte
@@ -0,0 +1,10 @@
+
+
+
+ {#each data.affirmations as affirmation}
+ {affirmation.name}
+ {affirmation.price}
+ {/each}
+
diff --git a/src/routes/(protected)/dashboard/+page.svelte b/src/routes/(protected)/dashboard/+page.svelte
new file mode 100644
index 0000000..cbabac1
--- /dev/null
+++ b/src/routes/(protected)/dashboard/+page.svelte
@@ -0,0 +1,6 @@
+
+
My Affirmations
+
My License Keys
+
My Playlists
+
My Schedules
+
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 29c27a8..1e89036 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -9,6 +9,6 @@
-