-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
136 lines (124 loc) · 3.4 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Website</title>
<link rel="stylesheet" href="css/login.css">
<link rel="stylesheet" href="../ui/css/class.css">
<style>
header {
background-color: #111;
color: aliceblue;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 10rem;
}
.logos {
display: flex;
align-items: center;
margin-top: 10px;
}
.logo {
margin-left: 10px;
}
.logo1 {
height: 70px;
}
.logo2 {
height: 50px;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
overflow-y: auto;
background-color: #111;
}
.content {
padding-top: 10px;
flex: 1;
padding-bottom: 5rem;
}
.ring {
text-align: center;
padding-top: 50px;
}
html, body {
height: 100%;
margin: 0;
}
#footer2 {
background: #111;
color: #E5E5CB;
text-align: center;
padding: 20px 0;
width: 100%;
margin-top: auto;
position: initial;
}
</style>
</head>
<body>
<header>
<div class="text-container">
<h1 style="margin: 0;">Re-Bin-D</h1>
<h2 style="color: #D5CEA3; margin: 0;">Batch 2022-26</h2>
</div>
<div class="logos">
<img src="./images/tifac_core_in_cyber_security.png" class="logo logo1" alt="Tifac_Logo">
<img src="./images/amrita_uncoloered.svg" class="logo logo2" alt="Amrita_logo">
</div>
</header>
<div class="content">
<div class="ring">
<i style="--clr:#00ff0a;"></i>
<i style="--clr:#ff0057;"></i>
<i style="--clr:#fffd44;"></i>
<div class="login">
<h2>Login</h2>
<form id="loginForm">
<div class="inputBx">
<input type="text" id="username" name="username" placeholder="Username" required>
</div>
<br>
<div class="inputBx">
<input type="password" id="password" name="password" placeholder="Password" required>
</div>
<br>
<div class="inputBx">
<input type="submit" value="Sign in">
</div>
</form>
<div class="links">
<a href="html/forgot_password.html">Forget Password</a>
<a href="html/signup.html">Signup</a>
</div>
</div>
</div>
</div>
<footer id="footer2">
<p>© 2022-2026 Re-bin-d</p>
</footer>
<script>
// Simple login check without server
document.getElementById('loginForm').addEventListener('submit', (e) => {
e.preventDefault();
const username = document.getElementById('username').value.trim();
const password = document.getElementById('password').value.trim();
const correctUsername = "Re-bin-d";
const correctPassword = "2022-2026";
// Check if entered credentials are correct
if (username === correctUsername && password === correctPassword) {
alert('Login successful');
window.location.href = 'html/class.html'; // Redirect to the next page
} else {
alert('Invalid credentials');
}
});
</script>
</body>
</html>