-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (118 loc) · 3.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VEETY</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: space-between;
align-items: center;
height: 100vh;
background-color: #1e1e2f;
color: #dcdcdc;
font-family: Consolas, "Courier New", monospace;
}
/* Lewa część: Tekst główny */
.main-content {
flex: 1;
max-width: 55%;
padding: 40px;
}
.main-content h1 {
font-size: 48px;
color: royalblue;
margin-bottom: 20px;
}
.main-content h2 {
font-size: 16px;
color: #aaa;
font-weight: normal;
line-height: 1.6;
margin-bottom: 10px;
}
.main-content p {
font-size: 14px;
color: #ccc;
line-height: 1.6;
}
/* Panel logowania */
.login-panel {
flex: 1;
max-width: 25%;
margin: auto;
padding: 20px;
background-color: #2b2b3d;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
text-align: center;
}
.login-panel h2 {
margin-bottom: 20px;
font-size: 18px;
color: royalblue;
}
.login-panel input {
width: 90%;
padding: 8px;
margin-bottom: 15px;
background-color: #1e1e2f;
border: 1px solid royalblue;
border-radius: 4px;
color: #dcdcdc;
font-size: 14px;
}
.login-panel button {
width: 90%;
padding: 8px;
background-color: royalblue;
border: none;
border-radius: 4px;
color: #fff;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.login-panel button:hover {
background-color: royalblue;
}
</style>
</head>
<body>
<div class="main-content">
<h1>BRAND NAME</h1>
<h2>
Addional text abt ur brand
</h2>
<p><strong>by:</strong> eddit</p>
</div>
<div class="login-panel">
<h2>Admin Panel</h2>
<form id="login-form">
<input type="password" id="password" placeholder="Enter password" required>
<button type="submit">Login</button>
</form>
<p id="error-message" style="color: royalblue; display: none;">Incorrect password. Try again.</p>
</div>
<script>
async function loadEncryptedPassword() {
const response = await fetch('pass.enc');
const encryptedPassword = await response.text();
return atob(encryptedPassword.trim());
}
document.getElementById("login-form").addEventListener("submit", async function(event) {
event.preventDefault();
const inputPassword = document.getElementById("password").value;
const correctPassword = await loadEncryptedPassword();
if (inputPassword === correctPassword) {
window.location.href = "dashboard.html";
} else {
document.getElementById("error-message").style.display = "block";
}
});
</script>
</body>
</html>