diff --git a/Front-end-Projects/Basic/Login-Signup-Form/index.html b/Front-end-Projects/Basic/Login-Signup-Form/index.html index e04d1e8c..02515f2e 100644 --- a/Front-end-Projects/Basic/Login-Signup-Form/index.html +++ b/Front-end-Projects/Basic/Login-Signup-Form/index.html @@ -4,6 +4,7 @@ Login and Sign Up Form + @@ -20,14 +21,20 @@
-

Login

+

Login

- +
+ + +
- +
+ + +
@@ -38,24 +45,34 @@

Login

-

Sign Up

+

Sign Up

- +
+ + +
- +
+ + +
- +
+ + +
+ diff --git a/Front-end-Projects/Basic/Login-Signup-Form/script.js b/Front-end-Projects/Basic/Login-Signup-Form/script.js new file mode 100644 index 00000000..8945e160 --- /dev/null +++ b/Front-end-Projects/Basic/Login-Signup-Form/script.js @@ -0,0 +1,32 @@ +let btn = document.querySelector(".pass"); +let btn1 = document.querySelector(".Spass"); +let loginPass = document.querySelector("#login-password"); +let signupPass = document.querySelector("#signup-password"); + +//for login password toggle +btn.onclick = () => { + if(loginPass.type === 'text'){ + loginPass.type = 'password' + btn.classList.remove('fa-lock-open'); + btn.classList.add('fa-lock'); + } + else{ + loginPass.type = 'text' + btn.classList.remove('fa-lock'); + btn.classList.add('fa-lock-open'); + } +} + +//for singup password toggle +btn1.onclick = () => { + if(signupPass.type === 'text'){ + signupPass.type = 'password' + btn1.classList.remove('fa-lock-open'); + btn1.classList.add('fa-lock'); + } + else{ + signupPass.type = 'text' + btn1.classList.remove('fa-lock'); + btn1.classList.add('fa-lock-open'); + } +} diff --git a/Front-end-Projects/Basic/Login-Signup-Form/styles.css b/Front-end-Projects/Basic/Login-Signup-Form/styles.css index b02becdd..08d5360e 100644 --- a/Front-end-Projects/Basic/Login-Signup-Form/styles.css +++ b/Front-end-Projects/Basic/Login-Signup-Form/styles.css @@ -68,6 +68,16 @@ input[type="radio"] { background-color: rgba(255, 255, 255, 0.37); } +.icon1,.icon2,.icon{ + display: flex; + justify-content: end; +} + +.user,.pass,.email,.Spass{ + margin-top:23px; + margin-left: 10px; +} + .form-container { position: relative; }