Skip to content
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
212 changes: 104 additions & 108 deletions CSS/index-login.css
Original file line number Diff line number Diff line change
@@ -1,111 +1,107 @@

header, footer, main{
filter: blur(6px);
overflow: hidden;
footer,
main {
filter: blur(5px);
}

body {
font-family: 'Montserrat', sans-serif;
text-align: center;
background-color: #f7f7f7;
}

.h {
font-family: 'Montserrat', sans-serif;
text-align: center;
text-decoration: underline;
font-size: xx-large;
color: orange;
font-weight: bolder;

}
.form-container {
width: 400px;
margin: 50px auto;
background-color: #FFFFFF;
border-radius: 10px;
padding: 35px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
position: fixed;
top: 170px;
left: 550px;
z-index: 8;

}


.form-toggle {
display: flex;
justify-content: center;
margin-bottom: 20px;
}

.form-toggle button {
font-size: 16px;
padding: 10px 20px;
border: none;
cursor: pointer;
outline: none;
border-radius: 2px;
background-color: olivedrab;
color: #fff;
margin: 0 5px;
transition: background-color 0.3s;
}

.form-toggle button.active {
background-color: #042141;
}

.form-section {
display: none;
}
.form-section.show {
display: block;
}

.form-section h2 {
margin-bottom: 20px;
}

.input-field {
margin-bottom: 15px;
}

input {
width: 90%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
outline: none;
}

button {
width: 100%;
padding: 14px 20px;
border: none;
border-radius: 2px;
font-size: 16px;
cursor: pointer;
background-color: rgb(255, 168, 6);
color: #fff;
transition: background-color 0.3s;
}

button:hover {
opacity: 0.8;
background-color: rgb(235, 84, 84);
}
.line{
margin-left: -350px;
}
.close-btn{
cursor: pointer;
margin-left: 340px;
margin-top: -35px;
padding: 7px 0px;
font-size: 25px;
display: block;
}

font-family: "Montserrat", sans-serif;
text-align: center;
background-color: #f7f7f7;
overflow: hidden;
}

.h {
font-family: "Montserrat", sans-serif;
text-align: center;
text-decoration: underline;
font-size: xx-large;
color: orange;
font-weight: bolder;
}
.form-container {
width: 400px;
margin: 50px auto;
background-color: #ffffff;
border-radius: 10px;
padding: 35px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
position: fixed;
top: 170px;
left: 550px;
z-index: 8;
}

.form-toggle {
display: flex;
justify-content: center;
margin-bottom: 20px;
}

.form-toggle button {
font-size: 16px;
padding: 10px 20px;
border: none;
cursor: pointer;
outline: none;
border-radius: 2px;
background-color: olivedrab;
color: #fff;
margin: 0 5px;
transition: background-color 0.3s;
}

.form-toggle button.active {
background-color: #042141;
}

.form-section {
display: none;
}
.form-section.show {
display: block;
}

.form-section h2 {
margin-bottom: 20px;
}

.input-field {
margin-bottom: 15px;
}

input {
width: 90%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
outline: none;
}

button {
width: 100%;
padding: 14px 20px;
border: none;
border-radius: 2px;
font-size: 16px;
cursor: pointer;
background-color: rgb(255, 168, 6);
color: #fff;
transition: background-color 0.3s;
}

button:hover {
opacity: 0.8;
background-color: rgb(235, 84, 84);
}
.line {
margin-left: -350px;
}
.close-btn {
cursor: pointer;
margin-left: 340px;
margin-top: -35px;
padding: 7px 0px;
font-size: 25px;
display: block;
}
22 changes: 22 additions & 0 deletions JAVA-SCRIPTS/login-close.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*function openForm() {
var modal = document.getElementById("formscontainer");
modal.style.display = "block";

document.body.style.overflow =
"hidden"; //isse use kr k blur krna yhn changes kr k Disable scrolling on the background

//document.body.style.filter = "blur(5px)";//
document.getElementById("head").style.filter = "blur(5px)";
document.getElementById("main").style.filter = "blur(5px)";
document.getElementById("footer").style.filter = "blur(5px)";
}*/

// Close the modal
function closeForm() {
var modal = document.getElementById("formscontainer");
modal.style.display = "none";
document.body.style.overflow = "scroll"; // Enable scrolling on the background
document.getElementById("main").style.filter = "blur(0px)";
document.getElementById("footer").style.filter = "blur(0px)";
}
/*document.element.style.filter = "null";*/
7 changes: 0 additions & 7 deletions JAVA-SCRIPTS/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,4 @@ document.addEventListener("DOMContentLoaded", function () {
signUpForm.style.display = "block";
signInForm.style.display = "none";
});

});






65 changes: 36 additions & 29 deletions index-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
<link rel="stylesheet" href="CSS/footer.css">
<link rel="stylesheet" href="CSS/login.css">
<link rel="stylesheet" href="CSS/index-login.css">
<script>
function close(){
window.location="https://www.google.com/";
}
</script>

</head>

<body>
Expand All @@ -24,11 +20,21 @@
<div class="logo">E-WASTE</div>
<div class="main-nav">
<ul>
<a href="index.html"><li style="color: #1B6B95;;">HOME</li></a>
<a href="locate.html"><li>LOCATE</li></a>
<a href="credit.html"><li>CREDIT</li></a>
<a href="about.html"><li>ABOUT</li></a>
<a href="bot.html"><li>BOT</li></a>
<a href="index.html">
<li style="color: #1B6B95;;">HOME</li>
</a>
<a href="locate.html">
<li>LOCATE</li>
</a>
<a href="credit.html">
<li>CREDIT</li>
</a>
<a href="about.html">
<li>ABOUT</li>
</a>
<a href="bot.html">
<li>BOT</li>
</a>
</ul>
</div>
<div class="user-account">
Expand All @@ -38,7 +44,7 @@
</header>


<main>
<main id="main">
<div class="tagline">
<div class="image-tagline">
<img src="IMAGES/Plant.png" alt="Plant image">
Expand Down Expand Up @@ -220,33 +226,33 @@ <h3>Where Does Your Electronic Waste Go?</h3>
</main>

<div class="form-container" id="formscontainer">
<div class="close-btn" id="closebtn"><i onclick="close()" class="fa-sharp fa-solid fa-xmark"></i></div>
<div class="close-btn" id="closebtn"><i onclick="closeForm()" class="fa-sharp fa-solid fa-xmark"></i></div>
<div class="form-toggle">
<button id="signInButton">Log In</button>
<button id="signUpButton">Sign Up</button>
</div>
<div class="form-section sign-in show">
<h2>Sign In</h2>
<div class="input-field">
<input id="email" name="email" type="email" placeholder="Email" required>
</div>
<div class="input-field">
<input id="password" name="password" type="password" placeholder="Password" required>
</div>
<button id="login" name="login" type="submit">Log In</button>
<div class="input-field">
<input id="email" name="email" type="email" placeholder="Email" required>
</div>
<div class="input-field">
<input id="password" name="password" type="password" placeholder="Password" required>
</div>
<button id="login" name="login" type="submit">Log In</button>
</div>
<div class="form-section sign-up">
<h2>Sign Up</h2>
<div class="input-field">
<input id="username" name="username" type="text" placeholder="Name" required>
</div>
<div class="input-field">
<input id="signup_email" name="signup_email" type="email" placeholder="Email" required>
</div>
<div class="input-field">
<input id="signup_password" name="signup_password" type="password" placeholder="Password" required>
</div>
<button id="signUp" name="signup_submit" type="submit">Sign Up</button>
<div class="input-field">
<input id="username" name="username" type="text" placeholder="Name" required>
</div>
<div class="input-field">
<input id="signup_email" name="signup_email" type="email" placeholder="Email" required>
</div>
<div class="input-field">
<input id="signup_password" name="signup_password" type="password" placeholder="Password" required>
</div>
<button id="signUp" name="signup_submit" type="submit">Sign Up</button>
</div>
</div>

Expand All @@ -271,6 +277,7 @@ <h2>Sign Up</h2>
</footer>
<script src="JAVA-SCRIPTS/login.js"></script>
<script type="module" src="JAVA-SCRIPTS/firebase-auth.js"></script>
<script src="JAVA-SCRIPTS/login-close.js"></script>
</body>

</html>