AnCao/web/src/pages/Login.module.less
yanlongqi c0a280132c 优化UI风格并添加管理员权限系统
主要更改:
- 新增管理员权限系统:添加 AdminAuth 中间件和 AdminRoute 组件,限制题库管理功能仅 yanlongqi 用户可访问
- UI 全面改版为白色毛玻璃风格(macOS 风格):应用毛玻璃效果、优化圆角和阴影、统一配色方案
- 登录页优化:将注册功能改为模态框形式,简化登录界面
- 首页优化:题库管理入口仅对管理员用户显示,优化响应式布局和卡片排列
- 移除底部导航栏:简化布局,改善用户体验

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 10:58:43 +08:00

104 lines
1.5 KiB
Plaintext

.container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #fafafa;
padding: 20px;
}
.content {
width: 100%;
max-width: 500px;
}
.card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(40px) saturate(180%);
-webkit-backdrop-filter: blur(40px) saturate(180%);
box-shadow:
0 4px 24px rgba(0, 0, 0, 0.06),
0 2px 12px rgba(0, 0, 0, 0.04),
0 0 0 1px rgba(0, 0, 0, 0.03);
border: 0.5px solid rgba(0, 0, 0, 0.04);
border-radius: 24px;
:global {
.ant-card-body {
padding: 40px 32px;
}
}
}
.header {
text-align: center;
margin-bottom: 32px;
}
.title {
margin: 0 0 8px 0 !important;
color: #007aff !important;
font-weight: 800;
letter-spacing: 1px;
}
.subtitle {
font-size: 15px;
display: block;
color: #6e6e73;
}
.registerTip {
text-align: center;
margin-top: 16px;
font-size: 14px;
:global {
.ant-typography {
margin-right: 4px;
}
}
}
// 响应式设计 - 移动端
@media (max-width: 768px) {
.container {
padding: 12px;
}
.content {
max-width: 100%;
}
.card {
:global {
.ant-card-body {
padding: 24px 20px;
}
}
}
.header {
margin-bottom: 24px;
}
.title {
font-size: 28px !important;
}
.subtitle {
font-size: 14px;
}
}
// 响应式设计 - 平板和PC端
@media (min-width: 769px) {
.title {
font-size: 36px !important;
}
.subtitle {
font-size: 16px;
}
}