From 8a5427402f06dde1768be86be189acd54b0d4d4a Mon Sep 17 00:00:00 2001 From: Sidney Gomes Date: Thu, 23 Jul 2026 10:58:38 -0300 Subject: [PATCH] feat: add password show/hide eye toggle and remove admin quick login option from portal login --- src/App.tsx | 51 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 20 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 8d3bc16..4f94887 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,7 @@ import React, { useState, useEffect } from 'react'; import { Play, Shield, User, GraduationCap, ArrowRight, Lock, Mail, - Plus, CheckCircle, ChevronRight, HelpCircle, Film, Laptop + Plus, CheckCircle, ChevronRight, HelpCircle, Film, Laptop, Eye, EyeOff } from 'lucide-react'; import Navbar from './components/Navbar'; import HeroBanner from './components/HeroBanner'; @@ -32,6 +32,8 @@ export default function App() { const [isRegister, setIsRegister] = useState(false); const [loginEmail, setLoginEmail] = useState(''); const [loginPassword, setLoginPassword] = useState(''); + const [showPassword, setShowPassword] = useState(false); + const [showRegPassword, setShowRegPassword] = useState(false); const [regName, setRegName] = useState(''); const [regEmail, setRegEmail] = useState(''); const [regPassword, setRegPassword] = useState(''); @@ -394,14 +396,23 @@ export default function App() {
- setRegPassword(e.target.value)} - placeholder="Mínimo 6 caracteres" - className="w-full glass-input rounded-lg p-3 text-xs text-white focus:outline-none" - /> +
+ setRegPassword(e.target.value)} + placeholder="Mínimo 6 caracteres" + className="w-full glass-input rounded-lg p-3 pr-10 text-xs text-white focus:outline-none" + /> + +
@@ -480,21 +498,14 @@ export default function App() { {/* QUICK PRESETS FOR SANDBOX DEMO */}

Acesso de Teste Rápido (Iframe Sandbox)

-
+
-