feat(auth): add page title to signup screen

Sets <title>Konto erstellen — Mealprep</title> via svelte:head
for browser tab and accessibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 15:00:02 +02:00
parent afcea6590d
commit 845e669cde
2 changed files with 9 additions and 0 deletions

View File

@@ -3,6 +3,10 @@
import SignupForm from '$lib/auth/SignupForm.svelte';
</script>
<svelte:head>
<title>Konto erstellen — Mealprep</title>
</svelte:head>
<!-- Mobile: stacked, Desktop: side by side -->
<div class="flex min-h-screen flex-col md:flex-row">
<BrandPanel />

View File

@@ -20,6 +20,11 @@ describe('signup page', () => {
expect(screen.getByText('Mealprep')).toBeInTheDocument();
});
it('sets the page title', () => {
render(Page);
expect(document.title).toBe('Konto erstellen — Mealprep');
});
it('does not render any navigation chrome', () => {
render(Page);
// No nav element should exist