feat(profile): add user profile management with first and last name fields
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user