Skip to content

Commit

Permalink
adds fancy hover effects to socials
Browse files Browse the repository at this point in the history
  • Loading branch information
tif-calin committed Feb 20, 2023
1 parent 05a3d64 commit efbca31
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions components/Socials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ const socials = {

const Socials = () => {
return (
<div class="flex gap-3 text-3xl [&_>_*]:opacity-100 hover:[&_>_a]:opacity-50">
<div class="group flex gap-3 text-3xl">
{Object.entries(socials).map(([key, { unicode, url }]) => (
<a key={key} class="transition" title={key} href={url}>
<a
key={key}
/* TODO: find a better way to manage TW specificity than `!important`
- culi, '23.02feb */
class="transition group-hover:opacity-50 !hover:opacity-100"
title={key}
href={url}
>
{unicode}
</a>
))}
Expand Down

0 comments on commit efbca31

Please sign in to comment.