src/components/layout/Footer.astro 705 B raw
1
---
2
import { MENU_LINKS } from "@/data/constants";
3
4
const year = new Date().getFullYear();
5
---
6
7
<footer
8
	class="mt-auto flex w-full flex-col items-center justify-center gap-y-2 pt-20 pb-4 text-center align-top text-gray-500 sm:flex-row sm:justify-between sm:text-xs"
9
>
10
	<div class="mr-0 sm:mr-4">
11
		Copyright &copy; {year}
12
		<span aria-label="rocket emoji">🚀</span>
13
		Astro Cactus
14
	</div>
15
	<nav
16
		aria-label="More on this site"
17
		class="flex gap-x-2 sm:gap-x-0 sm:divide-x sm:divide-gray-500"
18
	>
19
		{
20
			MENU_LINKS.map((link) => (
21
				<a
22
					href={link.path}
23
					class="sm:hover:text-textColor px-4 py-2 sm:py-0 sm:px-2 sm:hover:underline"
24
				>
25
					{link.title}
26
				</a>
27
			))
28
		}
29
	</nav>
30
</footer>