style(ui): família visual de IA local

This commit is contained in:
evandro committed 2026-11-16 00:42:44 -03:00
1 parent f0b7db8c12
commit 07b0eaadca
62 files changed
+918 -853

No files matched your search

+7 -7
View File
@@ -3,21 +3,21 @@ import { ArrowRight, Cpu } from "lucide-react";
export function Hero({ onStart }: { onStart: () => void }) {
return (
<div className="flex flex-col items-center justify-center min-h-[60vh] text-center px-4 space-y-6 animate-in fade-in zoom-in duration-500">
<div className="p-4 rounded-full bg-primary/10 animate-pulse">
<Cpu className="w-12 h-12 text-primary" />
<div className="flex flex-col items-center justify-center min-h-[60vh] text-center px-4 space-y-6 animate-in fade-in duration-200 ease-out">
<div className="p-4 rounded-lg border bg-surface">
<Cpu className="w-12 h-12 text-foreground" />
</div>
<h1 className="text-4xl md:text-6xl font-bold tracking-tighter bg-clip-text text-transparent bg-gradient-to-r from-primary to-primary/60">
<h1 className="text-3xl font-semibold tracking-tight text-foreground">
OllaHub
</h1>
<p className="text-lg md:text-xl text-muted-foreground max-w-[600px]">
<p className="text-lg text-muted-foreground max-w-[60ch]">
Sua interface moderna e poderosa para interagir com Ollama e Modelos de Linguagem Locais.
</p>
<div className="flex gap-4 pt-4">
<Button size="lg" onClick={onStart} className="group text-lg px-8 h-12">
<Button size="lg" onClick={onStart} className="group">
Iniciar Chat
<ArrowRight className="ml-2 w-5 h-5 transition-transform group-hover:translate-x-1" />
<ArrowRight className="w-4 h-4 transition-transform duration-150 group-hover:translate-x-1" />
</Button>
</div>
</div>
+11 -8
View File
@@ -31,9 +31,12 @@ export function StoppedCard({ onCheckAgain }: { onCheckAgain: () => void }) {
};
return (
<Card className="w-full max-w-md mx-auto border-yellow-500/50 bg-yellow-50/10 dark:bg-yellow-900/10">
<Card className="w-full max-w-md mx-auto border-warning/40">
<CardHeader>
<CardTitle className="text-yellow-600 dark:text-yellow-500">Ollama está parado</CardTitle>
<CardTitle className="flex items-center gap-2">
<span className="h-2 w-2 shrink-0 rounded-full bg-warning" aria-hidden="true" />
Ollama está parado
</CardTitle>
<CardDescription>
O Ollama está instalado mas não está rodando. Você pode iniciá-lo automaticamente ou executar o comando manualmente.
</CardDescription>
@@ -41,7 +44,7 @@ export function StoppedCard({ onCheckAgain }: { onCheckAgain: () => void }) {
<CardContent className="space-y-4">
<Button
onClick={handleStart}
className="w-full bg-yellow-600 hover:bg-yellow-700 text-white"
className="w-full"
disabled={starting}
>
{starting ? (
@@ -59,15 +62,15 @@ export function StoppedCard({ onCheckAgain }: { onCheckAgain: () => void }) {
<div className="relative">
<div className="absolute inset-0 flex items-center">
<span className="w-full border-t border-yellow-500/20" />
<span className="w-full border-t border-border" />
</div>
<div className="relative flex justify-center text-xs uppercase">
<span className="bg-background px-2 text-muted-foreground">Ou manualmente</span>
<div className="relative flex justify-center text-xs">
<span className="bg-card px-2 text-muted-foreground">Ou manualmente</span>
</div>
</div>
<div className="flex items-center space-x-2">
<div className="bg-muted p-3 rounded-md font-mono text-sm flex-1 border">
<div className="flex items-center gap-2">
<div className="bg-background p-3 rounded-md font-mono text-sm flex-1 border">
{command}
</div>
<Button size="icon" variant="outline" onClick={handleCopy}>