diff --git a/client/src/components/DECard.tsx b/client/src/components/DECard.tsx index 8093c68..07afa99 100644 --- a/client/src/components/DECard.tsx +++ b/client/src/components/DECard.tsx @@ -10,11 +10,14 @@ interface DECardProps { resourceUsage: string; customization: string; colorPalette: string[]; + image?: string; }; onSwipe: (direction: 'left' | 'right' | 'super') => void; isTop: boolean; } +const deImages: Record = {}; + const styleIcons: Record = { 'modern': Settings, 'minimalist': Feather, @@ -113,16 +116,35 @@ export default function DECard({ de, onSwipe, isTop }: DECardProps) { GEÇ -
-
- -
+
+ {de.image ? ( +
+ {de.name} { + e.currentTarget.style.display = 'none'; + e.currentTarget.parentElement!.style.display = 'none'; + }} + /> +
+ ) : ( +
+ +
+ )}