|
2 | 2 | <html lang="zh-CN"> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | | - <title>加载中...</title> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>页面跳转中...</title> |
| 7 | + <style> |
| 8 | + * { |
| 9 | + margin: 0; |
| 10 | + padding: 0; |
| 11 | + box-sizing: border-box; |
| 12 | + } |
| 13 | + |
| 14 | + body { |
| 15 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', |
| 16 | + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; |
| 17 | + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| 18 | + min-height: 100vh; |
| 19 | + display: flex; |
| 20 | + align-items: center; |
| 21 | + justify-content: center; |
| 22 | + color: white; |
| 23 | + } |
| 24 | + |
| 25 | + .container { |
| 26 | + text-align: center; |
| 27 | + padding: 2rem; |
| 28 | + max-width: 500px; |
| 29 | + } |
| 30 | + |
| 31 | + .loader { |
| 32 | + width: 60px; |
| 33 | + height: 60px; |
| 34 | + border: 5px solid rgba(255, 255, 255, 0.3); |
| 35 | + border-top-color: white; |
| 36 | + border-radius: 50%; |
| 37 | + animation: spin 1s linear infinite; |
| 38 | + margin: 0 auto 2rem; |
| 39 | + } |
| 40 | + |
| 41 | + @keyframes spin { |
| 42 | + to { transform: rotate(360deg); } |
| 43 | + } |
| 44 | + |
| 45 | + h1 { |
| 46 | + font-size: 1.5rem; |
| 47 | + font-weight: 600; |
| 48 | + margin-bottom: 1rem; |
| 49 | + opacity: 0.95; |
| 50 | + } |
| 51 | + |
| 52 | + p { |
| 53 | + font-size: 1rem; |
| 54 | + opacity: 0.85; |
| 55 | + line-height: 1.6; |
| 56 | + } |
| 57 | + |
| 58 | + .path { |
| 59 | + margin-top: 1.5rem; |
| 60 | + padding: 0.75rem 1rem; |
| 61 | + background: rgba(255, 255, 255, 0.1); |
| 62 | + border-radius: 8px; |
| 63 | + font-family: 'Courier New', monospace; |
| 64 | + font-size: 0.875rem; |
| 65 | + word-break: break-all; |
| 66 | + backdrop-filter: blur(10px); |
| 67 | + } |
| 68 | + </style> |
6 | 69 | <script> |
7 | 70 | // GitHub Pages SPA 路由解决方案 |
8 | 71 | // 简化版:直接将当前路径存储后重定向到首页 |
|
16 | 79 | return; |
17 | 80 | } |
18 | 81 |
|
| 82 | + // 显示正在跳转的路径 |
| 83 | + var fullPath = path + search + hash; |
| 84 | + document.addEventListener('DOMContentLoaded', function() { |
| 85 | + var pathElement = document.getElementById('redirect-path'); |
| 86 | + if (pathElement) { |
| 87 | + pathElement.textContent = fullPath; |
| 88 | + } |
| 89 | + }); |
| 90 | + |
19 | 91 | // 将完整路径保存到 sessionStorage |
20 | | - sessionStorage.setItem('redirectPath', path + search + hash); |
| 92 | + sessionStorage.setItem('redirectPath', fullPath); |
21 | 93 |
|
22 | | - // 重定向到首页 |
23 | | - window.location.replace('/'); |
| 94 | + // 延迟重定向,让用户看到提示信息 |
| 95 | + setTimeout(function() { |
| 96 | + window.location.replace('/'); |
| 97 | + }, 500); |
24 | 98 | })(); |
25 | 99 | </script> |
26 | 100 | </head> |
27 | 101 | <body> |
28 | | - <div style="font-family: system-ui, -apple-system, sans-serif; text-align: center; padding: 50px;"> |
29 | | - <h2>加载中...</h2> |
30 | | - <p>正在跳转到正确的页面</p> |
| 102 | + <div class="container"> |
| 103 | + <div class="loader"></div> |
| 104 | + <h1>🚀 页面跳转中...</h1> |
| 105 | + <p>正在将您重定向到正确的页面</p> |
| 106 | + <div class="path"> |
| 107 | + <div id="redirect-path"></div> |
| 108 | + </div> |
31 | 109 | </div> |
32 | 110 | </body> |
33 | 111 | </html> |
0 commit comments