feat: 登录后进入实时首页,并加密保存可刷新的登录凭证
This commit is contained in:
+196
-29
@@ -3,25 +3,29 @@
|
||||
background: var(--bg);
|
||||
font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
|
||||
font-size: 14px;
|
||||
--bg: #f3f4f6;
|
||||
--panel: #ffffff;
|
||||
--ink: #111827;
|
||||
--muted: #6b7280;
|
||||
--line: #e5e7eb;
|
||||
--accent: #2563eb;
|
||||
--accent-soft: #eff6ff;
|
||||
--sidebar: #ffffff;
|
||||
--bg: #0d1117;
|
||||
--panel: #161a22;
|
||||
--elevated: #1b212b;
|
||||
--ink: #e6edf3;
|
||||
--muted: #9aa4ae;
|
||||
--line: #262c36;
|
||||
--accent: #79c0ff;
|
||||
--accent-soft: rgba(121, 192, 255, 0.16);
|
||||
--sidebar: #0d1117;
|
||||
--danger: #f85149;
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
--bg: #0f172a;
|
||||
--panel: #1e293b;
|
||||
--ink: #f8fafc;
|
||||
--muted: #94a3b8;
|
||||
--line: #334155;
|
||||
--accent: #60a5fa;
|
||||
--accent-soft: #1e3a8a;
|
||||
--sidebar: #111827;
|
||||
:root[data-scheme="day"] {
|
||||
--bg: #f6f8fa;
|
||||
--panel: #ffffff;
|
||||
--elevated: #f6f8fa;
|
||||
--ink: #0d1117;
|
||||
--muted: #57606a;
|
||||
--line: #d0d7de;
|
||||
--accent: #0969da;
|
||||
--accent-soft: rgba(9, 105, 218, 0.12);
|
||||
--sidebar: #ffffff;
|
||||
--danger: #cf222e;
|
||||
}
|
||||
|
||||
::selection {
|
||||
@@ -29,6 +33,15 @@
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
* {
|
||||
scrollbar-color: var(--line) transparent;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#app,
|
||||
@@ -66,8 +79,7 @@ select {
|
||||
width: min(440px, 100%);
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
|
||||
border-radius: 4px;
|
||||
padding: 28px 28px 22px;
|
||||
}
|
||||
|
||||
@@ -80,23 +92,31 @@ select {
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 10px;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--accent);
|
||||
color: var(--accent);
|
||||
background: transparent;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: none;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
font-weight: 650;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.gate .brand-mark {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.brand h1 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
line-height: 1.3;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
@@ -127,8 +147,15 @@ select {
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.shell .n-layout,
|
||||
.shell .n-layout-scroll-container,
|
||||
.content {
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.shell .n-layout-sider {
|
||||
background: var(--sidebar);
|
||||
border-right: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.shell .n-layout-sider > .n-scrollbar,
|
||||
@@ -145,9 +172,37 @@ select {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.sider-brand {
|
||||
height: 56px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 0 16px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.sider-brand.compact {
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.sider-brand strong {
|
||||
font-size: 15px;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.sider-body .n-menu {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.shell .n-menu .n-menu-item-content--selected::before {
|
||||
background-color: transparent !important;
|
||||
border-left: 2px solid var(--accent);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.sider-user {
|
||||
@@ -182,6 +237,18 @@ select {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.sider-user strong {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.logout-btn.n-button {
|
||||
color: var(--danger);
|
||||
--n-text-color: var(--danger);
|
||||
--n-text-color-hover: var(--danger);
|
||||
--n-text-color-pressed: var(--danger);
|
||||
--n-text-color-focus: var(--danger);
|
||||
}
|
||||
|
||||
.content {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
@@ -195,18 +262,118 @@ select {
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 16px 20px;
|
||||
padding: 28px 32px 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.page-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.page-head h2 {
|
||||
margin: 0 0 6px;
|
||||
font-size: 22px;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.page-head p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.page .n-data-table {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.page .n-data-table td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.home {
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.profile {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.profile strong,
|
||||
.profile span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.profile span {
|
||||
margin-top: 4px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.avatar,
|
||||
.avatar-fallback {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
object-fit: cover;
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.avatar-fallback {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.facts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
margin: 0 0 20px;
|
||||
border-top: 1px solid var(--line);
|
||||
border-left: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.facts div {
|
||||
padding: 12px 16px;
|
||||
border-right: 1px solid var(--line);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.facts dt {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.facts dd {
|
||||
margin: 6px 0 0;
|
||||
font-size: 22px;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.03em;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.home h3 {
|
||||
margin: 0 0 8px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.home-status {
|
||||
margin: 0 0 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.page {
|
||||
padding: 16px 12px;
|
||||
}
|
||||
|
||||
.facts {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user