feat: scaffold mediai admin
This commit is contained in:
@@ -0,0 +1,780 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #eef3f8;
|
||||
--panel: #ffffff;
|
||||
--panel-soft: #f8fafc;
|
||||
--border: #dce3eb;
|
||||
--text: #172033;
|
||||
--muted: #667085;
|
||||
--primary: #2563eb;
|
||||
--primary-dark: #1d4ed8;
|
||||
--teal: #0f766e;
|
||||
--green: #16a34a;
|
||||
--amber: #b7791f;
|
||||
--purple: #7c3aed;
|
||||
--danger: #dc2626;
|
||||
--shadow: 0 16px 40px rgb(15 23 42 / 8%);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
width: 100%;
|
||||
min-width: 1180px;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
color: var(--text);
|
||||
font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.login-page {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(520px, 1.15fr) minmax(420px, 0.85fr);
|
||||
min-height: 100vh;
|
||||
background:
|
||||
linear-gradient(120deg, rgb(15 118 110 / 18%), transparent 32%),
|
||||
linear-gradient(300deg, rgb(37 99 235 / 15%), transparent 36%),
|
||||
#edf4f8;
|
||||
}
|
||||
|
||||
.login-visual {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
min-height: 100%;
|
||||
padding: 72px 88px;
|
||||
overflow: hidden;
|
||||
color: #fff;
|
||||
background:
|
||||
linear-gradient(135deg, rgb(12 35 64 / 92%), rgb(15 118 110 / 82%)),
|
||||
radial-gradient(circle at 22% 22%, rgb(37 99 235 / 36%), transparent 28%);
|
||||
}
|
||||
|
||||
.visual-grid {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0.18;
|
||||
background-image:
|
||||
linear-gradient(rgb(255 255 255 / 18%) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgb(255 255 255 / 18%) 1px, transparent 1px);
|
||||
background-size: 42px 42px;
|
||||
}
|
||||
|
||||
.login-brand,
|
||||
.feature-list {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 42px;
|
||||
padding: 0 16px;
|
||||
border: 1px solid rgb(255 255 255 / 38%);
|
||||
border-radius: 8px;
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
background: rgb(255 255 255 / 12%);
|
||||
}
|
||||
|
||||
.login-brand h1 {
|
||||
max-width: 560px;
|
||||
margin-top: 26px;
|
||||
font-size: 44px;
|
||||
line-height: 1.18;
|
||||
}
|
||||
|
||||
.login-brand p {
|
||||
margin-top: 16px;
|
||||
color: rgb(255 255 255 / 78%);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.feature-list {
|
||||
display: grid;
|
||||
max-width: 620px;
|
||||
margin-top: 56px;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.feature-item {
|
||||
display: grid;
|
||||
grid-template-columns: 44px 1fr;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 16px;
|
||||
border: 1px solid rgb(255 255 255 / 18%);
|
||||
border-radius: 8px;
|
||||
background: rgb(255 255 255 / 10%);
|
||||
backdrop-filter: blur(12px);
|
||||
|
||||
.el-icon {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 8px;
|
||||
color: #0f766e;
|
||||
font-size: 24px;
|
||||
background: #e6fffb;
|
||||
}
|
||||
|
||||
strong,
|
||||
span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
strong {
|
||||
margin-bottom: 5px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: rgb(255 255 255 / 74%);
|
||||
}
|
||||
}
|
||||
|
||||
.login-card {
|
||||
align-self: center;
|
||||
width: min(470px, calc(100% - 64px));
|
||||
margin: 0 auto;
|
||||
padding: 38px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--panel);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.login-card-head {
|
||||
margin-bottom: 28px;
|
||||
|
||||
h2 {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 8px;
|
||||
color: var(--muted);
|
||||
}
|
||||
}
|
||||
|
||||
.login-options {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.login-submit {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.login-divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin: 28px 0 18px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
flex: 1;
|
||||
height: 1px;
|
||||
content: "";
|
||||
background: var(--border);
|
||||
}
|
||||
}
|
||||
|
||||
.login-methods {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.admin-shell {
|
||||
display: grid;
|
||||
grid-template-columns: 260px 1fr;
|
||||
min-height: 100vh;
|
||||
background: var(--bg);
|
||||
transition: grid-template-columns 0.22s ease;
|
||||
|
||||
&.collapsed {
|
||||
grid-template-columns: 82px 1fr;
|
||||
|
||||
.brand-copy,
|
||||
.nav-item span,
|
||||
.user-meta,
|
||||
.role-select {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-header,
|
||||
.nav-item {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sidebar-footer {
|
||||
padding: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
&.dark {
|
||||
--bg: #111827;
|
||||
--panel: #182132;
|
||||
--panel-soft: #202b3d;
|
||||
--border: #334155;
|
||||
--text: #e5e7eb;
|
||||
--muted: #9ca3af;
|
||||
--shadow: 0 18px 46px rgb(0 0 0 / 24%);
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
color: #dbeafe;
|
||||
background: #13233a;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
height: 72px;
|
||||
padding: 0 20px;
|
||||
border-bottom: 1px solid rgb(255 255 255 / 10%);
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
display: inline-flex;
|
||||
flex: 0 0 38px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
font-weight: 800;
|
||||
background: linear-gradient(135deg, var(--primary), var(--teal));
|
||||
}
|
||||
|
||||
.brand-copy {
|
||||
strong,
|
||||
span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
span {
|
||||
margin-top: 2px;
|
||||
color: #a5b4fc;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-scroll {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.nav-list {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 16px 12px;
|
||||
}
|
||||
|
||||
.nav-section {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.nav-section-title {
|
||||
padding: 8px 12px 4px;
|
||||
color: #91a4bd;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
height: 42px;
|
||||
padding: 0 12px;
|
||||
border-radius: 8px;
|
||||
color: #bdd0e7;
|
||||
transition: background 0.16s ease, color 0.16s ease;
|
||||
|
||||
.el-icon {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
&.router-link-active,
|
||||
&:hover {
|
||||
color: #fff;
|
||||
background: rgb(37 99 235 / 42%);
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-footer {
|
||||
padding: 16px;
|
||||
border-top: 1px solid rgb(255 255 255 / 10%);
|
||||
}
|
||||
|
||||
.user-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.user-meta {
|
||||
min-width: 0;
|
||||
|
||||
strong,
|
||||
span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
span {
|
||||
margin-top: 3px;
|
||||
color: #a8b9d0;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.role-select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.main-panel {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.top-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 72px;
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: rgb(255 255 255 / 86%);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
|
||||
.dark .top-header {
|
||||
background: rgb(24 33 50 / 86%);
|
||||
}
|
||||
|
||||
.header-left,
|
||||
.header-right,
|
||||
.toolbar-actions,
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.global-search {
|
||||
width: 260px;
|
||||
}
|
||||
|
||||
.header-badge {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.header-user {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
padding-left: 10px;
|
||||
border-left: 1px solid var(--border);
|
||||
|
||||
strong {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.content-area {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.page-stack {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.hero-strip,
|
||||
.page-toolbar,
|
||||
.data-section,
|
||||
.chart-panel,
|
||||
.kanban-column,
|
||||
.institution-card {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--panel);
|
||||
box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
|
||||
}
|
||||
|
||||
.hero-strip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 154px;
|
||||
padding: 26px;
|
||||
overflow: hidden;
|
||||
background:
|
||||
linear-gradient(100deg, rgb(37 99 235 / 10%), transparent 46%),
|
||||
linear-gradient(280deg, rgb(15 118 110 / 12%), transparent 38%),
|
||||
var(--panel);
|
||||
|
||||
h1 {
|
||||
margin-top: 8px;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
p {
|
||||
max-width: 580px;
|
||||
margin-top: 10px;
|
||||
color: var(--muted);
|
||||
}
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
color: var(--teal);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
min-height: 112px;
|
||||
padding: 18px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--panel);
|
||||
|
||||
span,
|
||||
em {
|
||||
display: block;
|
||||
}
|
||||
|
||||
span {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
strong {
|
||||
display: block;
|
||||
margin-top: 8px;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
em {
|
||||
margin-top: 6px;
|
||||
color: var(--green);
|
||||
font-size: 12px;
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.stat-mark {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
font-weight: 800;
|
||||
|
||||
&.blue {
|
||||
background: var(--primary);
|
||||
}
|
||||
|
||||
&.green {
|
||||
background: var(--green);
|
||||
}
|
||||
|
||||
&.purple {
|
||||
background: var(--purple);
|
||||
}
|
||||
|
||||
&.orange {
|
||||
background: var(--amber);
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1.4fr 0.9fr;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.content-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.55fr);
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.chart-panel,
|
||||
.data-section {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
|
||||
h2 {
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 5px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.chart-canvas {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.page-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20px;
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 8px;
|
||||
color: var(--muted);
|
||||
}
|
||||
}
|
||||
|
||||
.filter-bar {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 1fr) 180px 180px 96px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.kanban-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.kanban-column {
|
||||
min-height: 520px;
|
||||
padding: 16px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
.kanban-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 14px;
|
||||
|
||||
h2 {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.task-card {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--panel);
|
||||
|
||||
span {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.task-meta,
|
||||
.institution-head,
|
||||
.institution-metrics {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.institution-grid,
|
||||
.settings-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.institution-card {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.institution-head {
|
||||
h2 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
span {
|
||||
display: block;
|
||||
margin-top: 5px;
|
||||
color: var(--muted);
|
||||
}
|
||||
}
|
||||
|
||||
.institution-metrics {
|
||||
gap: 12px;
|
||||
|
||||
div {
|
||||
display: grid;
|
||||
flex: 1;
|
||||
gap: 4px;
|
||||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
strong {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.settings-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.module-filter {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.ai-workbench {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(420px, 0.85fr) minmax(0, 1.15fr);
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.profile-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 320px minmax(0, 1fr);
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.profile-summary {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
align-content: start;
|
||||
gap: 12px;
|
||||
text-align: center;
|
||||
|
||||
p {
|
||||
color: var(--muted);
|
||||
}
|
||||
}
|
||||
|
||||
.profile-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
margin-top: 12px;
|
||||
|
||||
div {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
padding: 12px 8px;
|
||||
border-radius: 8px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
strong {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1280px) {
|
||||
.stats-grid,
|
||||
.institution-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.dashboard-grid,
|
||||
.content-grid,
|
||||
.ai-workbench,
|
||||
.profile-layout,
|
||||
.settings-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user