Skip to content

Commit

Permalink
feat: update hero component to include hover animation for sparkles
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Jul 23, 2024
1 parent ae011ee commit ceac7ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions website/app/components/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ const Hero = () => {
<div className="animate-in fade-in-40 flex flex-col items-center space-y-2 duration-700 md:flex-row md:space-x-2 md:space-y-0">
<Button
variant="default"
className="w-full md:w-40"
className="group w-full md:w-40"
onClick={() =>
toast.default({
text: 'pheralb/toast',
description: '✨ A beautiful toast library for React',
})
}
>
<Sparkles size={14} />
<Sparkles
size={14}
className="duration-500 group-hover:animate-pulse group-hover:text-yellow-400"
/>
<span>Render a toast</span>
</Button>
<ExternalLink
Expand Down

0 comments on commit ceac7ce

Please sign in to comment.