5-minutes-shield/index.html
2024-12-29 04:03:44 +00:00

154 lines
4.3 KiB
HTML

<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>请稍等</title>
<style>
:root {
--bg-color: white;
--text-color: black;
--wait-button-bg: #e5e7eb;
--wait-button-color: #4b5563;
--exit-button-bg: #3b82f6;
--exit-button-color: white;
--link-color: #4b5563;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: black;
--text-color: white;
--wait-button-bg: #1f2937;
--wait-button-color: #a78bfa;
--exit-button-bg: #2563eb;
--exit-button-color: white;
--link-color: white;
}
}
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: var(--bg-color);
color: var(--text-color);
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
font-size: 16px;
line-height: 1.7em;
-webkit-font-smoothing: antialiased;
}
body {
display: flex;
align-items: center;
justify-content: flex-start;
}
.container {
width: 100%;
max-width: 100%;
padding: 0 3rem;
}
.header {
display: flex;
align-items: center;
margin-bottom: 1rem;
}
.emoji {
font-size: 3rem;
margin-right: 1rem;
}
h1 {
font-size: 3.75rem;
font-weight: bold;
margin: 0;
margin-bottom: 15px;
}
p {
font-size: 1.875rem;
margin-bottom: 2rem;
}
.user-info {
font-size: 1.2rem;
margin-bottom: 0.8rem;
}
.powered-by {
font-size: 1rem;
margin-top: 2rem;
margin-bottom: 2rem;
}
.buttons {
display: flex;
gap: 1rem;
}
button {
display: flex;
align-items: center;
padding: 0.75rem 1.5rem;
border-radius: 9999px;
border: none;
font-size: 1rem;
cursor: pointer;
}
button::before {
margin-right: 0.5rem;
font-size: 1.2em;
}
.wait-button {
background-color: var(--wait-button-bg);
color: var(--wait-button-color);
}
.wait-button::before {
content: "⏳";
}
.exit-button {
background-color: var(--exit-button-bg);
color: var(--exit-button-color);
}
.exit-button::before {
content: "🚪";
}
a {
color: var(--link-color);
text-decoration: none;
}
a:hover {
text-decoration: none;
}
@media (max-width: 768px) {
.container {
padding: 0 3rem;
}
.header, p, .buttons {
justify-content: center;
text-align: center;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<span class="emoji"></span>
<h1>请稍等</h1>
</div>
<p>在访问 ${host} 之前我们需要检查您的浏览器。</p>
<p class="user-info">您的IP: <span class="font-semibold font-mono">${remoteAddr}</span> 已被记录</p>
<p class="user-info">Request ID: <code class="font-mono">${requestId}</code></p>
<p class="powered-by">Powered By <a href="https://randallanjie.com">Randallanjie.com</a></p>
<div class="buttons">
<button class="wait-button">
还需等待<span class="ui-counter">5</span>
</button>
<button class="exit-button" onclick="goBack()">
退出!
</button>
</div>
</div>
<script>
function goBack() {
window.history.back();
}
</script>
</body>
</html>