81 lines
3.7 KiB
Plaintext
81 lines
3.7 KiB
Plaintext
---
|
|
import { GLOBAL } from "../lib/variables";
|
|
import Anchor from "./common/Anchor.astro";
|
|
import Section from "./common/Section.astro";
|
|
|
|
const date = new Date();
|
|
const year = date.getFullYear();
|
|
---
|
|
|
|
<footer class="mt-16 mb-8">
|
|
<Section class="mb-4">
|
|
<div class="flex flex-col gap-6">
|
|
<!-- Social icons row - now above the links -->
|
|
<div class="flex justify-center gap-4">
|
|
{GLOBAL.githubProfile && (
|
|
<Anchor url={GLOBAL.githubProfile} aria-label="GitHub Profile">
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="32"
|
|
height="32"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
class="zag-fill zag-transition"
|
|
d="M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"
|
|
></path>
|
|
</svg>
|
|
</Anchor>
|
|
)}
|
|
{GLOBAL.giteaProfile && (
|
|
<Anchor url={GLOBAL.giteaProfile} aria-label="Gitea Profile">
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="32"
|
|
height="32"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
class="zag-fill zag-transition"
|
|
d="M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"
|
|
></path>
|
|
</svg>
|
|
</Anchor>
|
|
)}
|
|
{GLOBAL.linkedinProfile && (
|
|
<Anchor url={GLOBAL.linkedinProfile} aria-label="LinkedIn Profile">
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="32"
|
|
height="32"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
class="zag-fill zag-transition"
|
|
fill="currentColor"
|
|
d="M19 0h-14c-2.76 0-5 2.24-5 5v14c0 2.76 2.24 5 5 5h14c2.76 0 5-2.24 5-5v-14c0-2.76-2.24-5-5-5zm-11.12 19h-3.08v-9h3.08v9zm-1.54-10.29c-.99 0-1.79-.8-1.79-1.79s.8-1.79 1.79-1.79 1.79.8 1.79 1.79-.8 1.79-1.79 1.79zm13.16 10.29h-3.08v-4.89c0-1.16-.02-2.64-1.61-2.64s-1.86 1.26-1.86 2.57v4.96h-3.08v-9h2.96v1.23h.04c.41-.78 1.4-1.6 2.88-1.6 3.08 0 3.65 2.03 3.65 4.66v4.71z"
|
|
></path>
|
|
</svg>
|
|
</Anchor>
|
|
)}
|
|
</div>
|
|
|
|
<!-- Navigation links row - now below the icons -->
|
|
<div class="zag-border-b zag-transition pb-4">
|
|
<ul class="flex flex-wrap justify-center gap-4 sm:gap-6">
|
|
{Object.entries(GLOBAL.menu).map((i) => (
|
|
<li>
|
|
<Anchor url={i[1]}>{i[0]}</Anchor>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</Section>
|
|
<p
|
|
class="zag-text zag-transition text-center text-sm font-medium"
|
|
>
|
|
© {year} {GLOBAL.username}. All rights reserved.
|
|
</p>
|
|
</footer>
|