feat(profile): add user profile management with first and last name fields

This commit is contained in:
Nils-Johan Gynther
2026-04-17 20:44:23 +02:00
parent 68b29f6d8e
commit a9e83544c5
9 changed files with 329 additions and 3 deletions
+31 -3
View File
@@ -39,9 +39,37 @@ export default async function Navigation() {
<span style={{ flex: 1 }} />
{session?.user && (
<>
<span style={{ fontSize: '0.9rem', color: '#555' }}>
👤 {session.user.name}
</span>
<Link
href="/profil"
style={{
display: 'flex',
alignItems: 'center',
gap: '0.4rem',
fontSize: '0.9rem',
color: '#555',
textDecoration: 'none',
padding: '0.3rem 0.5rem',
borderRadius: 4,
}}
>
<span
style={{
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
width: 28,
height: 28,
borderRadius: '50%',
background: '#2563eb',
color: 'white',
fontWeight: 700,
fontSize: '0.85rem',
}}
>
{session.user.name?.charAt(0).toUpperCase()}
</span>
{session.user.name}
</Link>
<form action={signOutAction}>
<button
type="submit"