Initial commit
This commit is contained in:
250
web-admin/src/index.css
Normal file
250
web-admin/src/index.css
Normal file
@@ -0,0 +1,250 @@
|
||||
:root {
|
||||
color: #102542;
|
||||
background:
|
||||
radial-gradient(circle at top left, rgba(209, 111, 63, 0.18), transparent 30%),
|
||||
radial-gradient(circle at top right, rgba(17, 138, 178, 0.18), transparent 28%),
|
||||
linear-gradient(180deg, #f8f4ef 0%, #f2ede7 100%);
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
--surface: rgba(255, 255, 255, 0.78);
|
||||
--surface-strong: rgba(255, 255, 255, 0.92);
|
||||
--line: rgba(16, 37, 66, 0.08);
|
||||
--text-main: #102542;
|
||||
--text-secondary: #536277;
|
||||
--text-light: rgba(255, 255, 255, 0.86);
|
||||
--accent: #d16f3f;
|
||||
--accent-soft: rgba(209, 111, 63, 0.12);
|
||||
--success-soft: rgba(31, 157, 120, 0.14);
|
||||
--shadow-lg: 0 24px 64px rgba(16, 37, 66, 0.12);
|
||||
--shadow-md: 0 12px 32px rgba(16, 37, 66, 0.08);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
min-width: 320px;
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family:
|
||||
"Avenir Next",
|
||||
"PingFang SC",
|
||||
"Hiragino Sans GB",
|
||||
"Microsoft YaHei",
|
||||
sans-serif;
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.fullscreen-status {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-shell {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
grid-template-columns: 312px 1fr;
|
||||
}
|
||||
|
||||
.admin-sidebar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
padding: 24px 18px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(16, 37, 66, 0.96) 0%, rgba(19, 51, 84, 0.94) 100%);
|
||||
color: var(--text-light);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.admin-brand {
|
||||
padding: 18px;
|
||||
border-radius: 24px;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(209, 111, 63, 0.22), rgba(255, 255, 255, 0.06)),
|
||||
rgba(255, 255, 255, 0.04);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.admin-main {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.glass-panel {
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(18px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.48);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.page-panel {
|
||||
border-radius: 28px;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.page-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.hero-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1.5fr 1fr;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.metric-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.metric-card {
|
||||
border-radius: 22px;
|
||||
padding: 20px;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
border: 1px solid var(--line);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.login-shell {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
grid-template-columns: 1.2fr 0.9fr;
|
||||
}
|
||||
|
||||
.login-hero {
|
||||
padding: 56px;
|
||||
background:
|
||||
radial-gradient(circle at 20% 20%, rgba(209, 111, 63, 0.28), transparent 28%),
|
||||
radial-gradient(circle at 80% 15%, rgba(60, 135, 180, 0.22), transparent 30%),
|
||||
linear-gradient(160deg, #0f2746 0%, #16365d 48%, #214a73 100%);
|
||||
color: rgba(255, 255, 255, 0.92);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.login-form-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px 24px;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
width: min(460px, 100%);
|
||||
border-radius: 32px;
|
||||
padding: 28px;
|
||||
}
|
||||
|
||||
.capsule {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 12px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: rgba(255, 255, 255, 0.92);
|
||||
}
|
||||
|
||||
.catalog-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.catalog-card {
|
||||
border-radius: 22px;
|
||||
padding: 18px;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
border: 1px solid var(--line);
|
||||
transition: transform 160ms ease, box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.catalog-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.text-muted {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 999px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.status-dot.ready {
|
||||
background: #1f9d78;
|
||||
}
|
||||
|
||||
.status-dot.partial {
|
||||
background: #d29b2f;
|
||||
}
|
||||
|
||||
.status-dot.planned {
|
||||
background: #8896a8;
|
||||
}
|
||||
|
||||
@media (max-width: 1280px) {
|
||||
.metric-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.catalog-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.admin-shell,
|
||||
.login-shell,
|
||||
.hero-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.admin-sidebar {
|
||||
position: static;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.metric-grid,
|
||||
.catalog-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user