Files
atridotdad/src/components/SocialLinks.astro
Atridad Lahiji 75931d4a43
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m44s
3.0.0 - Dependency updates, improved typesafe config, improve typing
2025-09-22 15:07:03 -06:00

25 lines
705 B
Plaintext

---
import { Icon } from "astro-icon/components";
import { config } from "../config";
---
<div class="flex flex-row gap-3 text-3xl flex-wrap justify-center">
{
config.socialLinks.map((link) => (
<a
href={link.url}
target={link.url.startsWith("http") ? "_blank" : undefined}
rel={
link.url.startsWith("http")
? "noopener noreferrer"
: undefined
}
aria-label={link.ariaLabel}
class="hover:text-primary transition-colors"
>
<Icon name={link.icon} />
</a>
))
}
</div>