diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 7e420b7..d8ef545 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -71,7 +71,6 @@ export default function App() { try { const results = await api.searchRAG(query, user.user_id) console.log('Search results:', results) - // You could display these results in a modal or separate view } catch (err) { console.error('Search error:', err) } @@ -81,7 +80,7 @@ export default function App() { const handleNavigateToSearch = (query) => { setActiveTab('search') setHeaderSearchQuery(query) - setViewingPostId(null) // Clear any post detail view + setViewingPostId(null) } const handleViewPost = (postId) => { @@ -98,7 +97,6 @@ export default function App() { } const handlePostCreated = () => { - // Switch to feed after creating a post setActiveTab('feed') setViewingPostId(null) } @@ -112,7 +110,6 @@ export default function App() { const renderPage = () => { if (!user) return null - // If viewing a specific post, show PostDetail if (viewingPostId) { return } @@ -131,76 +128,149 @@ export default function App() { } } - // Login/Register Screen + // Minimal Elegant Login/Register Screen if (showLogin) { return ( -
-
-
-
- - - +
+ {/* Left Side - Minimal Landing */} +
+
+ {/* Logo */} +
+ VoiceVault { + e.target.style.display = 'none' + e.target.nextElementSibling.style.display = 'block' + }} + /> +
+ VoiceVault +
+
+ + {/* Headline */} +

+ Archive your +
+ audio memories +

+ +

+ Preserve, transcribe, and search through your voice recordings + with intelligent AI-powered archiving. +

+ + {/* Simple Features List */} +
+
+
+ Automatic transcription +
+
+
+ Intelligent search +
+
+
+ Secure storage +
-

VoiceVault

-

Archive your audio memories

+
- {loginError && ( -
- {loginError} -
- )} - -
-
- - setLoginEmail(e.target.value)} - placeholder="your@email.com" - className="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#f4b840] focus:border-transparent" - required + {/* Right Side - Minimal Form */} +
+
+ {/* Mobile Logo */} +
+ VoiceVault { + e.target.style.display = 'none' + e.target.nextElementSibling.style.display = 'block' + }} /> +
+ VoiceVault +
-
- - setLoginPassword(e.target.value)} - placeholder="••••••••" - className="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#f4b840] focus:border-transparent" - required - /> + {/* Form Header */} +
+

+ {isRegistering ? 'Create account' : 'Welcome back'} +

+

+ {isRegistering + ? 'Start archiving your audio' + : 'Sign in to continue'} +

- - + {/* Error Message */} + {loginError && ( +
+ {loginError} +
+ )} -
- + {/* Form */} +
+
+ + setLoginEmail(e.target.value)} + placeholder="you@example.com" + className="w-full px-4 py-3 border border-gray-300 rounded focus:outline-none focus:border-gray-900 transition-colors font-light" + required + /> +
+ +
+ + setLoginPassword(e.target.value)} + placeholder="••••••••" + className="w-full px-4 py-3 border border-gray-300 rounded focus:outline-none focus:border-gray-900 transition-colors font-light" + required + /> +
+ + +
+ + {/* Toggle */} +
+ +
@@ -209,7 +279,7 @@ export default function App() { // Main App return ( -
+