chore: temporarily disable login/signup and profile routes

Comment out auth navigation in Header and MobileNav.
Add redirect-to-home layout guards on /auth/* and /profile/* routes.
This commit is contained in:
2026-02-22 11:34:05 +01:00
parent cd29b49b0e
commit 2c462144a7
4 changed files with 18 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
<!-- Desktop nav -->
<nav class="hidden items-center gap-6 md:flex">
<a href="/" class="text-sm font-medium text-primary-200 hover:text-white">Suche</a>
<!-- TODO: re-enable auth nav when login/signup is ready
{#if user}
<a href="/profile" class="text-sm font-medium text-primary-200 hover:text-white">Profil</a>
<form method="POST" action="/auth/abmelden">
@@ -44,6 +45,7 @@
Anmelden
</a>
{/if}
-->
<ThemeToggle />
</nav>

View File

@@ -14,6 +14,7 @@
<a href="/" class="text-sm font-medium text-primary-200 hover:text-white" onclick={onclose}>
Suche
</a>
<!-- TODO: re-enable auth nav when login/signup is ready
{#if user}
<a href="/profile" class="text-sm font-medium text-primary-200 hover:text-white" onclick={onclose}>
Profil
@@ -29,5 +30,6 @@
Anmelden
</a>
{/if}
-->
</div>
</nav>

View File

@@ -0,0 +1,7 @@
// TODO: remove this redirect when login/signup is re-enabled
import { redirect } from '@sveltejs/kit';
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = () => {
redirect(302, '/');
};

View File

@@ -0,0 +1,7 @@
// TODO: remove this redirect when login/signup is re-enabled
import { redirect } from '@sveltejs/kit';
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = () => {
redirect(302, '/');
};