添加退出登录按钮

This commit is contained in:
CN-JS-HuiBai
2026-04-03 22:45:06 +08:00
parent 14695fcfd4
commit 1dd26e634f
4 changed files with 192 additions and 11 deletions

View File

@@ -240,23 +240,61 @@ header p {
}
.top-banner {
background: rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.7);
border: 1px solid var(--panel-border);
border-radius: 16px;
padding: 1rem 1.25rem;
margin-bottom: 1.5rem;
color: var(--text-primary);
font-size: 1.25rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: flex-start;
justify-content: space-between;
gap: 1rem;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
.top-banner.hidden {
display: none;
}
.top-banner__title {
font-size: 1.25rem;
font-weight: 700;
min-width: 0;
}
.top-banner__actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.75rem;
flex-wrap: wrap;
}
.user-chip {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.65rem 0.9rem;
border-radius: 999px;
background: rgba(37, 99, 235, 0.08);
border: 1px solid rgba(37, 99, 235, 0.16);
color: var(--text-primary);
line-height: 1;
}
.user-chip__label {
color: var(--text-secondary);
font-size: 0.82rem;
font-weight: 600;
}
.user-chip__name {
font-size: 0.92rem;
font-weight: 700;
}
.section-header {
display: block;
margin-bottom: 0.75rem;
@@ -291,6 +329,16 @@ header p {
transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.action-btn-secondary {
background: #0f172a;
color: #ffffff;
}
.action-btn-secondary:hover {
background: #1e293b;
box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}
.action-btn:hover {
background: #1d4ed8;
transform: translateY(-1px);
@@ -1044,6 +1092,16 @@ header p {
/* Responsive adjustments */
@media (max-width: 900px) {
.top-banner {
align-items: flex-start;
flex-direction: column;
}
.top-banner__actions {
width: 100%;
justify-content: space-between;
}
.dashboard {
grid-template-columns: 1fr;
}