2026-06-29 10:48:43 -04:00
|
|
|
---
|
2026-06-30 12:29:42 -04:00
|
|
|
import { Icon } from "astro-icon/components";
|
|
|
|
|
import { menuLinks, siteConfig, socialLinks } from "@/site.config";
|
2026-06-29 10:48:43 -04:00
|
|
|
|
|
|
|
|
const year = new Date().getFullYear();
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<footer
|
2026-06-30 12:29:42 -04:00
|
|
|
class="text-muted border-global-text/15 mt-auto flex w-full flex-col items-center gap-y-6 border-t pt-8 pb-6 text-center text-sm font-semibold"
|
2026-06-29 10:48:43 -04:00
|
|
|
>
|
2026-06-30 12:29:42 -04:00
|
|
|
{/* Row 1: site nav */}
|
|
|
|
|
<nav aria-labelledby="footer_links" class="flex flex-wrap justify-center gap-x-1 gap-y-1">
|
2026-06-29 10:48:43 -04:00
|
|
|
<p id="footer_links" class="sr-only">More on this site</p>
|
|
|
|
|
{
|
|
|
|
|
menuLinks.map((link) => (
|
2026-06-30 12:29:42 -04:00
|
|
|
<a class="hover:text-global-text px-3 py-1 hover:underline" href={link.path}>
|
2026-06-29 10:48:43 -04:00
|
|
|
{link.title}
|
|
|
|
|
</a>
|
|
|
|
|
))
|
|
|
|
|
}
|
|
|
|
|
</nav>
|
2026-06-30 12:29:42 -04:00
|
|
|
|
|
|
|
|
{/* Row 2: social icons */}
|
|
|
|
|
<ul class="flex items-center justify-center gap-x-4">
|
|
|
|
|
{
|
|
|
|
|
socialLinks.map(({ friendlyName, isWebmention, link, name }) => (
|
|
|
|
|
<li class="flex">
|
|
|
|
|
<a
|
|
|
|
|
class="hover:text-link inline-block"
|
|
|
|
|
href={link}
|
|
|
|
|
rel={`noreferrer ${isWebmention ? "me authn" : ""}`}
|
|
|
|
|
target={link.startsWith("mailto:") ? undefined : "_blank"}
|
|
|
|
|
>
|
|
|
|
|
<Icon aria-hidden="true" class="h-6 w-6" focusable="false" name={name} />
|
|
|
|
|
<span class="sr-only">{friendlyName}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
))
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
{/* Row 3: copyright */}
|
|
|
|
|
<p class="text-xs font-normal">© {year} {siteConfig.author}</p>
|
2026-06-29 10:48:43 -04:00
|
|
|
</footer>
|