Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added btn to return home page (as to close login-page) #531

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions log in/Login.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ <h2><a href="#">Sign In</a></h2>
<!--nav bar ends here-->

<section class="login">
<div class="login-close-btn"> <img src="image/close-img.png" alt=""> </div>
<div class="container">
<div class="forms-container">
<div class="signin-signup">
<form id="login_form" class="sign-in-form alignment">

<h2 class="title user_logged_in">Sign in</h2>
<h2 class="title" id="logged_user"></h2>
<div class="input-field user_logged_in" style="margin-right: 70px">
Expand Down
Binary file added log in/image/close-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion log in/login.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


/* Google Font Link */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
Expand All @@ -8,7 +10,19 @@
}
html {
scroll-behavior: smooth;
}
}
/*loginpage close btn styled*/
.login-close-btn img{
z-index: 22;
position: absolute;
right:0;
width: 24px;
cursor: pointer;
border-radius: 50%;
}



.sidebar {
position: fixed;
left: 0;
Expand Down
7 changes: 7 additions & 0 deletions log in/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ const LoginForm = document.querySelector("#login_form");
const email = document.querySelector("#email");
const password = document.querySelector("#password");
const eye = document.getElementById("eye");
const closeBtnLogin=document.querySelector(".login-close-btn")
//added btn to close login-page
closeBtnLogin.addEventListener("click",()=>{
window.location.href="../index.html"
})



var eyeView = false;
eye.addEventListener("click", (e) => {
Expand Down