Skip to content

Commit 618462d

Browse files
authored
Merge pull request #72 from codewithzubair07/feat/creator-card-sparkline-placeholder-69
feat: add creator card sparkline placeholder (#69)
2 parents 92c6c3b + a646954 commit 618462d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

src/components/common/CreatorCard.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,24 @@ const CreatorCard: React.FC<CreatorCardProps> = ({ creator, className }) => {
9696
<p className="font-jakarta text-sm text-white/50">
9797
@{creator.instructorId || 'creator'}
9898
</p>
99+
100+
{creator.socialHandle ? (
101+
<div className="mt-2 flex items-center gap-1.5 text-xs text-white/60">
102+
<LinkIcon className="size-3 text-amber-500/70" />
103+
<span className="truncate">@{creator.socialHandle}</span>
104+
</div>
105+
) : (
106+
<div className="mt-2 flex items-center gap-1.5 text-xs text-white/30 italic">
107+
<LinkIcon className="size-3 opacity-50" />
108+
<span>No public handle</span>
109+
</div>
110+
)}
111+
112+
{/* Sparkline placeholder */}
113+
<div className="mt-3">
114+
<div className="h-10 w-full rounded-lg bg-white/10 animate-pulse" />
115+
</div>
116+
99117
<div className="mt-3 flex flex-wrap gap-2">
100118
<MiniStatChip label="Price" value={`${creator.price} ETH`} />
101119
<MiniStatChip
@@ -151,6 +169,7 @@ const CreatorCard: React.FC<CreatorCardProps> = ({ creator, className }) => {
151169
handle={creator.socialHandle}
152170
className="mt-4"
153171
/>
172+
154173
</div>
155174

156175
<div className="flex items-center justify-end gap-4">

0 commit comments

Comments
 (0)