import React, { useState } from 'react'; import { motion, AnimatePresence } from 'motion/react'; import { Mail, Lock, User, ArrowRight, Github, Globe, Sparkles } from 'lucide-react'; interface AuthPageProps { onAuthComplete: () => void; onBack: () => void; initialMode?: 'login' | 'register'; } export const AuthPage: React.FC = ({ onAuthComplete, onBack, initialMode = 'login' }) => { const [mode, setMode] = useState<'login' | 'register'>(initialMode); const [isLoading, setIsLoading] = useState(false); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); setIsLoading(true); // Simulate auth setTimeout(() => { setIsLoading(false); onAuthComplete(); }, 1500); }; return (
{/* Background Orbs */}
{/* Header */}
M
Momento
{/* Spacer */}
{/* Main Content */}

{mode === 'login' ? 'Bon retour parmi nous' : 'Créer votre espace'}

{mode === 'login' ? 'Entrez vos identifiants pour accéder à vos notes.' : 'Rejoignez la nouvelle ère de la prise de notes intelligente.'}

{mode === 'register' && (
)}
{mode === 'login' && ( )}
Ou continuer avec

{mode === 'login' ? "Vous n'avez pas de compte ?" : "Vous avez déjà un compte ?"} {' '}

© 2024 Momento Labs — Privacy • Terms

); };