-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBootAnimation.php
More file actions
233 lines (210 loc) · 6.85 KB
/
BootAnimation.php
File metadata and controls
233 lines (210 loc) · 6.85 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
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<?php
session_start();
if(!isset($_SESSION['UName'])){
header('Location: Login/Login.html');
exit();
}
if(!isset($_SESSION['DoneBoot'])){
$_SESSION['DoneBoot'] = true;
}
// else{
// header('Location: index.php');
// exit();
// }
$username = $_SESSION['UName'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loading User Data</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
background-color: #121212;
color: #ffffff;
overflow: hidden;
}
#DataContainer {
display: block;
width: 500px;
text-align: center;
}
span {
font-size: 72px;
font-weight: bold;
color: #ffffff;
text-transform: uppercase;
letter-spacing: 0.2rem;
position: relative;
display: inline-block;
margin-bottom: -12px;
}
span:nth-child(2) {
background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.2) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
filter: blur(2px); /* Adjust the blur value as needed */
transform: rotateX(57deg);
margin-top: -15px;
}
@keyframes pulse {
0%, 100% { background-color: #121212; }
50% { background-color: #1e1e1e; }
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #121212;
animation: pulse 8s infinite;
z-index: -1;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes FloatUp{
0%{
position: absolute;
top: 50%;
}
100%{
position: absolute;
top: 30px;
}
}
@keyframes FloatDown{
0%{
position: absolute;
top: 30px;
}
100%{
position: absolute;
top: calc(50% - 120px);
}
}
@keyframes FloatUpContainer{
0%{
top: calc(50% - 130px);
}
100%{
top: calc(50% - 150px);
}
}
@keyframes FloatDownContainer{
0%{
top: calc(50% - 150px);
}
100%{
top: calc(50% - 130px);
}
}
/* Spinner animáció betöltés előtt */
.spinner {
width: 50px;
height: 50px;
border: 6px solid #555555;
border-top: 6px solid #ff0000;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
}
.Conatiner{
width: 55%;
margin-left: auto;
margin-right: auto;
height: 400px;
align-items: center;
display: inline-flex;
justify-content: space-around;
background-color: rgb(90, 90, 90);
border-radius: 20px;
}
</style>
</head>
<body>
<div id="DataContainer">
<span>MovieFlix</span>
<span>MovieFlix</span>
<div class="Conatiner" style="display: none;">
<div class="UserProfile" style="display: none;">
<img src="<?php echo $_SESSION['PFP']; ?>" alt="<?PHP echo $_SESSION['UName'] ?>" style="border-radius: 50%; width: 170px; height: 170px; margin-top: 20px">
<h3 style="margin-top: 135px">Welcome, <?PHP echo $_SESSION['UName']; ?>!</h3>
</div>
</div>
<div class="spinner"></div>
</div>
<script>
setTimeout(() => {
const l = document.querySelector('.spinner');
l.style.animation = 'spin 1s linear infinite, fadeOut 2s forwards'; // Add fadeOut animation
console.log(l);
}, 1500); // Add fadeOut animation after 2 seconds
setTimeout(() => {
const l = document.querySelector('#DataContainer');
l.style.animation = 'FloatUp 1s forwards, fadeIn 2s forwards'; // Add fadeIn animation
}, 3000);
setTimeout(() => {
const l1 = document.querySelector('.Conatiner');
l1.style.display = 'inline-flex';
l1.style.marginTop = 'calc(50% - 130px)';
l1.style.animation = 'FloatUpContainer 2s forwards, fadeIn 2s forwards'; // Add fadeIn animation
const l = document.querySelector('.UserProfile');
l.style.display = 'block';
l.style.animation = 'FloatUpContainer 2s forwards, fadeIn 2s forwards'; // Add fadeIn animation
}, 4000); // Redirect to index.php after 5 seconds
setTimeout(() => {
const l1 = document.querySelector('.Conatiner');
l1.style.animation = 'FloatUpContainer 2s reverse, fadeOut 2s forwards'; // Add fadeIn animation
const l = document.querySelector('.UserProfile');
l.style.display = 'block';
l.style.animation = 'FloatUpContainer 2s forwards, fadeIn 2s forwards'; // Add fadeIn animation
}, 6000); // Redirect to index.php after 5 seconds
setTimeout(() => {
const container = document.querySelector('.Conatiner');
container.style.display = 'none';
const dataContainer = document.querySelector('#DataContainer');
dataContainer.style.animation = 'FloatDown 2s forwards';
}, 8000); // Redirect to index.php after 5 seconds
setTimeout(() => {
const dataContainer = document.querySelector('#DataContainer');
dataContainer.style.animation = 'fadeOut 2s forwards';
}, 10000); // Redirect to index.php after 5 seconds
setTimeout(() => {
window.location.href = 'index.php';
}, 12000); // Redirect to index.php after 5 seconds
</script>
</body>
</html>