69 lines
2.3 KiB
Raku
69 lines
2.3 KiB
Raku
use v6.e.PREVIEW;
|
|
unit module Render::Foot;
|
|
|
|
use HTML::Functional;
|
|
|
|
use Render::Util;
|
|
use DB::BlogMeta;
|
|
|
|
sub footer-link($name, $title, $path, $icon) {
|
|
div :class<footer-link>, [
|
|
$icon;
|
|
a :href($path), :title($title), [
|
|
$name;
|
|
]
|
|
]
|
|
}
|
|
|
|
sub generate-footer() is export {
|
|
footer [
|
|
div :class<contact>, [
|
|
div :class<footer-title>, span "Contact Me";
|
|
div :class<footer-links>, [
|
|
footer-link (^ "@thatonelutenist"),
|
|
"Discord",
|
|
"https://discordapp.com/users/thatonelutenist",
|
|
simple-icon "discord";
|
|
footer-link (^ "@thatonelutenist:stranger.systems"),
|
|
"Matrix",
|
|
"https://matrix.to/#/@thatonelutenist:stranger.systems",
|
|
simple-icon "matrix";
|
|
footer-link (^ "~thatonelutenist/public-inbox@lists.sr.ht"),
|
|
"Email",
|
|
"mailto:~thatonelutenist/public-inbox@lists.sr.ht",
|
|
icon-solid "envelope";
|
|
];
|
|
];
|
|
div :class<code>, [
|
|
div :class<footer-title>, span "Find My Code";
|
|
div :class<footer-links>, [
|
|
footer-link "git.stranger.systems",
|
|
"Stranger Systems Forgejo",
|
|
"https://git.stranger.systems/explore/repos",
|
|
simple-icon "forgejo";
|
|
footer-link (^ "~thatonelutenist"),
|
|
"sr.ht",
|
|
"https://sr.ht/~thatonelutenist/",
|
|
simple-icon "sourcehut";
|
|
footer-link (^ "@nmccarty"),
|
|
"Github",
|
|
"https://github.com/nmccarty",
|
|
simple-icon "github";
|
|
footer-link (^ "@thatonelutenist"),
|
|
"Gitlab",
|
|
"https://gitlab.com/thatonelutenist",
|
|
simple-icon "gitlab";
|
|
];
|
|
];
|
|
div :class<socials>, [
|
|
div :class<footer-title>, span "Social Media";
|
|
div :class<footer-links>, [
|
|
footer-link "@thatonelutenist@hachyderm.io",
|
|
"Mastodon",
|
|
"https://hachyderm.io/@thatonelutenist",
|
|
simple-icon "mastodon";
|
|
];
|
|
]
|
|
]
|
|
}
|
|
|