From 166fa1c8fa2b3def743090151a927f6839dcde52 Mon Sep 17 00:00:00 2001 From: Coassolo-Lucas Date: Sat, 4 Apr 2026 22:58:48 -0300 Subject: [PATCH] =?UTF-8?q?Agregue=20boton=20de=20Ojo=20para=20ver=20contr?= =?UTF-8?q?ase=C3=B1a=20en=20el=20login,=20usando=20JQuery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/app.js | 9 +++ resources/views/login.blade.php | 107 ++++++++++++++++++++++---------- 2 files changed, 84 insertions(+), 32 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index 814fd37..a486220 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -120,3 +120,12 @@ document.addEventListener('DOMContentLoaded', function () { }) +// Ver contraseña, con JQuery +$(document).on('click', '#togglePassword', function () { + const input = $('#passwordInput'); + const isPassword = input.attr('type') === 'password'; + + input.attr('type', isPassword ? 'text' : 'password'); + $('#iconShow').toggleClass('hidden', isPassword); + $('#iconHide').toggleClass('hidden', !isPassword); +}); \ No newline at end of file diff --git a/resources/views/login.blade.php b/resources/views/login.blade.php index 9e0bc6b..e6a7bf3 100644 --- a/resources/views/login.blade.php +++ b/resources/views/login.blade.php @@ -2,43 +2,86 @@
-
-
- @csrf - {{-- Bloque de errores --}} - @if ($errors->any()) -
-

- {{ $errors->first() }} -

-
- @endif + subtitle="Inicio de sesion" + title="Bicicletería " + highlight="Lauck" + /> -
- Correo electrónico - +
+ + + @csrf + + {{-- Bloque de errores --}} + @if ($errors->any()) +
+

+ {{ $errors->first() }} +

+ @endif -
- Contraseña - +
+ + Correo electrónico + + +
+ +
+ + Contraseña + +
+ +
+
-
- -
+
+ +
-

- ¿No tienes una cuenta? Regístrate acá. -

- -
+

+ ¿No tienes una cuenta? + + Regístrate acá + +

+ +
+
+ \ No newline at end of file