From 4c62ae9ba04c8cc27a349214ef4bd3a2d1e038bf Mon Sep 17 00:00:00 2001 From: NataliaCancinoV Date: Fri, 26 Apr 2024 13:49:27 -0600 Subject: [PATCH] Commit con agregrar contrasena --- frontend/src/LoginForm.css | 23 ++++++++++++++++++- frontend/src/LoginForm.jsx | 45 +++++++++++++++++++++++++++++++++++--- 2 files changed, 64 insertions(+), 4 deletions(-) diff --git a/frontend/src/LoginForm.css b/frontend/src/LoginForm.css index 378bb74..3272372 100644 --- a/frontend/src/LoginForm.css +++ b/frontend/src/LoginForm.css @@ -18,7 +18,8 @@ body{ display: flex; justify-content: center; align-items: center; - min-height: 110vh; + min-height: 80vh; + border-radius: 4%; background: rgba(39, 39, 39, 0.5); } @@ -68,6 +69,15 @@ body{ transition: .5s ease-in-out; gap: 7px; } +.password-container{ + position: absolute; + right: -520px; + width: 500px; + display: flex; + flex-direction: column; + transition: .5s ease-in-out; + gap: 7px; +} .top span{ color: #fff; font-size: small; @@ -75,11 +85,21 @@ body{ display: flex; justify-content: center; } +.two span a{ + font-weight: 500; + color: #fff; + margin-left: 5px; +} .top span a{ font-weight: 500; color: #fff; margin-left: 5px; } +.top2 span a{ + font-weight: 500; + color: #fff; + margin-left: 5px; +} header{ color: #fff; font-size: 30px; @@ -138,6 +158,7 @@ header{ font-size: small; margin-top: 10px; margin-bottom: 10px; + margin-left: 10px; } .two-col .one{ display: flex; diff --git a/frontend/src/LoginForm.jsx b/frontend/src/LoginForm.jsx index 2a5e91f..dde21fe 100644 --- a/frontend/src/LoginForm.jsx +++ b/frontend/src/LoginForm.jsx @@ -3,13 +3,24 @@ import './LoginForm.css'; function LoginForm() { const [loginVisible, setLoginVisible] = useState(true); - + const [registerVisible, setRegisterVisible] = useState(false); + const [passwordVisible, setPasswordVisible] = useState(false); const toggleLogin = () => { setLoginVisible(true); + setRegisterVisible(false); + setPasswordVisible(false); }; const toggleRegister = () => { + setRegisterVisible(true); setLoginVisible(false); + setPasswordVisible(false); + }; + + const toggleRecuperar = () => { + setPasswordVisible(true); + setLoginVisible(false); + setRegisterVisible(false); }; return ( @@ -40,12 +51,12 @@ function LoginForm() {
- + Olvidaste la contraseña?
-
+
Ya tienes cuenta? Inicia Sesión
Registrarse
@@ -78,6 +89,34 @@ function LoginForm() {
+ +
+
+ Ya tienes cuenta? Inicia Sesión +
Recuperar Contraseña
+
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+ +
+