Files
weibo_signin/frontend/templates/weibo_callback.html
2026-03-09 16:10:29 +08:00

83 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>微博授权 - Weibo-HotSign</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 20px;
}
.container {
background: white;
border-radius: 12px;
padding: 40px;
max-width: 500px;
width: 100%;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
text-align: center;
}
.icon {
font-size: 64px;
margin-bottom: 20px;
}
.success { color: #28a745; }
.error { color: #dc3545; }
h1 {
color: #333;
margin-bottom: 15px;
font-size: 24px;
}
p {
color: #666;
line-height: 1.6;
margin-bottom: 20px;
}
.message {
background: #f8f9fa;
padding: 15px;
border-radius: 8px;
margin: 20px 0;
color: #333;
}
.close-btn {
background: #6366f1;
color: white;
border: none;
padding: 12px 30px;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: background 0.3s;
}
.close-btn:hover {
background: #5558dd;
}
</style>
</head>
<body>
<div class="container">
{% if status == 'success' %}
<div class="icon success"></div>
<h1>授权成功!</h1>
<p>你的微博账号 <strong>{{ screen_name }}</strong> 已成功授权。</p>
<p>请返回电脑端页面完成账号添加。</p>
{% else %}
<div class="icon error"></div>
<h1>授权失败</h1>
<div class="message">{{ message }}</div>
<p>请返回电脑端页面重试。</p>
{% endif %}
<button class="close-btn" onclick="window.close()">关闭此页面</button>
</div>
</body>
</html>