diff --git a/src/App.css b/src/App.css index 4faacb1..bf95131 100644 --- a/src/App.css +++ b/src/App.css @@ -249,9 +249,21 @@ body { } .graph-value { - font-size: 28px; + font-size: 32px; font-weight: 700; - text-shadow: 0 0 20px currentColor; + text-shadow: 0 0 20px currentColor, 0 0 40px currentColor; + animation: value-glow 2s ease-in-out infinite alternate; +} + +@media (prefers-reduced-motion: reduce) { + .graph-value { + animation: none; + } +} + +@keyframes value-glow { + from { text-shadow: 0 0 20px currentColor, 0 0 40px currentColor; } + to { text-shadow: 0 0 10px currentColor, 0 0 25px currentColor; } } .graph-container { @@ -259,6 +271,8 @@ body { border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, 0.3); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 15px rgba(96, 165, 250, 0.06); + border: 1px solid rgba(255, 255, 255, 0.04); } /* CPU Cores Grid */ diff --git a/src/components/CpuGraph.tsx b/src/components/CpuGraph.tsx index a5a510a..edb7376 100644 --- a/src/components/CpuGraph.tsx +++ b/src/components/CpuGraph.tsx @@ -4,6 +4,7 @@ import { Area, XAxis, YAxis, + CartesianGrid, ResponsiveContainer, Tooltip, } from 'recharts'; @@ -65,16 +66,17 @@ export function CpuGraph({ cpuUsage }: CpuGraphProps) {
- + {cpuUsage.map((cpu, i) => ( - - + + ))} + ( diff --git a/src/components/MemoryGraph.tsx b/src/components/MemoryGraph.tsx index 995fe06..647d2ad 100644 --- a/src/components/MemoryGraph.tsx +++ b/src/components/MemoryGraph.tsx @@ -4,6 +4,7 @@ import { Area, XAxis, YAxis, + CartesianGrid, ResponsiveContainer, Tooltip, } from 'recharts'; @@ -67,14 +68,15 @@ export function MemoryGraph({ used, total, percent }: MemoryGraphProps) {
- + - - + + + [`${value.toFixed(1)}%`, 'Usage']} />