From e226ec42a54ea9c5178814d76929650532df1506 Mon Sep 17 00:00:00 2001 From: Chad Curtis Date: Tue, 8 Jul 2025 14:19:17 +0000 Subject: [PATCH] Make wording and icons generic --- src/components/auth/LoginDialog.tsx | 40 ++--- src/components/auth/SignupDialog.tsx | 220 +++++++++++++-------------- 2 files changed, 123 insertions(+), 137 deletions(-) diff --git a/src/components/auth/LoginDialog.tsx b/src/components/auth/LoginDialog.tsx index 23eed77..8b2d720 100644 --- a/src/components/auth/LoginDialog.tsx +++ b/src/components/auth/LoginDialog.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 React, { useRef, useState } from 'react'; -import { Shield, Upload, AlertTriangle, Sparkles, Crown, Gem, Star, KeyRound, Lock } from 'lucide-react'; +import { Shield, Upload, AlertTriangle, Sparkles, UserPlus, KeyRound, Lock } 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"; @@ -165,52 +165,38 @@ const LoginDialog: React.FC = ({ isOpen, onClose, onLogin, onS return ( - - Welcome, Traveler! + Welcome! - Start your quest, or login to return to your adventure + Sign up or log in to continue
{/* Prominent Sign Up Section */} -
- {/* Magical sparkles */} -
- - - -
- +
- - - New to Geocaching? - New to the Quest? + + + New to Nostr?
-

- - Join the guild of adventurers discovering hidden geocaches worldwide! - - - Join the ancient guild of geocache seekers on legendary quests! - +

+ Create a new account to join the network.

@@ -222,7 +208,7 @@ const LoginDialog: React.FC = ({ isOpen, onClose, onLogin, onS
- Or return to your adventure + Or log in
diff --git a/src/components/auth/SignupDialog.tsx b/src/components/auth/SignupDialog.tsx index 9ff92b3..a0d7ece 100644 --- a/src/components/auth/SignupDialog.tsx +++ b/src/components/auth/SignupDialog.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 React, { useState, useEffect, useRef } from 'react'; -import { Download, Key, Compass, Scroll, Shield, Crown, Sparkles, MapPin, Gem, Map, Star, Zap, Lock, CheckCircle, Copy, Upload } from 'lucide-react'; +import { Download, Key, UserPlus, FileText, Shield, User, Sparkles, LogIn, Lock, CheckCircle, Copy, Upload, Globe, FileSignature, Wand2 } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Textarea } from '@/components/ui/textarea'; @@ -46,7 +46,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete setIsLoading(true); setShowSparkles(true); - // Add a dramatic pause for the treasure generation effect + // Add a dramatic pause for the key generation effect setTimeout(() => { try { // Generate a new secret key @@ -57,8 +57,8 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete setStep('download'); toast({ - title: 'Your Treasure Key is Ready!', - description: 'A magical key has been forged just for you.', + title: 'Your Secret Key is Ready!', + description: 'A new secret key has been generated for you.', }); } catch { toast({ @@ -80,7 +80,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete const url = globalThis.URL.createObjectURL(blob); // Sanitize filename - const filename = sanitizeFilename('treasure-key.txt'); + const filename = sanitizeFilename('secret-key.txt'); // Create a temporary link element and trigger download const a = document.createElement('a'); @@ -98,8 +98,8 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete setKeySecured('downloaded'); toast({ - title: 'Treasure Key Secured!', - description: 'Your key has been safely stored in your vault. Guard it well!', + title: 'Secret Key Saved!', + description: 'Your key has been safely stored. Keep it safe!', }); } catch { toast({ @@ -114,8 +114,8 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete navigator.clipboard.writeText(nsec); setKeySecured('copied'); toast({ - title: 'Copied to your spellbook!', - description: 'Key safely transcribed to clipboard', + title: 'Copied to clipboard!', + description: 'Key copied to clipboard.', }); }; @@ -181,7 +181,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete const finishSignup = async (skipProfile = false) => { // Mark signup completion time for fallback welcome modal - localStorage.setItem('treasures_last_signup', Date.now().toString()); + localStorage.setItem('signup_completed', Date.now().toString()); try { // Publish profile if user provided information @@ -198,7 +198,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete toast({ title: 'Profile Created!', - description: 'Your adventurer profile has been set up.', + description: 'Your profile has been set up.', }); } @@ -215,8 +215,8 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete setTimeout(() => { onClose(); toast({ - title: 'Welcome to the Adventure!', - description: 'Your quest begins now!', + title: 'Welcome!', + description: 'Your account is ready.', }); }, 3000); } @@ -240,8 +240,8 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete setTimeout(() => { onClose(); toast({ - title: 'Welcome to the Adventure!', - description: 'Your quest begins now!', + title: 'Welcome!', + description: 'Your account is ready.', }); }, 3000); } @@ -251,42 +251,42 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete const getTitle = () => { if (step === 'welcome') return ( - - Begin Your Quest + + Create Your Account ); if (step === 'generate') return ( - - Forging Your Key + + Generating Your Key ); if (step === 'download') return ( - - Secure Your Treasure Key + + Secure Your Secret Key ); if (step === 'profile') return ( - + Create Your Profile ); return ( - - Welcome, Adventurer! + + Welcome! ); }; const getDescription = () => { - if (step === 'welcome') return 'Ready to discover hidden geocaches around the world?'; - if (step === 'generate') return 'Creating your magical key to unlock Treasures'; - if (step === 'download') return 'This key is your passport to adventure - keep it safe!'; - if (step === 'profile') return 'Tell other adventurers about yourself'; - return 'Your adventure begins now!'; + 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!'; }; // Reset state when dialog opens @@ -329,48 +329,48 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete {step === 'welcome' && (
{/* Hero illustration */} -
+
- +
- +
- - + +
- {/* Adventure benefits */} + {/* Benefits */}
-
+
- Embark on legendary quests worldwide + Decentralized and censorship-resistant
-
- - Hide your own geocaches +
+ + You are in control of your data
-
- - Unite with fellow adventurers +
+ + Join a global network

- Join adventurers exploring the world through geocaching. - Your quest begins with forging your very own treasure key. + Join the Nostr network and take control of your social media experience. + Your journey begins by generating a secret key.

@@ -383,7 +383,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete {/* Generate Step - Enhanced with animations */} {step === 'generate' && (

-
+
{/* Animated background elements */} {showSparkles && (
@@ -413,10 +413,10 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete

- Forging your magical key... + Generating your secret key...

- Weaving cryptographic spells + Creating your secure key

@@ -425,13 +425,13 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete

- Ready to forge your treasure key? + Ready to generate your secret key?

- This magical key will be your passport to the world of Treasures. + 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! + It's completely unique and secure:

keep it secret, keep it safe!

@@ -441,12 +441,12 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete {!isLoading && ( )}
@@ -455,22 +455,22 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete {/* Download Step - Whimsical and magical */} {step === 'download' && (
- {/* Magical treasure chest reveal */} -
- {/* Magical sparkles floating around */} + {/* Key reveal */} +
+ {/* Sparkles */}
- + - +
-
- +
+
-
+
@@ -478,40 +478,40 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete

- Behold! Your magical treasure key! + Your secret key has been generated!

- {/* Whimsical warning with scroll design */} + {/* Warning */}
-
+
- - - Ancient Warning + + + Important Warning
-

-"Guard this key with your life, for once lost to the digital winds, it shall never return..." +

+ This key is your primary and only means of accessing your account. Store it safely and securely.

- {/* Enchanted key vault */} -
+ {/* Key vault */} +
- - - Your Treasure Key + + + Your Secret Key
-
- {nsec} +
+ {nsec}
- {/* Security options - clearly presented as choices */} + {/* Security options */}

@@ -523,7 +523,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete {/* Copy Option */} @@ -535,11 +535,11 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete

{keySecured === 'copied' ? ( - + ) : ( )} @@ -553,7 +553,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete
{keySecured === 'copied' && ( -
+
✓ Copied
)} @@ -565,7 +565,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete {/* Download Option */} @@ -577,11 +577,11 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete
{keySecured === 'downloaded' ? ( - + ) : ( )} @@ -591,11 +591,11 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete Download as File
- Save as treasure-key.txt file + Save as secret-key.txt file
{keySecured === 'downloaded' && ( -
+
✓ Downloaded
)} @@ -605,17 +605,17 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete
- {/* Continue button - blocked until key is secured */} + {/* Continue button */} @@ -781,7 +781,7 @@ const SignupDialog: React.FC = ({ isOpen, onClose, onComplete Setting up account... ) : ( - 'Skip for now - Begin Quest!' + 'Skip for now' )}