feat: Introduce AI analysis engine with detailed system prompt and user message generation for product recommendations, and add an OpenRouter client.

This commit is contained in:
Michael committed 2026-03-19 09:50:28 +01:00
1 parent d8a9329075
commit 2b7e7bc1f4
3 files changed
+52 -1

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
export default function GridLoading() {
return (
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm">
<div
className="flex flex-col items-center gap-5 px-10 py-8 rounded-2xl shadow-2xl border"
style={{
background: "var(--bg-elevated)",
borderColor: "var(--border)",
}}
>
{/* Spinner */}
<div className="relative w-12 h-12">
<div
className="absolute inset-0 rounded-full border-[3px] animate-spin"
style={{
borderColor: "var(--border)",
borderTopColor: "var(--accent)",
}}
/>
</div>
<div className="flex flex-col items-center gap-1.5">
<span
className="text-sm font-semibold tracking-wide"
style={{ color: "var(--text-primary)" }}
>
Chargement des données
</span>
<span
className="text-xs"
style={{ color: "var(--text-muted)" }}
>
Récupération des articles et calcul des scores...
</span>
</div>
</div>
</div>
);
}