Skip to content

Commit 6aa9f76

Browse files
feat: demo url 이 있는 경우에는 하트비트 효과 추가
1 parent 5bacc66 commit 6aa9f76

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

app/entities/portfolio/PortfolioStone.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,20 @@ const PortfolioStone = ({
6262
</span>
6363
)}
6464

65-
<div
66-
className={`
67-
absolute top-4 right-4 w-3 h-3 rounded-full bg-white/50
68-
transition-all duration-300
69-
${isHovered ? 'scale-150 bg-green-300/80' : 'scale-100'}
70-
`}
71-
/>
65+
{project.demoUrl ? (
66+
<span className="absolute top-4 right-4 flex w-3 h-3">
67+
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75" />
68+
<span className="relative inline-flex rounded-full w-3 h-3 bg-green-400 shadow-[0_0_6px_2px_rgba(74,222,128,0.6)]" />
69+
</span>
70+
) : (
71+
<div
72+
className={`
73+
absolute top-4 right-4 w-3 h-3 rounded-full bg-white/50
74+
transition-all duration-300
75+
${isHovered ? 'scale-150' : 'scale-100'}
76+
`}
77+
/>
78+
)}
7279
</div>
7380
</div>
7481

0 commit comments

Comments
 (0)