写了个美丽的301重定向页面送给大家-紫色风格用做中转引导页的重定向页面-响应式设计支持PC和H5-优雅草卓伊凡
引言
这是一个漂亮的301重定向页面可以用来做中转站,响应式设计支持PC和H5
代码
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>欢迎进入小圈子-小圈子平台进入中…</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: ‘Segoe UI’, ‘Microsoft YaHei’, sans-serif;
}
body {
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
color: white;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 20px;
}
.container {
max-width: 600px;
padding: 40px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
p {
font-size: 1.2rem;
line-height: 1.6;
margin-bottom: 30px;
opacity: 0.9;
}
.loader {
width: 50px;
height: 50px;
border: 5px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 1s linear infinite;
margin: 0 auto 30px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.countdown {
font-size: 1.5rem;
font-weight: bold;
margin: 20px 0;
}
.redirect-link {
display: inline-block;
margin-top: 20px;
padding: 12px 30px;
background: white;
color: #2575fc;
text-decoration: none;
border-radius: 50px;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.redirect-link:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.info-box {
margin-top: 30px;
padding: 15px;
background: rgba(255, 255, 255, 0.15);
border-radius: 10px;
font-size: 0.9rem;
}
</style>
</head>
<body>
欢迎进入小圈子-小圈子平台进入中
欢迎进入小圈子-小圈子平台进入中…
5
如果您的浏览器没有自动跳转,请点击下面的链接
进入状态: 正在准备进入-正在识别机器人…
<script>
// 目标URL
const targetUrl = “https://xiaoquanzih5.youyacao.com“;
// 更新手动链接
document.getElementById(‘manualLink’).href = targetUrl;
// 倒计时功能
let countdown = 5;
const countdownElement = document.getElementById(‘countdown’);
const statusElement = document.getElementById(‘status’);
const countdownInterval = setInterval(() => {
countdown—;
countdownElement.textContent = countdown;
if (countdown <= 0) {
clearInterval(countdownInterval);
statusElement.textContent = “正在重定向…”;
// 执行重定向
window.location.replace(targetUrl);
}
}, 1000);
// 备用重定向方法 - 使用meta refresh
const metaRedirect = document.createElement(‘meta’);
metaRedirect.httpEquiv = “refresh”;
metaRedirect.content = 5; url=${targetUrl};
document.head.appendChild(metaRedirect);
// 立即重定向选项(如果需要)
// window.location.replace(targetUrl);
</script>
</body>
</html>