57 lines
3.5 KiB
Plaintext
57 lines
3.5 KiB
Plaintext
include Container
|
|
|
|
mixin Link(href, label, target, rel)
|
|
- const eventName = "external link clicked";
|
|
- const eventCategory = "footer";
|
|
- const onclick = `umami.track('${eventName}', { category: 'icons', position: 'footer', label: '${label}', visitDuration: getVisitDuration() })`;
|
|
|
|
a.transition-colors.text-white(href=href, class="hover:text-amber-300", target=target, rel=rel, onclick=onclick)
|
|
block
|
|
|
|
mixin Svg
|
|
svg.w-24.h-24(class="sm:w-8 sm:h-8", aria-hidden="true", fill="currentColor", viewbox="0 0 24 24")
|
|
block
|
|
|
|
footer#footer.bg-nls-black.text-white
|
|
.p-8(class="sm:p-20 min-h-[120vh]")
|
|
+Container
|
|
// region Contact
|
|
h2.text-5xl.mb-4 #{footer.title}
|
|
p.mb-8.max-w-prose #{footer.content}
|
|
.flex.flex-col.items-center.space-y-12.mb-8(class="sm:flex-row sm:space-x-6 sm:space-y-0")
|
|
+Link(footer.githubUrl, 'github', '_blank', 'noopener noreferrer')
|
|
+Svg
|
|
path(
|
|
clip-rule="evenodd",
|
|
d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",
|
|
fill-rule="evenodd",
|
|
style="fill: currentColor"
|
|
)
|
|
|
|
+Link(footer.linkedinUrl, 'linkedin', '_blank', 'noopener noreferrer')
|
|
+Svg
|
|
path(
|
|
clip-rule="evenodd",
|
|
d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",
|
|
fill-rule="evenodd",
|
|
style="fill: currentColor"
|
|
)
|
|
|
|
+Link(footer.xingUrl, 'xing', '_blank', 'noopener noreferrer')
|
|
+Svg
|
|
path(
|
|
d="M18.188 0c-.517 0-.741.325-.927.66 0 0-7.455 13.224-7.702 13.657.015.024 4.919 9.023 4.919 9.023.17.308.436.66.967.66h3.454c.211 0 .375-.078.463-.22.089-.151.089-.346-.009-.536l-4.879-8.916c-.004-.006-.004-.016 0-.022L22.139.756c.095-.191.097-.387.006-.535C22.056.078 21.894 0 21.686 0h-3.498zM3.648 4.74c-.211 0-.385.074-.473.216-.09.149-.078.339.02.531l2.34 4.05c.004.01.004.016 0 .021L1.86 16.051c-.099.188-.093.381 0 .529.085.142.239.234.45.234h3.461c.518 0 .766-.348.945-.667l3.734-6.609-2.378-4.155c-.172-.315-.434-.659-.962-.659H3.648v.016z",
|
|
style="fill: currentColor"
|
|
)
|
|
|
|
a.transition-colors.text-white.uppercase.font-semibold(
|
|
href=footer.emailLink,
|
|
class="hover:text-amber-300",
|
|
rel="noopener noreferrer",
|
|
onclick="umami.track('email clicked', { position: 'footer', visitDuration: getVisitDuration() })"
|
|
) #{footer.emailText}
|
|
|
|
+Link("https://git.dailysh.it/nextlevelshit/dailysh.it", "gitea", "_blank", "noopener noreferrer")
|
|
| #{footer.gitea}
|
|
// endregion
|