-
-
-
-
-
-
- Shortener
-
-
-
-
-
-
-
-
-
-
-
-
+ class="flex h-20 w-full items-center justify-between gap-6 p-4">
+
+
+
+
+
+ {#if $page.data.breadcrumbs}
+ {#each $page.data.breadcrumbs as breadcrumb, index}
+ {#if index == $page.data.breadcrumbs.length - 1}
+
+
+ {breadcrumb.name}
+
+
+ {:else}
+
+
+ {breadcrumb.name}
+
+
+ {/if}
+ {#if index != $page.data.breadcrumbs.length - 1}
+
+ {/if}
+ {/each}
+ {:else}
+
+ Home
+
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Shortener
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/frontend/src/routes/(app)/links/+layout.server.ts b/frontend/src/routes/(app)/links/+layout.server.ts
new file mode 100644
index 0000000..73ffb5c
--- /dev/null
+++ b/frontend/src/routes/(app)/links/+layout.server.ts
@@ -0,0 +1,10 @@
+import type { LayoutServerLoad } from './$types'
+
+export const load = (async (event) => {
+ const { breadcrumbs: parentBreadcrumbs } = await event.parent()
+ const breadcrumbs = [
+ ...parentBreadcrumbs,
+ { name: 'Links', path: '/links' },
+ ]
+ return { breadcrumbs }
+}) satisfies LayoutServerLoad
diff --git a/frontend/src/routes/(app)/projects/+layout.server.ts b/frontend/src/routes/(app)/projects/+layout.server.ts
new file mode 100644
index 0000000..9557ecb
--- /dev/null
+++ b/frontend/src/routes/(app)/projects/+layout.server.ts
@@ -0,0 +1,10 @@
+import type { LayoutServerLoad } from './$types'
+
+export const load = (async (event) => {
+ const { breadcrumbs: parentBreadcrumbs } = await event.parent()
+ const breadcrumbs = [
+ ...parentBreadcrumbs,
+ { name: 'Projects', path: '/projects' },
+ ]
+ return { breadcrumbs }
+}) satisfies LayoutServerLoad
diff --git a/frontend/src/routes/(app)/settings/+layout.server.ts b/frontend/src/routes/(app)/settings/+layout.server.ts
new file mode 100644
index 0000000..63d98cf
--- /dev/null
+++ b/frontend/src/routes/(app)/settings/+layout.server.ts
@@ -0,0 +1,10 @@
+import type { LayoutServerLoad } from './$types'
+
+export const load = (async (event) => {
+ const { breadcrumbs: parentBreadcrumbs } = await event.parent()
+ const breadcrumbs = [
+ ...parentBreadcrumbs,
+ { name: 'Settings', path: '/settings' },
+ ]
+ return { breadcrumbs }
+}) satisfies LayoutServerLoad