-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
signup.html
216 lines (191 loc) · 6.76 KB
/
signup.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chaos Web - Sign Up</title>
<style>
img{
width: 170px;
height: 170px;
/* border: white 5px solid; */
position: absolute;
top: 10px;
left: 50px;
border-radius: 50%;
box-shadow: 0 1px 10px #87ceeb, 0 1px 20px #87ceeb;
}
body {
/* position: relative; */
background: url('3d-effect-hypnosis-spiral-vector-7844424.jpg') center center fixed, #000;
background-size: cover;
animation: moveBackground 15s infinite linear;
color: #fff;
font-family: 'Comic Sans MS', cursive, sans-serif;
text-align: center;
font-size: 22px;
z-index: 1;
}
@keyframes moveBackground {
0% { background-position: 0 0; }
50% { background-position: 100% 100%; }
100% { background-position: 0 0; }
}
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6); /* Dark overlay */
z-index: -1;
}
h1 {
font-size: 48px;
font-weight: bold;
margin-bottom: 20px;
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}
.container {
margin-top: 100px;
position: relative;
}
.form-group {
margin-bottom: 30px;
position: relative;
display: inline-block;
margin-top: 50px;
}
label {
font-size: 28px;
display: block;
margin-bottom: 10px;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}
input {
padding: 15px;
border: 3px solid #fff;
background: #333;
color: #fff;
width: 300px;
display: block;
font-size: 20px;
}
button {
padding: 15px 30px;
background: linear-gradient(135deg, #555, #888);
color: #fff;
border: 2px solid #aaa;
cursor: pointer;
font-size: 22px;
border-radius: 10px;
position: absolute;
}
button:hover {
background: linear-gradient(135deg, #777, #999);
transform: rotate(10deg) scale(1.1);
transition: background 0.3s ease, transform 0.3s ease;
}
#errorMessage {
color: red;
display: none;
font-size: 26px;
}
/* Style for the logo */
.logo {
position: fixed;
top: 10px;
left: 10px;
z-index: 10;
width: 100px; /* Adjust the size of the logo */
height: auto;
}
/* Blank screen effect */
.blank-screen {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 9999;
}
</style>
</head>
<body>
<!-- Add the logo here -->
<img src="https://chaosweb.vercel.app/assets/logo-DJRpIUaM.png" type="image/x-icon">
<div class="container">
<h1>Create Your Account</h1>
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" required>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" required>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" required>
</div>
<div class="form-group">
<label for="confirmPassword">Confirm Password</label>
<input type="password" id="confirmPassword" required>
</div>
<button id="signupButton">Sign Up</button>
<button id="backButton">Back to Sign In</button>
</div>
<!-- Blank screen div -->
<div class="blank-screen"></div>
<script>
// Function to smoothly move buttons
function moveButtons() {
const buttons = document.querySelectorAll('button'); // Select all buttons
buttons.forEach(button => {
// Get the dimensions of the window (screen)
const windowWidth = window.innerWidth;
const windowHeight = window.innerHeight;
// Generate random target positions within the screen
const randomX = Math.random() * (windowWidth - button.offsetWidth);
const randomY = Math.random() * (windowHeight - button.offsetHeight);
// Set the button's position to the random coordinates with smooth transition
button.style.transition = 'left 1s, top 1s'; // Smooth movement with 1s duration
button.style.position = 'absolute'; // Ensure the button is positioned absolutely
button.style.left = `${randomX}px`;
button.style.top = `${randomY}px`;
});
// Call the function again after a delay
setTimeout(moveButtons, 1500); // Adjust the timeout for how often the buttons move
}
// Start moving the buttons
moveButtons();
// Function to generate random color
function getRandomColor() {
const letters = '0123456789ABCDEF';
let color = '#';
for (let i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}
// Function to trigger blank screen with blinking colors
function triggerBlankScreen() {
const blankScreen = document.querySelector('.blank-screen');
blankScreen.style.display = 'block'; // Show the blank screen
const interval = setInterval(() => {
// Set a random background color on each interval
blankScreen.style.backgroundColor = getRandomColor();
}, 200); // Change color every 200ms for a rapid blinking effect
// Turn off the blank screen after 3 seconds of blinking
setTimeout(() => {
blankScreen.style.display = 'none'; // Hide the blank screen
clearInterval(interval); // Stop the blinking
}, 3000); // Blink for 3 seconds
}
// Set up the interval to trigger the blank screen every 15 seconds
setInterval(triggerBlankScreen, 15000);
</script>
</body>
</html>