Skip to content

Commit

Permalink
Add event sf season ping
Browse files Browse the repository at this point in the history
  • Loading branch information
lil5 committed Jan 17, 2024
1 parent ab0f765 commit 185886b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
17 changes: 12 additions & 5 deletions frontend/src/pages/Events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,18 @@ function EventItem({ event }: { event: Event }) {
/>
</Link>
{isSfSeason2024 ? (
<img
src="https://images.clothingloop.org/192x192/sf_season_2024.png"
className="absolute -bottom-4 left-2 w-24 rotate-[-22deg] "
alt="Part of Slow Fashion Season 2024"
/>
<a
target="_blank"
href="https://slowfashion.global/campaign-sfm/"
className="absolute -bottom-4 left-2 group"
>
<span className="group-hover:animate-[ping-sm_1s_ease-in-out_1] absolute inline-flex h-full w-full rounded-full bg-purple-light opacity-0 group-hover:opacity-75"></span>
<img
src="https://images.clothingloop.org/192x192/sf_season_2024.png"
className="w-24 rotate-[-22deg]"
alt="Part of Slow Fashion Season 2024"
/>
</a>
) : null}
</div>

Expand Down
6 changes: 6 additions & 0 deletions frontend/tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ module.exports = {
transform: "rotate(90deg)",
},
},
"ping-sm": {
"75%, 100%": {
transform: "scale(1.5)",
opacity: 0,
},
},
},
animation: {
slide: "30s linear 0s slide infinite",
Expand Down

0 comments on commit 185886b

Please sign in to comment.