-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (95 loc) · 2.7 KB
/
index.html
File metadata and controls
107 lines (95 loc) · 2.7 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<style>
body {
font-family: Arial, sans-serif;
background-image: url('Anonymous Wallpaper HD for Iphone.jpeg');
background-repeat: no-repeat;
background-size: cover;
backdrop-filter: blur(2px);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.login-container {
text-align: center;
display: flex;
width: 330px;
background-color: rgba(0, 0, 0, 0.0);
border: 1px solid transparent;
border-radius: 5px;
}
h2 {
color: grey;
font-family: 'Times New Roman', Times, serif;
margin-left: 5px;
height: 30px;
}
h3 {
font-size: 9.2px;
color: white;
margin-left: -90px;
margin-top: 0px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
input[type="text"],
input[type="password"],
button {
margin: 10px;
padding: 7px;
background-color: rgba(0, 0, 0, 0.2);
border: 1px solid #616161;
border-radius: 5px;
backdrop-filter: blur(10px);
color: #BEBEBE;
}
button {
background-color: #616161;
color: black;
border: 1px solid black;
padding: 10px 20px 10px 20px;
cursor: pointer;
border-radius: 5px;
}
button:hover {
background-color: rgba(0, 0, 0, 0.1);
color: white;
border: 1px solid #616161;
}
</style>
</head>
<body>
<div class="login-container">
<h2>Login</h2>
<form id="loginForm">
<input type="text" id="username" placeholder="Username" required>
<input type="password" id="password" placeholder="Password" required>
<button type="submit">Login</button>
<h3 style="color: white; cursor: auto; text-decoration: none;"><a href="https://t.me/niyyaz" style="color: skyblue;">Trouble logging in? Contact</a>/ before make sure entered pass is correct!</h3>
</form>
</div>
<script>
document.getElementById('loginForm').addEventListener('submit', function(event) {
event.preventDefault();
var username = document.getElementById('username').value;
var password = document.getElementById('password').value;
// Example validation (replace with your own)
if (username === 'admin' && password === 'password') {
// Redirect to another page
window.location.href = 'mainp.html';
alert('Successfully logged in!');
} else {
alert('Invalid username or password');
}
});
</script>
</body>
</html>