-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
205 lines (187 loc) · 7.53 KB
/
index.html
File metadata and controls
205 lines (187 loc) · 7.53 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Domain</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
min-height: 100vh;
background: #000;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
position: relative;
overflow: hidden;
padding-bottom: 60px;
}
/* 图片容器 - 最底层 */
.image-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
}
img {
width: 100vw;
height: auto;
display: block;
}
/* Win11 OOBE 风格光晕容器 */
.glow {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 2;
}
/* 光斑基础样式 */
.glow-blob {
position: absolute;
border-radius: 50%;
filter: blur(80px);
}
/* 光斑1 - 蓝紫色调 更大更淡 */
.glow-blob-1 {
width: 100vmin;
height: 100vmin;
background: radial-gradient(circle,
rgba(138, 43, 226, 0.35) 0%,
rgba(75, 0, 130, 0.25) 30%,
rgba(220, 20, 60, 0.15) 60%,
transparent 80%
);
animation: blob-wander-1 20s ease-in-out infinite;
}
/* 光斑2 - 深红色调 更大更淡 */
.glow-blob-2 {
width: 90vmin;
height: 90vmin;
background: radial-gradient(circle,
rgba(220, 20, 60, 0.4) 0%,
rgba(178, 34, 34, 0.25) 40%,
rgba(255, 69, 0, 0.15) 70%,
transparent 85%
);
animation: blob-wander-2 25s ease-in-out infinite;
}
/* 光斑3 - 橙红色调 更大更淡 */
.glow-blob-3 {
width: 80vmin;
height: 80vmin;
background: radial-gradient(circle,
rgba(255, 69, 0, 0.35) 0%,
rgba(220, 20, 60, 0.25) 50%,
transparent 75%
);
animation: blob-wander-3 18s ease-in-out infinite;
}
/* 光斑1 - 大范围漫游 */
@keyframes blob-wander-1 {
0% { top: -30%; left: -20%; transform: scale(1); }
20% { top: 50%; left: 60%; transform: scale(1.2); }
40% { top: 70%; left: 10%; transform: scale(0.9); }
60% { top: 20%; left: 70%; transform: scale(1.1); }
80% { top: 0%; left: 30%; transform: scale(1.15); }
100% { top: -30%; left: -20%; transform: scale(1); }
}
/* 光斑2 - 对角线穿越 */
@keyframes blob-wander-2 {
0% { top: 100%; left: 100%; transform: scale(1.1); }
25% { top: 10%; left: 0%; transform: scale(0.85); }
50% { top: 40%; left: 50%; transform: scale(1.25); }
75% { top: 70%; left: 20%; transform: scale(0.95); }
100% { top: 100%; left: 100%; transform: scale(1.1); }
}
/* 光斑3 - 中心环绕 */
@keyframes blob-wander-3 {
0% { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1); }
15% { top: 5%; left: 75%; transform: translate(-50%, -50%) scale(1.15); }
30% { top: 65%; left: 65%; transform: translate(-50%, -50%) scale(0.85); }
45% { top: 75%; left: 15%; transform: translate(-50%, -50%) scale(1.2); }
60% { top: 15%; left: 5%; transform: translate(-50%, -50%) scale(1.05); }
75% { top: 35%; left: 85%; transform: translate(-50%, -50%) scale(0.8); }
90% { top: 85%; left: 45%; transform: translate(-50%, -50%) scale(1.1); }
100% { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1); }
}
/* 文字 */
p {
color: #fff;
font-family: 'Arial Black', sans-serif;
font-size: 2rem;
z-index: 3;
position: relative;
letter-spacing: 2px;
background: linear-gradient(90deg, #fff, #ff4444, #fff);
background-size: 200% auto;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: shine 3s linear infinite;
text-shadow: 0 0 30px rgba(220, 20, 60, 0.5);
}
@keyframes shine {
to { background-position: 200% center; }
}
/* 星星粒子 - 最顶层 */
.stars {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10;
}
.star {
position: absolute;
width: 2px;
height: 2px;
background: rgba(220, 20, 60, 0.8);
border-radius: 50%;
box-shadow: 0 0 4px rgba(220, 20, 60, 0.8);
animation: twinkle 2s infinite;
}
.star.white {
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}
@keyframes twinkle {
0%, 100% { opacity: 0.2; transform: scale(1); }
50% { opacity: 1; transform: scale(1.3); }
}
</style>
</head>
<body>
<div class="image-container">
<img src="images/Domain.jpg" alt="Domain" loading="eager" decoding="async">
</div>
<div class="glow">
<div class="glow-blob glow-blob-1"></div>
<div class="glow-blob glow-blob-2"></div>
<div class="glow-blob glow-blob-3"></div>
</div>
<p>This is a Domain</p>
<div class="stars" id="stars"></div>
<script>
const starsContainer = document.getElementById('stars');
for (let i = 0; i < 80; i++) {
const star = document.createElement('div');
star.className = Math.random() > 0.85 ? 'star white' : 'star';
star.style.left = Math.random() * 100 + '%';
star.style.top = Math.random() * 100 + '%';
star.style.animationDelay = Math.random() * 2 + 's';
star.style.animationDuration = (1.5 + Math.random() * 2) + 's';
starsContainer.appendChild(star);
}
</script>
</body>
</html>