This repository has been archived on 2026-02-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
serengo/src/lib/components/Header.svelte
2025-10-16 18:08:03 +02:00

47 lines
799 B
Svelte

<script lang="ts">
import { ProfilePanel } from '$lib';
type User = {
id: string;
username: string;
profilePictureUrl?: string | null;
};
let { user }: { user: User } = $props();
</script>
<header class="app-header">
<div class="header-content">
<h1 class="app-title">Serengo</h1>
<div class="profile-container">
<ProfilePanel
username={user.username}
id={user.id}
profilePictureUrl={user.profilePictureUrl}
/>
</div>
</div>
</header>
<style>
.app-header {
width: 100%;
position: relative;
z-index: 10;
backdrop-filter: blur(10px);
}
.header-content {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
margin: 0 auto;
max-width: 1200px;
}
.profile-container {
position: relative;
}
</style>