-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
100 lines (92 loc) · 4.41 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<title>Webpage Design</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="loading-overlay">
<img src="reuse.gif" alt="Loading..." />
</div>
<div class="main">
<div class="navbar">
<div class="icon">
<h2 class="logo"> <span style="color: green;">e-</span>
<span style="color: white;">स्वच्छता</span>
</h2>
</div>
<div class="menu">
<ul>
<li><a href="about.html">ABOUT</a></li>
<li><a href="service.html">SERVICE</a></li>
<li><a href="design.html">DESIGN</a></li>
<li><a href="contact.html">CONTACT</a></li>
</ul>
</div>
<form action="https://www.google.com/search" target="_blank">
<div class="search">
<input class="srch" type="search" name="q" placeholder="Type here">
<button class="btn">Search</button>
</div>
</form>
</div>
<div class="content">
<h1>GreenTech <br><span> Drop-off</span> </h1>
<br/>
<p class="par">Mankind's greatest environmental challenge is now being systematically tackled through timely and <br/> robust interventions that promise a safe future. Technology is a double-edged sword and what we are <br/> now seeing is its dark side in the form of global warming and air, water and soil pollution.</p>
<div class="form">
<h2 style="background-color: #19211eab;" >Login Here</h2>
<form action="index1.html" method="post"></form>
<input type="email" name="email" id="email" placeholder="Enter Email Here" required>
<input type="password" name="" id="password" placeholder="Enter Password Here" required>
<button class="btnn" type="button" onclick="login()" >Login</button>
<p class="link">Don't have an account<br>
<a href="registration.html">Sign up </a> here</a></p>
<p class="liw">Log in with</p>
<div class="icons">
<a href="#"><ion-icon name="logo-facebook"></ion-icon></a>
<a href="#"><ion-icon name="logo-instagram"></ion-icon></a>
<a href="#"><ion-icon name="logo-twitter"></ion-icon></a>
<a href="#"><ion-icon name="logo-google"></ion-icon></a>
<a href="#"><ion-icon name="logo-skype"></ion-icon></a>
</div>
</div>
</div>
</div>
</div>
</div>
<footer >
© e-स्वच्छता
</footer>
<script src="https://unpkg.com/ionicons@5.4.0/dist/ionicons.js"></script>
<script>
// Array of user objects with email and password
const usersData = [
{ email: "princeyadav31000@gmail.com", password: "password" },
{ email: "rithikex1@gmail.com", password: "password" },
{ email: "lakshaynandwani06@gmail.com", password: "password" },
{ email: "lakshay.22cse@bmu.edu.in", password: "password" },
{ email: "my123@gmail.com", password: "password" },
// Add more user objects as needed
];
function login() {
// Get user input
const email = document.getElementById("email").value;
const password = document.getElementById("password").value;
// Check if there's a user with the provided email and password
const matchingUser = usersData.find(user => user.email === email && user.password === password);
if (matchingUser) {
// Redirect to index1.html on successful login
window.location.href = "index1.html";
} else {
// Show an alert for failed login
alert('Login failed. Please check your credentials.');
}
}
window.addEventListener("load", function () {
const loadingOverlay = document.getElementById("loading-overlay");
loadingOverlay.style.display = "none"; // Hide the loading overlay when the page is fully loaded
});
</script>
</body>
</html>