Kundendaten Header

This commit is contained in:
Moritz Utcke
2025-03-07 15:49:05 -03:00
parent 0333f9315a
commit 096f325292
4 changed files with 21 additions and 7 deletions

View File

@@ -13,6 +13,8 @@
{#if bild}
<img src="/bilder/{bild.uid}.jpg" class="w-full max-h-72 object-cover rounded-t-lg" alt="Gebäude">
{:else}
<img src="/placeholder.png" class="w-full max-h-72 object-cover rounded-t-lg" alt="Gebäude">
{/if}
{/if}

View File

@@ -1,5 +1,14 @@
---
import { BenutzerClient } from "#components/Ausweis/types";
import HeaderLogin from "#components/design/header/HeaderLogin.svelte";
export type Props = {
user: BenutzerClient | null
}
const { user } = Astro.props;
---
<header id="header" class="">
@@ -62,7 +71,7 @@ lg:px-0 lg:gap-x-4">
<div class="w-full justify-self-center">
<HeaderLogin client:load />
<HeaderLogin {user} client:load />
</div>
</div>