72 lines
3.1 KiB
Plaintext
72 lines
3.1 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="zag-border-b zag-transition pb-4 flex flex-col sm:flex-row sm:flex-nowrap gap-8 sm:items-center"
|
|
>
|
|
<ul class="flex flex-row gap-2">
|
|
{Object.entries(GLOBAL.menu).map((i) => (
|
|
<li>
|
|
<Anchor url={i[1]}>{i[0]}</Anchor>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
<div class="flex flex-row sm:flex-row 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.twitterProfile && (<Anchor url={GLOBAL.twitterProfile} aria-label="Twitter 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="m17.687 3.063l-4.996 5.711l-4.32-5.711H2.112l7.477 9.776l-7.086 8.099h3.034l5.469-6.25l4.78 6.25h6.102l-7.794-10.304l6.625-7.571zm-1.064 16.06L5.654 4.782h1.803l10.846 14.34z"
|
|
></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>
|
|
</div>
|
|
</Section>
|
|
<p
|
|
class="zag-text zag-transition text-center text-sm font-medium"
|
|
>
|
|
© {year} {GLOBAL.username}. All rights reserved.
|
|
</p>
|
|
</footer> |