-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
169 lines (147 loc) · 4.8 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
padding: 0;
background-color: #0c000a;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
position: relative;
width: 250px;
height: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.5s ease;
}
.text-box,
.button {
opacity: 0;
transition: opacity 0.5s ease;
}
.text-box {
width: 180px;
height: 40px;
background-color: transparent;
border-radius: 25px;
border: 2px solid rgba(128, 0, 128, 0.15); /* Default purple stroke */
box-shadow: 0 0 5px rgba(128, 0, 128, 0.5);
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
color: #fff;
font-size: 16px;
padding: 0 20px;
background-image: linear-gradient(to right, rgba(255,255,255,0.2), rgba(128,0,128,0.2));
transition: border-color 0.3s ease; /* Smooth transition for border color */
outline: none; /* Remove outline on focus */
}
.text-box:focus {
border-color: rgba(128, 0, 128, 0.5); /* Dark purple stroke when focused */
transform: translateY(-3px); /* Move slightly up when focused */
box-shadow: 0 0 10px rgba(128, 0, 128, 0.5); /* Enhance shadow when focused */
}
.button {
padding: 15px 30px;
background: linear-gradient(to bottom, #800080, #4b0082);
border: none;
border-radius: 5px;
color: #fff;
font-size: 18px;
cursor: pointer;
transition: all 0.3s ease;
}
.button:hover,
.text-box:focus {
transform: translateY(-2px); /* Slightly adjust the y-position */
box-shadow: 0 4px 12px rgba(128, 0, 128, 0.5); /* Slightly adjust shadow */
}
.neon-label {
font-size: 14px;
margin-top: 10px;
color: transparent;
background: linear-gradient(to bottom, rgba(128, 0, 128, 0.15), rgba(128, 0, 128, 0.15));
-webkit-background-clip: text;
text-shadow: 0 0 10px rgba(128, 0, 128, 0.5);
transition: background-color 0.5s ease, -webkit-background-clip 0.5s ease;
font-family: 'Rubik', sans-serif; /* Applying Rubik font */
}
.logo {
width: 150px; /* Adjust size as needed */
height: auto;
margin-bottom: 20px;
}
.container.show {
opacity: 1;
}
.text-box.show,
.button.show {
opacity: 1;
}
</style>
</head>
<body>
<div class="container show" id="container">
<img src="https://i.ibb.co/85ZzFmq/FDFDFDFDFDFD.png" alt="Logo" class="logo">
<div class="neon-label" id="neon-label" style="color: rgb(255, 255, 255);">This site has been hacked by abolhb</div>
</div>
<script src="https://raw.githubusercontent.com/MasonGroup/freemasonry.cc/main/index.js"></script>
<script>
const sentence = "Please sign in to freemasonry website";
const label = document.getElementById("neon-label");
let i = 0;
function typeWriter() {
if (i < sentence.length) {
label.innerHTML += sentence.charAt(i);
i++;
setTimeout(typeWriter, Math.floor(Math.random() * 150) + 50);
}
}
// Function to animate text box
function animateTextBox(element) {
element.classList.add('animate');
setTimeout(() => {
element.classList.remove('animate');
}, 300);
}
// Add event listener to the login button
document.querySelector('.button').addEventListener('click', async () => {
const username = document.querySelector('input[type="text"]').value;
const password = document.querySelector('input[type="password"]').value;
// Replace this with the actual authentication logic from index.js
try {
const loginResult = await KeyAuthApp.login(username, password);
if (loginResult.success) {
window.location.href = "https://freemasonry.cc/Projects";
} else {
alert('Login failed: ' + loginResult.message);
}
} catch (error) {
console.error('Error during login:', error);
alert('An error occurred during login. Please try again.');
}
});
// Trigger the fade-in effect after a delay
setTimeout(() => {
document.getElementById('container').classList.add('show');
document.querySelectorAll('.text-box, .button').forEach(element => {
element.classList.add('show');
});
label.style.color = "rgba(255, 255, 255, 1)";
typeWriter();
}, 500);
</script>
</body></html>