diff --git a/client/src/components/invite-modal.riot b/client/src/components/invite-modal.riot index 89f5427..9f72e9d 100644 --- a/client/src/components/invite-modal.riot +++ b/client/src/components/invite-modal.riot @@ -10,7 +10,18 @@ -
+
+ + +
+ +
-
+

Invite link generated!

+ +
+
+ + update({ nostrPubkey: e.target.value })} + required + /> +
+ +

{state.error}

+ + +
+ +
+

Added {state.nostrDisplayName} to room

+

+ This Nostr user hasn't joined GroupChat yet. They'll need to log in with their Nostr extension first. +

+ +
@@ -150,6 +194,49 @@ font-size: var(--text-xs); color: var(--text-muted); } + + .invite-tabs { + display: flex; + gap: var(--space-xs); + margin-bottom: var(--space-lg); + border-bottom: 1px solid var(--border); + padding-bottom: var(--space-xs); + } + + .invite-tab { + background: none; + border: none; + padding: var(--space-xs) var(--space-md); + font-size: var(--text-sm); + color: var(--text-secondary); + cursor: pointer; + border-radius: var(--radius-md) var(--radius-md) 0 0; + transition: color var(--transition-fast), background var(--transition-fast); + } + + .invite-tab:hover { + color: var(--text-primary); + background: var(--bg-tertiary); + } + + .invite-tab.active { + color: var(--accent); + border-bottom: 2px solid var(--accent); + font-weight: 500; + } + + .success-msg { + color: var(--success); + font-weight: 500; + margin-bottom: var(--space-md); + } + + .info-msg { + color: var(--text-secondary); + font-size: var(--text-sm); + line-height: 1.5; + margin-bottom: var(--space-md); + } diff --git a/client/src/components/profile-page.riot b/client/src/components/profile-page.riot index a3e780c..278efaf 100644 --- a/client/src/components/profile-page.riot +++ b/client/src/components/profile-page.riot @@ -41,8 +41,8 @@
- - Email cannot be changed + + {props.user?.email ? 'Email cannot be changed' : 'Logged in via Nostr'}

{state.error}

diff --git a/client/src/components/register-page.riot b/client/src/components/register-page.riot index 0058dff..b915293 100644 --- a/client/src/components/register-page.riot +++ b/client/src/components/register-page.riot @@ -51,6 +51,17 @@ +
+ or +
+ + +