feat(admin): migrate admin UI to Vue3
This commit is contained in:
3481
templates/admin.html
3481
templates/admin.html
File diff suppressed because it is too large
Load Diff
3468
templates/admin_legacy.html
Normal file
3468
templates/admin_legacy.html
Normal file
File diff suppressed because it is too large
Load Diff
@@ -12,20 +12,35 @@
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Microsoft YaHei', Arial, sans-serif;
|
||||
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
||||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
||||
'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
|
||||
background: linear-gradient(135deg, #eef2ff 0%, #f6f7fb 45%, #ecfeff 100%);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background:
|
||||
radial-gradient(800px 500px at 15% 20%, rgba(59,130,246,.18), transparent 60%),
|
||||
radial-gradient(700px 420px at 85% 70%, rgba(124,58,237,.16), transparent 55%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.login-container {
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 10px 40px rgba(0,0,0,0.2);
|
||||
width: 400px;
|
||||
padding: 40px;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 18px 60px rgba(17,24,39,0.15);
|
||||
width: 420px;
|
||||
padding: 38px 34px;
|
||||
border: 1px solid rgba(17,24,39,0.08);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.login-header {
|
||||
@@ -34,23 +49,25 @@
|
||||
}
|
||||
|
||||
.login-header h1 {
|
||||
font-size: 28px;
|
||||
color: #333;
|
||||
font-size: 24px;
|
||||
color: #111827;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.login-header p {
|
||||
color: #666;
|
||||
color: #6b7280;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.admin-badge {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
||||
color: white;
|
||||
padding: 5px 15px;
|
||||
border-radius: 20px;
|
||||
background: rgba(59,130,246,0.10);
|
||||
color: #1d4ed8;
|
||||
padding: 6px 14px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
@@ -61,39 +78,43 @@
|
||||
.form-group label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
color: #111827;
|
||||
font-weight: 700;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.form-group input {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
border: 1px solid rgba(17,24,39,0.14);
|
||||
border-radius: 10px;
|
||||
font-size: 14px;
|
||||
transition: border-color 0.3s;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
background: rgba(255,255,255,0.9);
|
||||
}
|
||||
|
||||
.form-group input:focus {
|
||||
outline: none;
|
||||
border-color: #f5576c;
|
||||
border-color: rgba(59,130,246,0.7);
|
||||
box-shadow: 0 0 0 4px rgba(59,130,246,0.16);
|
||||
}
|
||||
|
||||
.btn-login {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
||||
background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
border-radius: 10px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s;
|
||||
transition: transform 0.15s, filter 0.15s;
|
||||
}
|
||||
|
||||
.btn-login:hover {
|
||||
transform: translateY(-2px);
|
||||
filter: brightness(1.02);
|
||||
}
|
||||
|
||||
.btn-login:active {
|
||||
@@ -103,13 +124,13 @@
|
||||
.back-link {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
color: #666;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.back-link a {
|
||||
color: #f5576c;
|
||||
color: #2563eb;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.back-link a:hover {
|
||||
@@ -117,37 +138,39 @@
|
||||
}
|
||||
|
||||
.error-message {
|
||||
background: #ffe6e6;
|
||||
color: #d63031;
|
||||
background: rgba(239,68,68,0.10);
|
||||
color: #b91c1c;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 20px;
|
||||
display: none;
|
||||
border: 1px solid rgba(239,68,68,0.18);
|
||||
}
|
||||
|
||||
.success-message {
|
||||
background: #e6ffe6;
|
||||
color: #27ae60;
|
||||
background: rgba(16,185,129,0.10);
|
||||
color: #047857;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 20px;
|
||||
display: none;
|
||||
border: 1px solid rgba(16,185,129,0.18);
|
||||
}
|
||||
|
||||
.warning-box {
|
||||
background: #fff3cd;
|
||||
border: 1px solid #ffc107;
|
||||
color: #856404;
|
||||
background: rgba(245,158,11,0.10);
|
||||
border: 1px solid rgba(245,158,11,0.18);
|
||||
color: #92400e;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
body { padding: 12px; align-items: flex-start; padding-top: 20px; }
|
||||
.login-container { width: 100%; max-width: 100%; padding: 28px 20px; }
|
||||
.login-header h1 { font-size: 24px; }
|
||||
.login-container { width: 100%; max-width: 100%; padding: 28px 20px; border-radius: 14px; }
|
||||
.login-header h1 { font-size: 22px; }
|
||||
.login-header p { font-size: 13px; }
|
||||
.admin-badge { font-size: 11px; padding: 4px 12px; }
|
||||
.form-group { margin-bottom: 18px; }
|
||||
|
||||
Reference in New Issue
Block a user