Skip to content

Commit

Permalink
feat: added mastodon
Browse files Browse the repository at this point in the history
  • Loading branch information
GioPan04 committed Aug 20, 2024
1 parent c6c8e09 commit ab221b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions src/components/Hero.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
import {
SiGithub,
SiCodepen,
SiX,
SiInstagram,
SiMastodon
} from "@icons-pack/react-simple-icons";
import { Mail } from "lucide-react";
import SocialButton from "./SocialButton.astro";
Expand All @@ -26,14 +24,8 @@ import SocialButton from "./SocialButton.astro";
<SocialButton href="mailto:[email protected]">
<Mail />
</SocialButton>
<SocialButton href="https://codepen.io/GioPan">
<SiCodepen />
</SocialButton>
<SocialButton href="https://x.com/giopandotdev">
<SiX />
</SocialButton>
<SocialButton href="https://instagram.com/giopan.dev">
<SiInstagram />
<SocialButton href="https://social.linux.pizza/@giopan">
<SiMastodon />
</SocialButton>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SocialButton.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Props {
const { href } = Astro.props;
---

<a href={href} target="_blank">
<a href={href} rel="me" target="_blank">
<div class="bg-white/5 p-3 rounded-md cursor-pointer transition-colors group hover:bg-white/10">
<div class="opacity-80 group-hover:opacity-100">
<slot />
Expand Down

0 comments on commit ab221b9

Please sign in to comment.