feat: scaffold operator-first 3proxy panel ui
This commit is contained in:
565
src/app.css
Normal file
565
src/app.css
Normal file
@@ -0,0 +1,565 @@
|
||||
:root {
|
||||
font-family: Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
color: #d9dddf;
|
||||
background:
|
||||
radial-gradient(circle at top left, rgba(203, 140, 62, 0.12), transparent 35%),
|
||||
radial-gradient(circle at bottom right, rgba(79, 143, 122, 0.14), transparent 28%),
|
||||
linear-gradient(180deg, #11161a 0%, #0a0e11 100%);
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
--bg: #0d1115;
|
||||
--bg-elevated: rgba(18, 24, 28, 0.86);
|
||||
--bg-soft: rgba(237, 223, 201, 0.06);
|
||||
--line: rgba(255, 255, 255, 0.09);
|
||||
--line-strong: rgba(255, 255, 255, 0.16);
|
||||
--text: #f5f5ef;
|
||||
--text-muted: #99a4a8;
|
||||
--accent: #d8b064;
|
||||
--accent-strong: #efc16a;
|
||||
--accent-soft: rgba(216, 176, 100, 0.16);
|
||||
--success: #6ed2a9;
|
||||
--warn: #ffcb72;
|
||||
--danger: #ff8578;
|
||||
--idle: #899399;
|
||||
--shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#app {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.login-shell,
|
||||
.app-shell {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.login-shell {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 32px;
|
||||
}
|
||||
|
||||
.login-card,
|
||||
.panel-card,
|
||||
.sidebar,
|
||||
.topbar {
|
||||
border: 1px solid var(--line);
|
||||
background: var(--bg-elevated);
|
||||
backdrop-filter: blur(18px);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.login-card {
|
||||
width: min(100%, 540px);
|
||||
padding: 36px;
|
||||
border-radius: 28px;
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
animation: rise-in 0.6s ease-out;
|
||||
}
|
||||
|
||||
.eyebrow,
|
||||
.section-label {
|
||||
margin: 0;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.18em;
|
||||
font-size: 0.78rem;
|
||||
color: var(--accent-strong);
|
||||
}
|
||||
|
||||
.login-card h1,
|
||||
.brand-block h1,
|
||||
.panel-card h2,
|
||||
.topbar h2 {
|
||||
margin: 0;
|
||||
font-family: "Aptos Display", Aptos, "Segoe UI Variable", sans-serif;
|
||||
line-height: 1.02;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.login-card h1 {
|
||||
font-size: clamp(2.4rem, 6vw, 4.25rem);
|
||||
}
|
||||
|
||||
.lede,
|
||||
.muted,
|
||||
.attention-item p,
|
||||
.sidebar-foot p,
|
||||
.service-row span,
|
||||
.user-cell span {
|
||||
margin: 0;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.login-form,
|
||||
.user-form {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.login-form label,
|
||||
.user-form label {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.login-form input,
|
||||
.user-form input {
|
||||
width: 100%;
|
||||
padding: 14px 16px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid var(--line);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.login-form input:focus,
|
||||
.user-form input:focus {
|
||||
outline: 2px solid rgba(216, 176, 100, 0.55);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
.login-form button,
|
||||
.action-row button,
|
||||
.user-form button,
|
||||
.copy-link,
|
||||
.danger-link,
|
||||
.nav-item {
|
||||
transition:
|
||||
transform 0.16s ease,
|
||||
background-color 0.16s ease,
|
||||
border-color 0.16s ease,
|
||||
color 0.16s ease;
|
||||
}
|
||||
|
||||
.login-form button,
|
||||
.action-row button,
|
||||
.user-form button {
|
||||
padding: 14px 18px;
|
||||
border-radius: 14px;
|
||||
background: linear-gradient(135deg, #efc16a 0%, #c98d3e 100%);
|
||||
color: #121315;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.secondary {
|
||||
background: transparent !important;
|
||||
color: var(--text) !important;
|
||||
border: 1px solid var(--line-strong);
|
||||
}
|
||||
|
||||
.login-form button:hover,
|
||||
.action-row button:hover,
|
||||
.user-form button:hover,
|
||||
.copy-link:hover,
|
||||
.danger-link:hover,
|
||||
.nav-item:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.form-error {
|
||||
margin: 0;
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.login-note {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
padding-top: 4px;
|
||||
color: var(--text-muted);
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
display: grid;
|
||||
grid-template-columns: 320px minmax(0, 1fr);
|
||||
gap: 18px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
border-radius: 28px;
|
||||
padding: 28px 22px;
|
||||
display: grid;
|
||||
gap: 28px;
|
||||
position: sticky;
|
||||
top: 18px;
|
||||
max-height: calc(100vh - 36px);
|
||||
}
|
||||
|
||||
.brand-block {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.brand-block h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.nav-list {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
padding: 16px;
|
||||
border-radius: 18px;
|
||||
text-align: left;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid transparent;
|
||||
color: var(--text);
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.nav-item small {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.nav-item.active {
|
||||
background: var(--accent-soft);
|
||||
border-color: rgba(239, 193, 106, 0.3);
|
||||
}
|
||||
|
||||
.sidebar-foot {
|
||||
margin-top: auto;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.content-shell {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
padding: 22px 26px;
|
||||
border-radius: 24px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 18px;
|
||||
align-items: center;
|
||||
animation: rise-in 0.4s ease-out;
|
||||
}
|
||||
|
||||
.topbar-meta {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.tab-grid {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.users-grid,
|
||||
.system-grid {
|
||||
grid-template-columns: 1.1fr 1.9fr;
|
||||
}
|
||||
|
||||
.panel-card {
|
||||
border-radius: 24px;
|
||||
padding: 24px;
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
min-width: 0;
|
||||
animation: rise-in 0.55s ease-out both;
|
||||
}
|
||||
|
||||
.hero-card {
|
||||
background:
|
||||
linear-gradient(160deg, rgba(216, 176, 100, 0.14), transparent 55%),
|
||||
var(--bg-elevated);
|
||||
}
|
||||
|
||||
.hero-status,
|
||||
.action-row,
|
||||
.stat-stack,
|
||||
.attention-item,
|
||||
.service-row,
|
||||
.system-stats {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.metric {
|
||||
font-size: clamp(2rem, 4vw, 3.3rem);
|
||||
line-height: 1;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.sparkline-list,
|
||||
.attention-list,
|
||||
.service-list {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.sparkline-row {
|
||||
display: grid;
|
||||
grid-template-columns: 72px minmax(0, 1fr) 90px;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.sparkline-track {
|
||||
height: 10px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sparkline-track div {
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, #8cd4a8 0%, #efc16a 100%);
|
||||
}
|
||||
|
||||
.stat-stack {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.stat-stack div,
|
||||
.system-stats div {
|
||||
flex: 1 1 140px;
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 18px;
|
||||
background: var(--bg-soft);
|
||||
}
|
||||
|
||||
.attention-item,
|
||||
.service-row {
|
||||
padding: 14px 16px;
|
||||
border-radius: 18px;
|
||||
border: 1px solid var(--line);
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 999px;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.dot.warn {
|
||||
background: var(--warn);
|
||||
}
|
||||
|
||||
.dot.live {
|
||||
background: var(--success);
|
||||
}
|
||||
|
||||
.dot.fail {
|
||||
background: var(--danger);
|
||||
}
|
||||
|
||||
.table-card,
|
||||
.config-card {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.table-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.table-wrap {
|
||||
overflow: auto;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
min-width: 720px;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 16px 18px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
th {
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
|
||||
tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.user-cell {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.status-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 7px 11px;
|
||||
border-radius: 999px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.11em;
|
||||
font-size: 0.72rem;
|
||||
border: 1px solid currentColor;
|
||||
}
|
||||
|
||||
.status-pill.live {
|
||||
color: var(--success);
|
||||
background: rgba(110, 210, 169, 0.09);
|
||||
}
|
||||
|
||||
.status-pill.warn {
|
||||
color: var(--warn);
|
||||
background: rgba(255, 203, 114, 0.09);
|
||||
}
|
||||
|
||||
.status-pill.fail {
|
||||
color: var(--danger);
|
||||
background: rgba(255, 133, 120, 0.09);
|
||||
}
|
||||
|
||||
.status-pill.idle {
|
||||
color: var(--idle);
|
||||
background: rgba(137, 147, 153, 0.09);
|
||||
}
|
||||
|
||||
.copy-link,
|
||||
.danger-link {
|
||||
padding: 10px 14px;
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.danger-link {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.service-row,
|
||||
.service-meta {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.config-card {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 18px;
|
||||
border-radius: 20px;
|
||||
overflow: auto;
|
||||
background: #090d10;
|
||||
border: 1px solid var(--line);
|
||||
color: #d4dad5;
|
||||
font-family: "Cascadia Code", "IBM Plex Mono", Consolas, monospace;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
@media (max-width: 1120px) {
|
||||
.app-shell {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: static;
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
.tab-grid,
|
||||
.users-grid,
|
||||
.system-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.login-shell,
|
||||
.app-shell {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.login-card,
|
||||
.sidebar,
|
||||
.panel-card,
|
||||
.topbar {
|
||||
border-radius: 22px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
flex-direction: column;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.sparkline-row {
|
||||
grid-template-columns: 64px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.sparkline-row span:last-child {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.table-wrap {
|
||||
border-radius: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes rise-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(12px);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user