UI 디자인 대대적으로 대시보드 형태의 전문적인 느낌으로 재구성
This commit is contained in:
492
src/App.css
492
src/App.css
@@ -1,77 +1,493 @@
|
||||
:root {
|
||||
--bg: #0f0d12;
|
||||
--surface: rgba(26, 23, 32, 0.88);
|
||||
--text: #f4efe9;
|
||||
--muted: #b6b1a9;
|
||||
--line: rgba(255, 255, 255, 0.12);
|
||||
--accent: #f7a8a5;
|
||||
--accent-strong: #fdd4b1;
|
||||
--font-display: "DM Serif Display", "Noto Serif KR", serif;
|
||||
--font-body: "Manrope", "Noto Sans KR", sans-serif;
|
||||
}
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
App.css — Dashboard Layout & Design System
|
||||
Cyberpunk / Futuristic Dashboard UI
|
||||
═══════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
/* ── Layout: App Shell ───────────────────────────────────────────────── */
|
||||
|
||||
.app-shell {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* ── Layout: Content Area ────────────────────────────────────────────── */
|
||||
|
||||
.app-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
margin-left: var(--sidebar-w);
|
||||
}
|
||||
|
||||
/* ── Layout: Top Bar (mobile only) ──────────────────────────────────── */
|
||||
|
||||
.app-topbar {
|
||||
display: none;
|
||||
height: var(--topbar-h);
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
background: rgba(7, 11, 25, 0.85);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-bottom: 1px solid var(--line);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.app-topbar {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Layout: Main Content ────────────────────────────────────────────── */
|
||||
|
||||
.site-main {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 40px 20px 80px;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding: 28px 32px;
|
||||
background: transparent;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.site-main {
|
||||
padding: 20px 16px 60px;
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Loading State ───────────────────────────────────────────────────── */
|
||||
|
||||
.suspend-loading {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: 50vh;
|
||||
color: var(--text-dim);
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
@keyframes fadeUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(16px);
|
||||
}
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
Animations
|
||||
═══════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(12px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.site-main>* {
|
||||
animation: fadeUp 0.6s ease both;
|
||||
@keyframes glowPulse {
|
||||
0%, 100% {
|
||||
box-shadow: var(--glow-cyan);
|
||||
}
|
||||
50% {
|
||||
box-shadow: var(--glow-purple);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes scanLine {
|
||||
0% { transform: translateY(-100%); }
|
||||
100% { transform: translateY(100vh); }
|
||||
}
|
||||
|
||||
@keyframes neonFlicker {
|
||||
0%, 95%, 100% { opacity: 1; }
|
||||
96% { opacity: 0.85; }
|
||||
97% { opacity: 1; }
|
||||
98% { opacity: 0.9; }
|
||||
}
|
||||
|
||||
@keyframes borderGlow {
|
||||
0% { border-color: var(--neon-cyan-dim); }
|
||||
50% { border-color: var(--neon-purple-dim); }
|
||||
100% { border-color: var(--neon-cyan-dim); }
|
||||
}
|
||||
|
||||
.page-enter {
|
||||
animation: fadeIn 0.4s var(--ease-out) both;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
Button System
|
||||
═══════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 7px;
|
||||
border: 1px solid var(--line);
|
||||
padding: 10px 18px;
|
||||
border-radius: 999px;
|
||||
text-decoration: none;
|
||||
background: var(--surface-card);
|
||||
color: var(--text);
|
||||
font-size: 14px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
transition: all 0.2s ease;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
font-family: var(--font-body);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.05em;
|
||||
padding: 9px 20px;
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
white-space: nowrap;
|
||||
text-decoration: none;
|
||||
transition:
|
||||
border-color 0.2s var(--ease-out),
|
||||
color 0.2s var(--ease-out),
|
||||
background 0.2s var(--ease-out),
|
||||
box-shadow 0.2s var(--ease-out),
|
||||
filter 0.2s var(--ease-out),
|
||||
transform 0.15s var(--ease-spring);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
border-color: rgba(255, 255, 255, 0.3);
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--line-bright);
|
||||
color: var(--neon-cyan);
|
||||
box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
|
||||
}
|
||||
|
||||
.button:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
|
||||
/* Primary */
|
||||
.button.primary {
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
|
||||
color: #1a1414;
|
||||
background: var(--grad-accent);
|
||||
color: #fff;
|
||||
border: none;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
|
||||
}
|
||||
|
||||
.button.primary:hover {
|
||||
box-shadow: var(--glow-cyan);
|
||||
filter: brightness(1.1);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Ghost */
|
||||
.button.ghost {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.button.ghost {
|
||||
background: transparent;
|
||||
}
|
||||
.button.ghost:hover {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border-color: var(--line);
|
||||
color: var(--text-bright);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Small */
|
||||
.button.small {
|
||||
padding: 6px 14px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* Danger */
|
||||
.button.danger {
|
||||
border-color: rgba(239, 68, 68, 0.4);
|
||||
color: rgba(248, 113, 113, 1);
|
||||
background: rgba(239, 68, 68, 0.08);
|
||||
}
|
||||
|
||||
.button.danger:hover {
|
||||
border-color: rgba(239, 68, 68, 0.7);
|
||||
background: rgba(239, 68, 68, 0.15);
|
||||
box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
|
||||
color: rgba(252, 165, 165, 1);
|
||||
}
|
||||
|
||||
/* Disabled */
|
||||
.button:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
Dashboard Card / Panel System
|
||||
═══════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.dash-card {
|
||||
background: var(--surface-card);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 20px;
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
box-shadow: var(--shadow-card);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition:
|
||||
border-color 0.25s var(--ease-out),
|
||||
box-shadow 0.25s var(--ease-out);
|
||||
}
|
||||
|
||||
/* Top accent line */
|
||||
.dash-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: var(--grad-accent);
|
||||
opacity: 0.3;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.dash-card:hover {
|
||||
border-color: rgba(0, 212, 255, 0.15);
|
||||
box-shadow:
|
||||
0 8px 40px rgba(0, 0, 0, 0.5),
|
||||
0 0 0 1px rgba(0, 212, 255, 0.05);
|
||||
}
|
||||
|
||||
/* Elevated variant */
|
||||
.dash-card.raised {
|
||||
background: var(--surface-raised);
|
||||
border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
/* Glow variant */
|
||||
.dash-card.glow {
|
||||
animation: glowPulse 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* ── Legacy card alias ───────────────────────────────────────────────── */
|
||||
|
||||
.card {
|
||||
background: var(--surface-card);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 20px;
|
||||
box-shadow: var(--shadow-card);
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
border-color: rgba(0, 212, 255, 0.15);
|
||||
box-shadow:
|
||||
0 8px 32px rgba(0, 0, 0, 0.5),
|
||||
0 0 0 1px rgba(0, 212, 255, 0.05);
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
Typography Utilities
|
||||
═══════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
/* Eyebrow / Section label */
|
||||
.eyebrow {
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.26em;
|
||||
color: var(--neon-cyan);
|
||||
margin: 0 0 8px;
|
||||
font-family: var(--font-display);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Panel title */
|
||||
.panel-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: var(--text-bright);
|
||||
letter-spacing: -0.01em;
|
||||
margin: 0 0 4px;
|
||||
}
|
||||
|
||||
/* Section heading */
|
||||
.section-heading {
|
||||
font-family: var(--font-display);
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--text-bright);
|
||||
letter-spacing: -0.03em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
Badge / Chip System
|
||||
═══════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 3px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.badge.cyan {
|
||||
background: var(--neon-cyan-muted);
|
||||
color: var(--neon-cyan);
|
||||
border: 1px solid rgba(0, 212, 255, 0.2);
|
||||
}
|
||||
|
||||
.badge.purple {
|
||||
background: var(--neon-purple-muted);
|
||||
color: var(--neon-purple);
|
||||
border: 1px solid rgba(139, 92, 246, 0.2);
|
||||
}
|
||||
|
||||
.badge.green {
|
||||
background: rgba(52, 211, 153, 0.12);
|
||||
color: #34d399;
|
||||
border: 1px solid rgba(52, 211, 153, 0.2);
|
||||
}
|
||||
|
||||
.badge.red {
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
color: #f87171;
|
||||
border: 1px solid rgba(239, 68, 68, 0.2);
|
||||
}
|
||||
|
||||
.chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 4px 12px;
|
||||
border-radius: 999px;
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.1em;
|
||||
border: 1px solid var(--line);
|
||||
color: var(--text-dim);
|
||||
background: var(--surface-card);
|
||||
transition: border-color 0.15s ease, color 0.15s ease;
|
||||
}
|
||||
|
||||
.chip:hover {
|
||||
border-color: var(--line-bright);
|
||||
color: var(--neon-cyan);
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
Data Display Utilities
|
||||
═══════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
/* Metric / stat number */
|
||||
.metric-value {
|
||||
font-family: var(--font-display);
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
color: var(--text-bright);
|
||||
letter-spacing: -0.04em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.metric-label {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
/* Positive / negative indicators */
|
||||
.pos {
|
||||
color: #34d399;
|
||||
}
|
||||
|
||||
.neg {
|
||||
color: #f87171;
|
||||
}
|
||||
|
||||
/* ── Separator / Divider ─────────────────────────────────────────────── */
|
||||
|
||||
.divider {
|
||||
height: 1px;
|
||||
background: var(--line);
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
/* ── Gradient text utility ───────────────────────────────────────────── */
|
||||
|
||||
.gradient-text {
|
||||
background: var(--grad-accent);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
Grid Utilities
|
||||
═══════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
.dash-grid {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.dash-grid-2 {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.dash-grid-3 {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.dash-grid-4 {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.dash-grid-4 { grid-template-columns: repeat(2, 1fr); }
|
||||
.dash-grid-3 { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.dash-grid-2,
|
||||
.dash-grid-3,
|
||||
.dash-grid-4 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════
|
||||
Responsive Mobile
|
||||
═══════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
body {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
flex-direction: column;
|
||||
height: auto;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.app-content {
|
||||
margin-left: 0;
|
||||
height: auto;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.site-main {
|
||||
overflow: visible;
|
||||
flex: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user