devblog/src/components/Socials.astro

26 lines
670 B
Text
Raw Normal View History

2024-12-25 02:14:10 -05:00
---
2025-03-08 19:45:21 -05:00
import { SOCIALS } from "@/constants";
2024-12-25 02:14:10 -05:00
import LinkButton from "./LinkButton.astro";
export interface Props {
centered?: boolean;
}
const { centered = false } = Astro.props;
---
2025-03-08 19:45:21 -05:00
<div class:list={["flex-wrap justify-center gap-1", { flex: centered }]}>
2024-12-25 02:14:10 -05:00
{
2025-03-08 19:45:21 -05:00
SOCIALS.map(social => (
2024-12-25 02:14:10 -05:00
<LinkButton
href={social.href}
2025-03-08 19:45:21 -05:00
class="p-2 hover:rotate-6 sm:p-1"
2024-12-25 02:14:10 -05:00
title={social.linkTitle}
>
2025-03-08 19:45:21 -05:00
<social.icon class="inline-block size-6 scale-125 fill-transparent stroke-current stroke-2 opacity-90 group-hover:fill-transparent sm:scale-110" />
2024-12-25 02:14:10 -05:00
<span class="sr-only">{social.linkTitle}</span>
</LinkButton>
))
}
</div>