-
{t('presentation.title')}
+
+ {t('presentation.title')} - {userName}
+
{t('presentation.description')}
@@ -189,9 +197,11 @@ function useAuthorPresentationState(pubkey: string | null) {
function AuthorPresentationFormView({
pubkey,
connected,
+ profile,
}: {
pubkey: string | null
connected: boolean
+ profile: { name?: string; pubkey: string } | null
}) {
const state = useAuthorPresentationState(pubkey)
@@ -202,6 +212,9 @@ function AuthorPresentationFormView({
return
}
+ // Get user name or fallback to shortened pubkey
+ const userName = profile?.name ?? (pubkey ? `${pubkey.substring(0, 16)}...` : 'Utilisateur')
+
return (
)
}
export function AuthorPresentationEditor() {
- const { connected, pubkey } = useNostrConnect()
- return
+ const { connected, pubkey, profile } = useNostrConnect()
+ return
}
diff --git a/components/ConnectButton.tsx b/components/ConnectButton.tsx
index 8f190bc..7ec9871 100644
--- a/components/ConnectButton.tsx
+++ b/components/ConnectButton.tsx
@@ -13,11 +13,11 @@ function ConnectForm({ onConnect, loading, error }: {
void onConnect()
}}
disabled={loading}
- className="px-6 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-medium transition-colors disabled:opacity-50"
+ className="px-6 py-2 bg-neon-cyan/20 hover:bg-neon-cyan/30 text-neon-cyan rounded-lg font-medium transition-all border border-neon-cyan/50 hover:shadow-glow-cyan disabled:opacity-50"
>
{loading ? 'Connecting...' : 'Connect with Nostr'}
- {error &&
{error}
}
+ {error &&
{error}
}
)
}
diff --git a/components/LanguageSelector.tsx b/components/LanguageSelector.tsx
index 9d5fafe..4fbda83 100644
--- a/components/LanguageSelector.tsx
+++ b/components/LanguageSelector.tsx
@@ -50,4 +50,3 @@ export function LanguageSelector() {
)
}
-