feat: ajout structure projet + config Node 20

This commit is contained in:
UltraLionFr
2025-12-07 00:11:21 +01:00
parent c728019f04
commit 25d49d04f0
60 changed files with 4260 additions and 157 deletions
+21
View File
@@ -0,0 +1,21 @@
import type { Tutorial } from "@/lib/tutorials";
const colors: Record<string, string> = {
Débutant: "bg-emerald-500/20 text-emerald-400 border-emerald-500/30",
Intermédiaire: "bg-amber-500/20 text-amber-400 border-amber-500/30",
Avancé: "bg-rose-500/20 text-rose-400 border-rose-500/30",
};
interface DifficultyBadgeProps {
level: Tutorial["difficulty"];
}
export function DifficultyBadge({ level }: DifficultyBadgeProps) {
return (
<span
className={`px-2 py-0.5 text-xs font-mono border rounded ${colors[level]}`}
>
{level}
</span>
);
}