-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
112 lines (98 loc) · 2.84 KB
/
index.php
File metadata and controls
112 lines (98 loc) · 2.84 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chargement | Flow Media</title>
<link rel="shortcut icon" href="/assets/icons/logo.png" type="image/x-icon">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: 'Poppins', sans-serif;
overflow: hidden;
}
.loading-container {
position: relative;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.video-container {
width: 100%;
height: 100%;
position: relative;
}
video {
width: 100%;
height: 100%;
object-fit: cover;
}
.loading-text {
position: absolute;
bottom: 20%;
left: 50%;
transform: translateX(-50%);
color: #000000;
font-size: 24px;
font-weight: 500;
text-align: center;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
opacity: 0;
animation: fadeIn 1s ease-in forwards;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@media (max-width: 768px) {
.loading-text {
font-size: 18px;
bottom: 15%;
}
}
</style>
</head>
<body>
<div class="loading-container">
<div class="video-container">
<video autoplay muted playsinline id="loadingVideo">
<source src="/animations/loader/animation.mp4" type="video/mp4">
Votre navigateur ne supporte pas la lecture de vidéos.
</video>
</div>
<div class="loading-text">Chargement en cours...</div>
</div>
<script>
const video = document.getElementById('loadingVideo');
let playCount = 0;
video.addEventListener('ended', () => {
playCount++;
if (playCount < 2) {
video.play();
} else {
window.location.href = '../../index.php';
}
});
// Redirection après 3 secondes
setTimeout(() => {
window.location.href = 'home.php';
}, 3000);
</script>
</body>
</html>