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
@@ -37,13 +37,13 @@ export function GpuSelector({ gpus }: GpuSelectorProps) {
|
||||
const iconClass = "h-5 w-5";
|
||||
switch (vendor?.toUpperCase()) {
|
||||
case 'NVIDIA':
|
||||
return <Zap className={cn(iconClass, "text-green-500")} />;
|
||||
return <Zap className={cn(iconClass, "text-muted-foreground")} />;
|
||||
case 'AMD':
|
||||
return <Zap className={cn(iconClass, "text-red-500")} />;
|
||||
return <Zap className={cn(iconClass, "text-muted-foreground")} />;
|
||||
case 'INTEL':
|
||||
return <Cpu className={cn(iconClass, "text-blue-500")} />;
|
||||
return <Cpu className={cn(iconClass, "text-muted-foreground")} />;
|
||||
case 'APPLE':
|
||||
return <Monitor className={cn(iconClass, "text-gray-500")} />;
|
||||
return <Monitor className={cn(iconClass, "text-muted-foreground")} />;
|
||||
default:
|
||||
return <Monitor className={cn(iconClass, "text-muted-foreground")} />;
|
||||
}
|
||||
@@ -58,10 +58,10 @@ export function GpuSelector({ gpus }: GpuSelectorProps) {
|
||||
};
|
||||
|
||||
return (
|
||||
<Card className="w-full max-w-2xl mx-auto bg-muted/30 animate-in fade-in slide-in-from-bottom-4">
|
||||
<Card className="w-full max-w-2xl mx-auto">
|
||||
<CardHeader>
|
||||
<CardTitle className="flex items-center gap-2 text-lg">
|
||||
<Monitor className="text-primary" />
|
||||
<Monitor className="text-muted-foreground" />
|
||||
Placas de Vídeo Detectadas
|
||||
</CardTitle>
|
||||
<CardDescription>
|
||||
@@ -79,11 +79,10 @@ export function GpuSelector({ gpus }: GpuSelectorProps) {
|
||||
key={gpu.id}
|
||||
onClick={() => setSelectedGpu(gpu.id)}
|
||||
className={cn(
|
||||
"relative p-4 rounded-lg border-2 transition-all text-left",
|
||||
"hover:border-primary/50 hover:bg-accent/50",
|
||||
"relative p-4 rounded-lg border transition-colors duration-150 text-left",
|
||||
isSelected
|
||||
? "border-primary bg-primary/10 shadow-md"
|
||||
: "border-border bg-background"
|
||||
? "border-primary bg-accent-soft"
|
||||
: "border-border bg-background hover:border-muted-foreground/60 hover:bg-hover"
|
||||
)}
|
||||
>
|
||||
{isSelected && (
|
||||
|
||||
Reference in new issue
Block a user