top of page
bottom of page
import React, { useState } from 'react'; import { motion } from 'framer-motion'; import { useNavigate } from 'react-router-dom'; import { Lock, Mail, ArrowRight } from 'lucide-react'; export default function Login() { const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const navigate = useNavigate(); const handleLogin = (e: React.FormEvent) => { e.preventDefault(); // Simulate login if (email && password) { navigate('/admin'); } }; return (