-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaintenance.html
More file actions
84 lines (75 loc) · 2.39 KB
/
Copy pathmaintenance.html
File metadata and controls
84 lines (75 loc) · 2.39 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SOCO TV 2 - Maintenance</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
background: linear-gradient(135deg, #001026 0%, #003b8b 10%, #ff0066 30%, #ff4500 45%, #00cc44 60%, #00ffee 75%, #7f00ff 90%, #003b8b 100%);
background-size: 400% 400%;
animation: gradientMove 20s ease infinite;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
overflow: hidden;
transition: color 1s ease;
}
@keyframes gradientMove {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.logo {
width: 120px;
height: 120px;
margin-bottom: 30px;
animation: rotate 5s linear infinite;
filter: drop-shadow(0 0 10px #fff);
}
@keyframes rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
transition: color 1s ease;
}
p {
font-size: 1.2rem;
margin: 5px 0;
transition: color 1s ease;
}
</style>
</head>
<body>
<img src="logo.png" alt="SOCO TV 2" class="logo">
<h1>Maintenance en cours...</h1>
<p>Les canaux SOCO TV seront de retour sous peu.</p>
<script>
// Changement automatique du texte pour rester lisible sur le fond
const textElements = document.querySelectorAll('h1, p');
function updateTextColor() {
const bodyStyles = getComputedStyle(document.body);
const bg = bodyStyles.background;
const tempDiv = document.createElement('div');
tempDiv.style.background = bg;
document.body.appendChild(tempDiv);
const rgb = window.getComputedStyle(tempDiv).backgroundColor.match(/\d+/g);
document.body.removeChild(tempDiv);
const brightness = (rgb[0]*299 + rgb[1]*587 + rgb[2]*114) / 1000;
const color = brightness < 128 ? '#fff' : '#000';
textElements.forEach(el => el.style.color = color);
}
setInterval(updateTextColor, 1000);
</script>
</body>
</html>