redesign: modern dark dashboard with gradients and animations

- New color system: deep #0a0a0f bg with indigo/violet/emerald accents
- Sidebar redesign: gradient DH badge, improved active state, cleaner typography
- Card system: .card class with colored top-border accents, hover glow
- WeatherWidget: large temperature display, gradient bg, better 7-day grid
- CalendarWidget: gradient today highlight, violet accents, improved events panel
- TasksWidget: priority dots, hover states, max-height scroll
- System page: circular SVG gauges with glow, accent cards, better bars
- Bookmarks page: hover lift effect, colored category headers
- Claude widgets: gradient badge headers, accent borders
- DashboardHeader: live clock, gradient greeting text
- ServicesGrid: pulsing online indicator (animate-ping), card lift on hover
- globals.css: Inter font, custom scrollbar, card/glass-card, gradient-text helper
- tailwind.config.ts: dash colors, gradient BG images, glow/float animations
This commit is contained in:
Cosmo
2026-04-16 07:47:58 +00:00
parent ae1b75f0fd
commit f16318ff8e
14 changed files with 493 additions and 387 deletions

View File

@@ -1,27 +1,32 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 224 71% 4%;
--foreground: 213 31% 91%;
--card: 224 71% 4%;
--card-foreground: 213 31% 91%;
--border: 216 34% 17%;
--input: 216 34% 17%;
--background: 240 10% 4%;
--foreground: 210 40% 98%;
--card: 240 10% 4%;
--card-foreground: 210 40% 98%;
--border: 240 6% 12%;
--input: 240 6% 12%;
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 1.2%;
--secondary: 222.2 47.4% 11.2%;
--primary-foreground: 240 10% 4%;
--secondary: 240 6% 10%;
--secondary-foreground: 210 40% 98%;
--muted: 223 47% 11%;
--muted-foreground: 215.4 16.3% 56.9%;
--accent: 216 34% 17%;
--muted: 240 6% 9%;
--muted-foreground: 215 16% 47%;
--accent: 240 6% 12%;
--accent-foreground: 210 40% 98%;
--destructive: 0 63% 31%;
--destructive-foreground: 210 40% 98%;
--ring: 216 34% 17%;
--radius: 0.5rem;
--ring: 240 6% 12%;
--radius: 0.75rem;
--bg-base: #0a0a0f;
--bg-surface: #111118;
--bg-elevated: #1a1a24;
}
}
@@ -30,56 +35,87 @@
@apply border-border;
}
body {
@apply bg-background text-foreground;
background: radial-gradient(ellipse at top left, rgba(99,102,241,0.08) 0%, transparent 50%),
radial-gradient(ellipse at bottom right, rgba(139,92,246,0.05) 0%, transparent 50%),
hsl(224, 71%, 4%);
background-color: var(--bg-base);
font-family: 'Inter', system-ui, sans-serif;
color: #f8fafc;
min-height: 100vh;
}
}
/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
/* Card base style */
.card {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 16px;
backdrop-filter: blur(10px);
transition: all 0.2s ease;
}
.card:hover {
background: rgba(255,255,255,0.05);
border-color: rgba(255,255,255,0.1);
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
/* Legacy compat */
.glass-card {
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(16px);
border: 1px solid rgba(99, 102, 241, 0.15);
border-radius: 12px;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 16px;
backdrop-filter: blur(10px);
transition: all 0.2s ease;
}
.glass-card:hover {
border-color: rgba(99, 102, 241, 0.3);
transition: border-color 0.2s ease;
background: rgba(255,255,255,0.05);
border-color: rgba(255,255,255,0.1);
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.card-accent-blue { border-top: 2px solid #3b82f6; }
.card-accent-violet { border-top: 2px solid #8b5cf6; }
.card-accent-emerald { border-top: 2px solid #10b981; }
.card-accent-amber { border-top: 2px solid #f59e0b; }
.card-accent-cyan { border-top: 2px solid #06b6d4; }
.card-accent-rose { border-top: 2px solid #f43f5e; }
/* Gradient text */
.gradient-text {
background: linear-gradient(135deg, #6366f1, #a855f7);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Glow effects */
.glow-violet { box-shadow: 0 0 30px rgba(139,92,246,0.2); }
.glow-blue { box-shadow: 0 0 30px rgba(59,130,246,0.2); }
/* Sidebar */
.sidebar {
background: rgba(10, 17, 32, 0.85);
backdrop-filter: blur(20px);
border-right: 1px solid rgba(99, 102, 241, 0.12);
}
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: rgba(15, 23, 42, 0.3);
}
::-webkit-scrollbar-thumb {
background: rgba(99, 102, 241, 0.3);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(99, 102, 241, 0.5);
background: #0d0d14;
border-right: 1px solid rgba(255,255,255,0.05);
}
/* Status indicators */
.status-online {
@apply bg-green-500;
box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
background: #10b981;
box-shadow: 0 0 6px rgba(16,185,129,0.5);
}
.status-offline {
@apply bg-red-500;
box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
background: #ef4444;
box-shadow: 0 0 6px rgba(239,68,68,0.5);
}
.status-checking {
background: #6b7280;
}
.status-checking {
@apply bg-yellow-500;
@keyframes status-ring {
0%, 100% { opacity: 0.7; transform: scale(1); }
50% { opacity: 0; transform: scale(2.5); }
}