Setup footer
This commit is contained in:
parent
63e581ac03
commit
3069e480a4
7 changed files with 163 additions and 9 deletions
69
lib/Render/Foot.rakumod
Normal file
69
lib/Render/Foot.rakumod
Normal file
|
@ -0,0 +1,69 @@
|
|||
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";
|
||||
];
|
||||
]
|
||||
]
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue