From 3f25629923e8e6664a2772956a81ab3f422c66a1 Mon Sep 17 00:00:00 2001 From: Chad Curtis Date: Mon, 14 Jul 2025 21:12:26 +0000 Subject: [PATCH] review updates --- src/components/auth/LoginArea.tsx | 29 +++-- src/components/auth/LoginDialog.tsx | 29 ++--- src/components/auth/SignupDialog.tsx | 165 ++++++++++++--------------- 3 files changed, 107 insertions(+), 116 deletions(-) diff --git a/src/components/auth/LoginArea.tsx b/src/components/auth/LoginArea.tsx index 40d2f53..f84414a 100644 --- a/src/components/auth/LoginArea.tsx +++ b/src/components/auth/LoginArea.tsx @@ -2,7 +2,7 @@ // It is important that all functionality in this file is preserved, and should only be modified if explicitly requested. import { useState } from 'react'; -import { User } from 'lucide-react'; +import { User, UserPlus } from 'lucide-react'; import { Button } from '@/components/ui/button.tsx'; import LoginDialog from './LoginDialog'; import SignupDialog from './SignupDialog'; @@ -29,18 +29,27 @@ export function LoginArea({ className }: LoginAreaProps) { {currentUser ? ( setLoginDialogOpen(true)} /> ) : ( - +
+ +
)} setLoginDialogOpen(false)} + isOpen={loginDialogOpen} + onClose={() => setLoginDialogOpen(false)} onLogin={handleLogin} onSignup={() => setSignupDialogOpen(true)} /> diff --git a/src/components/auth/LoginDialog.tsx b/src/components/auth/LoginDialog.tsx index 6256023..e7f9a23 100644 --- a/src/components/auth/LoginDialog.tsx +++ b/src/components/auth/LoginDialog.tsx @@ -2,10 +2,10 @@ // It is important that all functionality in this file is preserved, and should only be modified if explicitly requested. import React, { useRef, useState, useEffect } from 'react'; -import { Shield, Upload, AlertTriangle, Sparkles, UserPlus, KeyRound, Lock } from 'lucide-react'; +import { Shield, Upload, AlertTriangle, UserPlus, KeyRound, Sparkles, Cloud } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; -import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from "@/components/ui/dialog"; +import { Dialog, DialogContent, DialogHeader, DialogDescription } from "@/components/ui/dialog"; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { Alert, AlertDescription } from '@/components/ui/alert'; import { useLoginActions } from '@/hooks/useLoginActions'; @@ -182,12 +182,10 @@ const LoginDialog: React.FC = ({ isOpen, onClose, onLogin, onS return ( - - Welcome! - + Sign up or log in to continue @@ -197,22 +195,20 @@ const LoginDialog: React.FC = ({ isOpen, onClose, onLogin, onS
- - + + New to Nostr?
- -

- Create a new account to join the network. +

+ Create a new account to get started. It's free and open.

-
@@ -241,7 +237,7 @@ const LoginDialog: React.FC = ({ isOpen, onClose, onLogin, onS Key - + Bunker @@ -276,7 +272,6 @@ const LoginDialog: React.FC = ({ isOpen, onClose, onLogin, onS Secret Key (nsec) = ({ isOpen, onClose, onComplete toast({ title: 'Secret Key Saved!', - description: 'Your key has been safely stored. Keep it safe!', + description: 'Your key has been safely stored.', }); } catch { toast({ @@ -264,7 +264,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete if (step === 'download') return ( - Secure Your Secret Key + Secret Key ); if (step === 'profile') return ( @@ -284,7 +284,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete const getDescription = () => { if (step === 'welcome') return 'Ready to join the Nostr network?'; if (step === 'generate') return 'Creating your secret key to access Nostr.'; - if (step === 'download') return 'This key is your password - keep it safe!'; + if (step === 'profile') return 'Tell others about yourself.'; return 'Your account is ready!'; }; @@ -320,11 +320,11 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete {getTitle()} - + {getDescription()}
-
+
{/* Welcome Step - New engaging introduction */} {step === 'welcome' && (
@@ -430,9 +430,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete

This key will be your password to access applications within the Nostr network.

-

- It's completely unique and secure:

keep it secret, keep it safe! -

+
)} @@ -499,106 +497,95 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete
{/* Key vault */} -
-
- - - Your Secret Key - -
-
- {nsec} -
-
+ {/* Security options */}
-
-

- Choose how to secure your key: -

-
+
- {/* Copy Option */} - - - - - - {/* Download Option */} - + ? 'ring-2 ring-green-500 bg-green-50 dark:bg-green-950/20' + : 'hover:bg-primary/5 hover:border-primary/20' + }`}> + + + + {/* Copy Option */} + + + @@ -609,8 +596,8 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete