diff --git a/src/app/admin/login/page.jsx b/src/app/admin/login/page.jsx new file mode 100644 index 0000000..f21030d --- /dev/null +++ b/src/app/admin/login/page.jsx @@ -0,0 +1,79 @@ +"use client"; +import { useState } from 'react'; +import { useRouter } from 'next/navigation'; + +export default function LoginPage() { + const [email, setEmail] = useState(''); + const [password, setPassword] = useState(''); + const router = useRouter(); + + const handleSubmit = async (e) => { + e.preventDefault(); + // Aqui virá a autenticação + if (email === 'admin@friascar.com' && password === 'admin123') { + // Salvar token ou session + router.push('/admin'); + } + }; + + return ( +
+
+
+
+

+ Admin Login +

+
+ +
+
+ +
+ setEmail(e.target.value)} + className="block w-full rounded-md border-0 p-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300" + /> +
+
+ +
+ +
+ setPassword(e.target.value)} + className="block w-full rounded-md border-0 p-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300" + /> +
+
+ +
+ +
+
+
+
+
+ ); +} \ No newline at end of file