relevo de glm

This commit is contained in:
2026-06-17 20:35:57 +02:00
parent 6620b493f5
commit cdf2893b94
20 changed files with 251 additions and 316 deletions
+8 -8
View File
@@ -65,26 +65,26 @@ export function CardContent({ movieId, cardType }: CardContentProps) {
if (loading) {
return (
<div className="space-y-3 rounded-2xl border border-white/10 bg-white/[0.03] p-6">
<div className="h-4 w-40 animate-pulse rounded bg-white/10" />
<div className="h-4 w-full animate-pulse rounded bg-white/10" />
<div className="h-4 w-5/6 animate-pulse rounded bg-white/10" />
<p className="text-sm text-slate-400">Generating insight...</p>
<div className="space-y-3 rounded-2xl border border-stone-200 bg-white p-6">
<div className="h-4 w-40 animate-pulse rounded bg-stone-200" />
<div className="h-4 w-full animate-pulse rounded bg-stone-200" />
<div className="h-4 w-5/6 animate-pulse rounded bg-stone-200" />
<p className="text-sm text-stone-600">Generating insight...</p>
</div>
);
}
if (error) {
return (
<div className="rounded-2xl border border-red-400/20 bg-red-400/5 p-6">
<p className="text-red-200">{error}</p>
<div className="rounded-2xl border border-red-200 bg-red-50 p-6">
<p className="text-red-700">{error}</p>
<button
type="button"
onClick={() => {
setLoading(true);
setRetryToken((token) => token + 1);
}}
className="mt-4 rounded-lg border border-white/10 px-4 py-2 text-sm text-white transition hover:bg-white/5"
className="mt-4 rounded-lg border border-stone-300 px-4 py-2 text-sm text-stone-800 transition hover:bg-stone-100"
>
Try again
</button>