远方
2509 字
13 分钟
一个粉的宝塔默认页面系列
1.站点搭建成功提示
<!DOCTYPE html><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: "Microsoft YaHei", "PingFang SC", sans-serif;} body {min-height: 100vh;display: flex;align-items: center;justify-content: center;background: #fff5f8;padding: 20px;position: relative;overflow: hidden;} /* 可爱漂浮装饰 */ .decor {position: absolute;pointer-events: none;z-index: 0;} .decor1 {top: 20%;left: 10%;font-size: 24px;color: #ffd6e0;animation: float 6s infinite ease-in-out;} .decor2 {bottom: 15%;right: 15%;font-size: 18px;color: #ffb3c6;animation: float 8s infinite ease-in-out 2s;} .decor3 {top: 60%;left: 20%;font-size: 20px;color: #ff99cc;animation: float 7s infinite ease-in-out 1s;} @keyframes float { 0% {transform: translateY(0) rotate(0deg);} 50% {transform: translateY(-15px) rotate(5deg);} 100% {transform: translateY(0) rotate(0deg);} } /* 宝塔原生风格容器 */ .box { background: #fff; padding: 40px 20px; border-radius: 16px; box-shadow: 0 3px 15px rgba(255,153,204,0.2); text-align: center; max-width: 400px; width: 100%; position: relative; z-index: 1; border: 2px solid #ffd6e0; } /* 可爱成功图标(替换原svg) */ .success-icon { width: 64px; height: 64px; margin: 0 auto 20px; position: relative; } .success-icon::before { content: "✧"; font-size: 64px; color: #ff6699; animation: bounce 1.5s infinite alternate; } @keyframes bounce { from {transform: scale(1);} to {transform: scale(1.1);} } h1 { font-size: 22px; /* 手机端缩小字体 */ color: #ff6699; margin: 0 0 16px; font-weight: 600; text-shadow: 0 1px 3px rgba(255,102,153,0.15); letter-spacing: 0.5px; /* 微调字间距,避免换行 */ } /* 响应式标题优化:小屏幕进一步缩小颜文字占比 */ @media (max-width: 375px) { h1 { font-size: 20px; padding: 0 10px; /* 增加左右内边距,给文字更多空间 */ } h1 span { font-size: 18px; /* 颜文字单独缩小 */ } } p { color: #999; font-size: 15px; line-height: 1.6; margin-bottom: 28px; } /* 按钮样式(粉嫩主题) */ a { display: inline-block; padding: 12px 30px; background: #ff99cc; color: #fff; text-decoration: none; border-radius: 30px; font-size: 15px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(255,153,204,0.2); } a:hover { background: #ff6699; box-shadow: 0 4px 12px rgba(255,102,153,0.3); transform: translateY(-2px); } /* 底部版权 */ .footer { font-size: 12px; color: #ffb3c6; margin-top: 30px; letter-spacing: 0.5px; } .footer::after { content: " ✧ෆ◞◟˃̶̤⌄˂̶̤⋆biubiu"; } </style></head><body> <!-- 可爱漂浮装饰 --> <div class="decor decor1">✿</div> <div class="decor decor2">★</div> <div class="decor decor3">♡</div>
<div class="box"> <div class="success-icon"></div> <!-- 标题拆分颜文字,方便响应式调整 --> <h1>站点搭建成功啦 <span>✧(≖ ◡ ≖✿)</span></h1> <p>粉嫩小站已就绪,快去探索更多可爱玩法吧~</p> <a href="https://www.bt.cn/" target="_blank">官方文档</a> <div class="footer">© 宝塔面板 服务器管理工具</div> </div></body></html>2.404提示页面
<!DOCTYPE html><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: "Microsoft YaHei", "PingFang SC", sans-serif;} body {min-height: 100vh;display: flex;align-items: center;justify-content: center;background: #fff5f8;padding: 20px;position: relative;overflow: hidden;} /* 可爱漂浮装饰 */ .decor {position: absolute;pointer-events: none;z-index: 0;} .decor1 {top: 20%;left: 10%;font-size: 24px;color: #ffd6e0;animation: float 6s infinite ease-in-out;} .decor2 {bottom: 15%;right: 15%;font-size: 18px;color: #ffb3c6;animation: float 8s infinite ease-in-out 2s;} .decor3 {top: 60%;left: 20%;font-size: 20px;color: #ff99cc;animation: float 7s infinite ease-in-out 1s;} .decor4 {top: 30%;right: 20%;font-size: 22px;color: #ffc2d1;animation: float 9s infinite ease-in-out 1.5s;} @keyframes float { 0% {transform: translateY(0) rotate(0deg);} 50% {transform: translateY(-15px) rotate(5deg);} 100% {transform: translateY(0) rotate(0deg);} } /* 宝塔原生风格容器 */ .box { background: #fff; padding: 40px 20px; border-radius: 16px; box-shadow: 0 3px 15px rgba(255,153,204,0.2); text-align: center; max-width: 400px; width: 100%; position: relative; z-index: 1; border: 2px solid #ffd6e0; } /* 404可爱图标 */ .error-icon { width: 64px; height: 64px; margin: 0 auto 20px; position: relative; } .error-icon::before { content: "404"; font-size: 64px; color: #ff6699; font-weight: 700; animation: bounce 1.5s infinite alternate; } @keyframes bounce { from {transform: scale(1);} to {transform: scale(1.1);} } h1 { font-size: 22px; color: #ff6699; margin: 0 0 16px; font-weight: 600; text-shadow: 0 1px 3px rgba(255,102,153,0.15); letter-spacing: 0.5px; } /* 手机小屏响应式优化 */ @media (max-width: 375px) { h1 { font-size: 20px; padding: 0 10px; } h1 span { font-size: 18px; } } p { color: #999; font-size: 15px; line-height: 1.6; margin-bottom: 28px; padding: 0 10px; } /* 粉嫩返回按钮 */ a { display: inline-block; padding: 12px 30px; background: #ff99cc; color: #fff; text-decoration: none; border-radius: 30px; font-size: 15px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(255,153,204,0.2); } a:hover { background: #ff6699; box-shadow: 0 4px 12px rgba(255,102,153,0.3); transform: translateY(-2px); } /* 底部版权 */ .footer { font-size: 12px; color: #ffb3c6; margin-top: 30px; letter-spacing: 0.5px; } .footer::after { content: " ✧ෆ◞◟˃̶̤⌄˂̶̤⋆biubiu"; } </style></head><body> <!-- 可爱漂浮装饰 --> <div class="decor decor1">✿</div> <div class="decor decor2">★</div> <div class="decor decor3">♡</div> <div class="decor decor4">🌸</div>
<div class="box"> <div class="error-icon"></div> <h1>页面走丢啦 <span>✧(≖ ◡ ≖✿)</span></h1> <p>糟糕!你访问的页面迷路了,快回到首页找找它吧~</p> <a href="/" target="_self">返回首页</a> <div class="footer">© 宝塔面板 服务器管理工具</div> </div></body></html>3.没有页面提示
<!DOCTYPE html><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: "Microsoft YaHei", "PingFang SC", sans-serif;} body {min-height: 100vh;display: flex;align-items: center;justify-content: center;background: #fff5f8;padding: 20px;position: relative;overflow: hidden;} .decor {position: absolute;pointer-events: none;z-index: 0;} .decor1 {top: 20%;left: 10%;font-size: 24px;color: #ffd6e0;animation: float 6s infinite ease-in-out;} .decor2 {bottom: 15%;right: 15%;font-size: 18px;color: #ffb3c6;animation: float 8s infinite ease-in-out 2s;} .decor3 {top: 60%;left: 20%;font-size: 20px;color: #ff99cc;animation: float 7s infinite ease-in-out 1s;} .decor4 {top: 30%;right: 20%;font-size: 22px;color: #ffc2d1;animation: float 9s infinite ease-in-out 1.5s;} @keyframes float { 0% {transform: translateY(0) rotate(0deg);} 50% {transform: translateY(-15px) rotate(5deg);} 100% {transform: translateY(0) rotate(0deg);} } .box { background: #fff; padding: 40px 20px; border-radius: 16px; box-shadow: 0 3px 15px rgba(255,153,204,0.2); text-align: left; max-width: 480px; width: 100%; position: relative; z-index: 1; border: 2px solid #ffd6e0; } .error-icon { width: 64px; height: 64px; margin: 0 auto 20px; position: relative; text-align: center; } .error-icon::before { content: "!"; font-size: 64px; color: #ff6699; font-weight: 700; animation: bounce 1.5s infinite alternate; } @keyframes bounce { from {transform: scale(1);} to {transform: scale(1.1);} } h1 { font-size: 22px; color: #ff6699; margin: 0 0 16px; font-weight: 600; text-shadow: 0 1px 3px rgba(255,102,153,0.15); letter-spacing: 0.5px; text-align: center; } @media (max-width: 375px) { h1 {font-size: 20px;padding: 0 10px;} .content p, .content li {font-size: 14px;} } .t1 { color: #999; font-size: 15px; line-height: 1.6; margin-bottom: 20px; padding: 0 10px; text-align: center; } .t2 { font-size: 16px; color: #ff6699; margin: 0 0 10px 10px; font-weight: 500; } .content ol { padding: 0 30px; margin-bottom: 20px; } .content li { color: #666; font-size: 15px; line-height: 1.8; margin-bottom: 6px; } a { display: inline-block; padding: 12px 30px; background: #ff99cc; color: #fff; text-decoration: none; border-radius: 30px; font-size: 15px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(255,153,204,0.2); margin: 0 auto; display: block; width: fit-content; } a:hover { background: #ff6699; box-shadow: 0 4px 12px rgba(255,102,153,0.3); transform: translateY(-2px); } .footer { font-size: 12px; color: #ffb3c6; margin-top: 30px; letter-spacing: 0.5px; text-align: center; } .footer::after { content: " ✧ෆ◞◟˃̶̤⌄˂̶̤⋆biubiu"; } </style></head><body> <div class="decor decor1">✿</div> <div class="decor decor2">★</div> <div class="decor decor3">♡</div> <div class="decor decor4">🌸</div>
<div class="box"> <div class="error-icon"></div> <h1>没有找到站点 ✧(≖ ◡ ≖✿)</h1> <div class="content"> <p class="t1">您的请求在Web服务器中没有找到对应的站点!</p> <p class="t2">可能原因:</p> <ol> <li>您没有将此域名或IP绑定到对应站点!</li> <li>配置文件未生效!</li> </ol> <p class="t2">如何解决:</p> <ol> <li>检查是否已经绑定到对应站点,若确认已绑定,请尝试重载Web服务;</li> <li>检查端口是否正确;</li> <li>若您使用了CDN产品,请尝试清除CDN缓存;</li> <li>普通网站访客,请联系网站管理员;</li> </ol> </div> <a href="/" target="_self">返回首页</a> <div class="footer">© 宝塔面板 服务器管理工具</div> </div></body></html>4.服务已停止
<!DOCTYPE html><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: "Microsoft YaHei", "PingFang SC", sans-serif;} body {min-height: 100vh;display: flex;align-items: center;justify-content: center;background: #fff5f8;padding: 20px;position: relative;overflow: hidden;} .decor {position: absolute;pointer-events: none;z-index: 0;} .decor1 {top: 20%;left: 10%;font-size: 24px;color: #ffd6e0;animation: float 6s infinite ease-in-out;} .decor2 {bottom: 15%;right: 15%;font-size: 18px;color: #ffb3c6;animation: float 8s infinite ease-in-out 2s;} .decor3 {top: 60%;left: 20%;font-size: 20px;color: #ff99cc;animation: float 7s infinite ease-in-out 1s;} .decor4 {top: 30%;right: 20%;font-size: 22px;color: #ffc2d1;animation: float 9s infinite ease-in-out 1.5s;} @keyframes float { 0% {transform: translateY(0) rotate(0deg);} 50% {transform: translateY(-15px) rotate(5deg);} 100% {transform: translateY(0) rotate(0deg);} } .box { background: #fff; padding: 40px 20px; border-radius: 16px; box-shadow: 0 3px 15px rgba(255,153,204,0.2); text-align: left; max-width: 480px; width: 100%; position: relative; z-index: 1; border: 2px solid #ffd6e0; } .error-icon { width: 64px; height: 64px; margin: 0 auto 20px; position: relative; text-align: center; } .error-icon::before { content: "⊗"; font-size: 64px; color: #ff6699; font-weight: 700; animation: bounce 1.5s infinite alternate; } @keyframes bounce { from {transform: scale(1);} to {transform: scale(1.1);} } h1 { font-size: 22px; color: #ff6699; margin: 0 0 16px; font-weight: 600; text-shadow: 0 1px 3px rgba(255,102,153,0.15); letter-spacing: 0.5px; text-align: center; } @media (max-width: 375px) { h1 {font-size: 20px;padding: 0 10px;} .content p, .content li {font-size: 14px;} } .t1 { color: #999; font-size: 15px; line-height: 1.6; margin-bottom: 20px; padding: 0 10px; text-align: center; } .t2 { font-size: 16px; color: #ff6699; margin: 0 0 10px 10px; font-weight: 500; } .content ol { padding: 0 30px; margin-bottom: 20px; } .content li { color: #666; font-size: 15px; line-height: 1.8; margin-bottom: 6px; } a { display: inline-block; padding: 12px 30px; background: #ff99cc; color: #fff; text-decoration: none; border-radius: 30px; font-size: 15px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(255,153,204,0.2); margin: 0 auto; display: block; width: fit-content; } a:hover { background: #ff6699; box-shadow: 0 4px 12px rgba(255,102,153,0.3); transform: translateY(-2px); } .footer { font-size: 12px; color: #ffb3c6; margin-top: 30px; letter-spacing: 0.5px; text-align: center; } .footer::after { content: " ✧ෆ◞◟˃̶̤⌄˂̶̤⋆biubiu"; } </style></head><body> <div class="decor decor1">✿</div> <div class="decor decor2">★</div> <div class="decor decor3">♡</div> <div class="decor decor4">🌸</div>
<div class="box"> <div class="error-icon"></div> <h1>服务已停止使用 ✧(≖ ◡ ≖✿)</h1> <div class="content"> <p class="t1">当前站点/服务已正式停止使用,暂无法提供访问服务</p> <p class="t2">可能原因:</p> <ol> <li>站点到期未续费、主体信息变更导致服务终止;</li> <li>服务存在合规问题,按相关要求停止运营;</li> <li>管理员主动注销站点,相关资源已清理;</li> <li>功能迭代升级,原服务已下线并替换为新功能;</li> </ol> <p class="t2">相关建议:</p> <ol> <li>站点管理员可登录服务器面板,检查站点配置及资源状态;</li> <li>确认站点备案/主体信息是否有效,及时完成更新或续费;</li> <li>普通访客可联系站点运营方,获取服务最新动态;</li> <li>若为功能下线,可前往平台首页查看替代功能及使用指引;</li> </ol> </div> <a href="/" target="_self">返回首页</a> <div class="footer">© 宝塔面板 服务器管理工具</div> </div></body></html>5.域名停靠待启用
<!DOCTYPE html><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: "Microsoft YaHei","PingFang SC",sans-serif;} body {min-height: 100vh;display: flex;align-items: center;justify-content: center;background: #fff5f8;padding: 20px;position: relative;overflow: hidden;} .decor {position: absolute;pointer-events: none;z-index: 0;color: #ffd6e0;animation: float 6s infinite ease-in-out;} .decor1 {top:20%;left:10%;font-size:24px;} .decor2 {bottom:15%;right:15%;font-size:18px;color:#ffb3c6;animation-delay:2s;animation-duration:8s;} .decor3 {top:60%;left:20%;font-size:20px;color:#ff99cc;animation-delay:1s;animation-duration:7s;} .decor4 {top:30%;right:20%;font-size:22px;color:#ffc2d1;animation-delay:1.5s;animation-duration:9s;} @keyframes float {0%{transform:translateY(0)rotate(0deg);}50%{transform:translateY(-15px)rotate(5deg);}100%{transform:translateY(0)rotate(0deg);}} .box {background:#fff;padding:40px 20px;border-radius:16px;box-shadow:0 3px 15px rgba(255,153,204,0.2);text-align:center;max-width:400px;width:100%;position:relative;z-index:1;border:2px solid #ffd6e0;} .error-icon {width:64px;height:64px;margin:0 auto 20px;} .error-icon::before {content:"♡";font-size:64px;color:#ff6699;font-weight:700;animation:bounce 1.5s infinite alternate;} @keyframes bounce {from{transform:scale(1);}to{transform:scale(1.1);}} h1 {font-size:22px;color:#ff6699;margin:0 0 16px;font-weight:600;text-shadow:0 1px 3px rgba(255,102,153,0.15);letter-spacing:0.5px;} p {color:#999;font-size:15px;line-height:1.6;margin-bottom:28px;padding:0 10px;} a {display:inline-block;padding:12px 30px;background:#ff99cc;color:#fff;text-decoration:none;border-radius:30px;font-size:15px;transition:all 0.3s ease;box-shadow:0 2px 8px rgba(255,153,204,0.2);} a:hover {background:#ff6699;box-shadow:0 4px 12px rgba(255,102,153,0.3);transform:translateY(-2px);} .footer {font-size:12px;color:#ffb3c6;margin-top:30px;letter-spacing:0.5px;} .footer::after {content:" ✧ෆ◞◟˃̶̤⌄˂̶̤⋆biubiu";} .cf-host {font-size:11px;color:#d8a8b8;margin-top:8px;} @media(max-width:375px){h1{font-size:20px;padding:0 10px;}h1 span{font-size:18px;}} </style></head><body> <div class="decor decor1">✿</div> <div class="decor decor2">★</div> <div class="decor decor3">♡</div> <div class="decor decor4">🌸</div>
<div class="box"> <div class="error-icon"></div> <h1>站点待启用 <span>✧(≖ ◡ ≖✿)</span></h1> <p>该域名暂未搭建站点服务,暂未正式启用哦~ 敬请期待后续更新呀~</p> <a href="javascript:history.back()" target="_self">返回上一页</a> <div class="footer">© 站点维护中 敬请期待</div> <div class="cf-host">托管在 Cloudflare | 由 Cloudflare CDN 提供加速与安全防护</div> </div></body></html>直接Cloudflare Workers托管的版本
addEventListener('fetch', event => { event.respondWith(handleRequest(event.request))})
async function handleRequest(request) { const html = `<!DOCTYPE html><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: "Microsoft YaHei","PingFang SC",sans-serif;} body {min-height: 100vh;display: flex;align-items: center;justify-content: center;background: #fff5f8;padding: 20px;position: relative;overflow: hidden;} .decor {position: absolute;pointer-events: none;z-index: 0;color: #ffd6e0;animation: float 6s infinite ease-in-out;} .decor1 {top:20%;left:10%;font-size:24px;} .decor2 {bottom:15%;right:15%;font-size:18px;color:#ffb3c6;animation-delay:2s;animation-duration:8s;} .decor3 {top:60%;left:20%;font-size:20px;color:#ff99cc;animation-delay:1s;animation-duration:7s;} .decor4 {top:30%;right:20%;font-size:22px;color:#ffc2d1;animation-delay:1.5s;animation-duration:9s;} @keyframes float {0%{transform:translateY(0)rotate(0deg);}50%{transform:translateY(-15px)rotate(5deg);}100%{transform:translateY(0)rotate(0deg);}} .box {background:#fff;padding:40px 20px;border-radius:16px;box-shadow:0 3px 15px rgba(255,153,204,0.2);text-align:center;max-width:400px;width:100%;position:relative;z-index:1;border:2px solid #ffd6e0;} .error-icon {width:64px;height:64px;margin:0 auto 20px;} .error-icon::before {content:"♡";font-size:64px;color:#ff6699;font-weight:700;animation:bounce 1.5s infinite alternate;} @keyframes bounce {from{transform:scale(1);}to{transform:scale(1.1);}} h1 {font-size:22px;color:#ff6699;margin:0 0 16px;font-weight:600;text-shadow:0 1px 3px rgba(255,102,153,0.15);letter-spacing:0.5px;} p {color:#999;font-size:15px;line-height:1.6;margin-bottom:28px;padding:0 10px;} a {display:inline-block;padding:12px 30px;background:#ff99cc;color:#fff;text-decoration:none;border-radius:30px;font-size:15px;transition:all 0.3s ease;box-shadow:0 2px 8px rgba(255,153,204,0.2);} a:hover {background:#ff6699;box-shadow:0 4px 12px rgba(255,102,153,0.3);transform:translateY(-2px);} .footer {font-size:12px;color:#ffb3c6;margin-top:30px;letter-spacing:0.5px;} .footer::after {content:" ✧ෆ◞◟˃̶̤⌄˂̶̤⋆biubiu";} .cf-host {font-size:11px;color:#d8a8b8;margin-top:8px;} @media(max-width:375px){h1{font-size:20px;padding:0 10px;}h1 span{font-size:18px;}} </style></head><body> <div class="decor decor1">✿</div> <div class="decor decor2">★</div> <div class="decor decor3">♡</div> <div class="decor decor4">🌸</div>
<div class="box"> <div class="error-icon"></div> <h1>站点待启用 <span>✧(≖ ◡ ≖✿)</span></h1> <p>该域名暂未搭建站点服务,暂未正式启用哦~ 敬请期待后续更新呀~</p> <a href="#" target="_self">返回到主站</a> <div class="footer">© 站点维护中 敬请期待</div> <div class="cf-host">托管在 Cloudflare | 由 Cloudflare CDN 提供加速与安全防护</div> </div></body></html>`;
return new Response(html, { headers: { 'Content-Type': 'text/html;charset=UTF-8', 'Cache-Control': 'no-cache' } })} 一个粉的宝塔默认页面系列
https://blog.20210701.xyz/posts/一个粉的宝塔默认页面系列/