style(ui): família visual de IA local
This commit is contained in:
1 parent
f0b7db8c12
commit
07b0eaadca
62 files changed
+918
-853
No files matched your search
@@ -74,15 +74,15 @@ export function HardwareDashboard() {
|
||||
};
|
||||
|
||||
const getCpuColor = (usage: number): string => {
|
||||
if (usage < 50) return 'bg-green-500';
|
||||
if (usage < 80) return 'bg-yellow-500';
|
||||
return 'bg-red-500';
|
||||
if (usage < 50) return 'bg-success';
|
||||
if (usage < 80) return 'bg-warning';
|
||||
return 'bg-destructive';
|
||||
};
|
||||
|
||||
const getRamColor = (percent: number): string => {
|
||||
if (percent < 60) return 'bg-blue-500';
|
||||
if (percent < 85) return 'bg-yellow-500';
|
||||
return 'bg-red-500';
|
||||
if (percent < 60) return 'bg-success';
|
||||
if (percent < 85) return 'bg-warning';
|
||||
return 'bg-destructive';
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -174,9 +174,9 @@ export function HardwareDashboard() {
|
||||
<span className="text-muted-foreground">Usado</span>
|
||||
<span className="font-medium">{stats.ram_percent.toFixed(1)}%</span>
|
||||
</div>
|
||||
<div className="relative h-24 bg-muted rounded-lg overflow-hidden">
|
||||
<div className="relative h-24 bg-hover rounded-lg overflow-hidden">
|
||||
<div
|
||||
className={`absolute bottom-0 left-0 right-0 ${getRamColor(stats.ram_percent)} transition-all duration-300`}
|
||||
className={`absolute bottom-0 left-0 right-0 ${getRamColor(stats.ram_percent)} opacity-60`}
|
||||
style={{ height: `${stats.ram_percent}%` }}
|
||||
/>
|
||||
<div className="absolute inset-0 flex items-center justify-center text-xs font-medium">
|
||||
|
||||
Reference in new issue
Block a user