Skip to content

Commit 2b18aa8

Browse files
committed
fix: 强制每次打开都完整播放启动动画
- 移除访问过就跳过启动动画的判断逻辑 - 替换为完整版带进度条/启动消息序列的 SplashScreen - 每次打开网站都完整播放 4.5 秒沉浸式入场动画
1 parent e26bac9 commit 2b18aa8

65 files changed

Lines changed: 2472 additions & 13 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

deploy-website/.nojekyll

Whitespace-only changes.

deploy-website/404.html

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<!DOCTYPE html>
2+
<html lang="zh-CN">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>HumanOS - 重定向中...</title>
7+
<script type="text/javascript">
8+
// 单页应用路由处理
9+
(function() {
10+
var redirect = function() {
11+
var path = window.location.pathname;
12+
var search = window.location.search;
13+
var hash = window.location.hash;
14+
15+
// 获取仓库名称(从 base 路径)
16+
var repoName = 'HumanOS';
17+
18+
// 如果是 GitHub Pages
19+
if (window.location.hostname.includes('github.io')) {
20+
// 将路径转换为 hash 路由
21+
var cleanPath = path.replace('/' + repoName, '') || '/';
22+
window.location.replace(window.location.origin + '/' + repoName + '/#' + cleanPath + search + hash);
23+
} else {
24+
// 其他环境,重定向到根路径
25+
window.location.replace(window.location.origin + '/#' + path + search + hash);
26+
}
27+
};
28+
29+
redirect();
30+
})();
31+
</script>
32+
<meta http-equiv="refresh" content="0;url=index.html">
33+
<style>
34+
* {
35+
margin: 0;
36+
padding: 0;
37+
box-sizing: border-box;
38+
}
39+
40+
body {
41+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
42+
background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
43+
min-height: 100vh;
44+
display: flex;
45+
align-items: center;
46+
justify-content: center;
47+
color: #fff;
48+
}
49+
50+
.container {
51+
text-align: center;
52+
padding: 2rem;
53+
}
54+
55+
.spinner {
56+
width: 60px;
57+
height: 60px;
58+
margin: 0 auto 2rem;
59+
border: 4px solid rgba(139, 92, 246, 0.2);
60+
border-top-color: #8b5cf6;
61+
border-radius: 50%;
62+
animation: spin 1s linear infinite;
63+
}
64+
65+
@keyframes spin {
66+
to { transform: rotate(360deg); }
67+
}
68+
69+
h1 {
70+
font-size: 1.5rem;
71+
margin-bottom: 0.5rem;
72+
background: linear-gradient(135deg, #8b5cf6, #ec4899);
73+
-webkit-background-clip: text;
74+
-webkit-text-fill-color: transparent;
75+
background-clip: text;
76+
}
77+
78+
p {
79+
color: rgba(255, 255, 255, 0.6);
80+
font-size: 0.875rem;
81+
}
82+
</style>
83+
</head>
84+
<body>
85+
<div class="container">
86+
<div class="spinner"></div>
87+
<h1>正在加载 HumanOS...</h1>
88+
<p>请稍候,正在初始化应用</p>
89+
</div>
90+
</body>
91+
</html>

deploy-website/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
humanos.dpdns.org

deploy-website/_headers

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
X-Frame-Options: SAMEORIGIN
3+
X-XSS-Protection: 1; mode=block
4+
X-Content-Type-Options: nosniff
5+
Referrer-Policy: strict-origin-when-cross-origin

deploy-website/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

deploy-website/assets/About-BYdb_QTD.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy-website/assets/AnimatedNumber-CMP7bX5a.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy-website/assets/Assessment-5N-lKXJR.js

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy-website/assets/Assessment-DZ5t4mb2.js

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy-website/assets/AssessmentConfirm-CoMarDjq.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)