diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx deleted file mode 100644 index 7a1bd0a..0000000 --- a/src/app/login/page.tsx +++ /dev/null @@ -1,160 +0,0 @@ -"use client"; - -import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; -import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; -import { useState } from "react"; -import { Eye, EyeOff, Mail, Lock } from 'lucide-react'; -import Input from '@/components/form/Input'; - -export default function LoginPage() { - const [email, setEmail] = useState(""); - const [password, setPassword] = useState(""); - const [showPassword, setShowPassword] = useState(false); - const [errors, setErrors] = useState<{ email?: string; password?: string }>({}); - const [isSubmitted, setIsSubmitted] = useState(false); - - const validateForm = () => { - const newErrors: { email?: string; password?: string } = {}; - - if (!email) { - newErrors.email = "Email é obrigatório"; - } else if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) { - newErrors.email = "Email inválido"; - } - - if (!password) { - newErrors.password = "Senha é obrigatória"; - } else if (password.length < 6) { - newErrors.password = "Senha deve ter no mínimo 6 caracteres"; - } - - return newErrors; - }; - - const handleSubmit = (e: React.FormEvent) => { - e.preventDefault(); - const newErrors = validateForm(); - setErrors(newErrors); - - if (Object.keys(newErrors).length === 0) { - setIsSubmitted(true); - console.log("Login attempt:", { email, password }); - setTimeout(() => { - setIsSubmitted(false); - }, 2000); - } - }; - - return ( - - - -
-
-
-
-

Bem-vindo de Volta

-

Faça login para acessar seu progresso

-
- -
-
- - - {errors.email && ( -

{errors.email}

- )} -
- -
- -
- - -
- {errors.password && ( -

{errors.password}

- )} -
- - -
- -
-

- Não tem conta?{" "} - - Criar conta - -

-
- -
-

Teste gratuito por 30 dias. Sem cartão de crédito necessário.

-
-
-
-
-
- ); -}