From f9e15c066befc7fcb4822f30f604354f2c93cac0 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 2 Sep 2025 20:44:36 +0000 Subject: [PATCH] Update background and add password visibility Updated the background of the authentication page to a modern design without the previous grid effect. Added a password visibility toggle (eye icon) to the password and confirm password fields in the registration form. --- src/components/auth/RegisterFormFields.tsx | 69 ++++++++++++++++------ src/pages/Auth.tsx | 16 ++--- 2 files changed, 56 insertions(+), 29 deletions(-) diff --git a/src/components/auth/RegisterFormFields.tsx b/src/components/auth/RegisterFormFields.tsx index f6ce716..fdb9d1f 100644 --- a/src/components/auth/RegisterFormFields.tsx +++ b/src/components/auth/RegisterFormFields.tsx @@ -1,6 +1,8 @@ +import { useState } from 'react'; import { Input } from "@/components/ui/input"; import { Label } from '@/components/ui/label'; +import { Eye, EyeOff } from 'lucide-react'; interface RegisterFormFieldsProps { nome: string; @@ -33,6 +35,9 @@ const RegisterFormFields = ({ setConfirmaSenha, isLoading }: RegisterFormFieldsProps) => { + const [showPassword, setShowPassword] = useState(false); + const [showConfirmPassword, setShowConfirmPassword] = useState(false); + return ( <>
@@ -82,27 +87,55 @@ const RegisterFormFields = ({
- setSenha(e.target.value)} - disabled={isLoading} - required - /> +
+ setSenha(e.target.value)} + disabled={isLoading} + required + className="pr-10" + /> + +
- setConfirmaSenha(e.target.value)} - disabled={isLoading} - required - /> +
+ setConfirmaSenha(e.target.value)} + disabled={isLoading} + required + className="pr-10" + /> + +
); diff --git a/src/pages/Auth.tsx b/src/pages/Auth.tsx index d30160b..5604194 100644 --- a/src/pages/Auth.tsx +++ b/src/pages/Auth.tsx @@ -3,7 +3,6 @@ import { useState, useEffect } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; -import { Boxes } from "@/components/ui/background-boxes"; import { Button } from "@/components/ui/button"; import { ArrowLeft } from "lucide-react"; import LoginForm from '@/components/auth/LoginForm'; @@ -49,12 +48,10 @@ const Auth = () => { if (showForgotPassword) { return ( -
-
- +
- @@ -68,20 +65,17 @@ const Auth = () => { } return ( -
-
- - +
{/* Botão para voltar à landing page */} - - +