From e19ebe26ecd117a77c8fdda2e7667fca42160e1d Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Tue, 26 Sep 2023 22:06:05 -0400 Subject: stuff --- assets/css/main.css | 43 ++++++++++++++++++++++++++++++++++++++++ layouts/partials/footer.html | 47 ++++++++++++++++++++++++++++++++++++++++++++ layouts/partials/social.html | 16 +++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 layouts/partials/social.html diff --git a/assets/css/main.css b/assets/css/main.css index 75f2b9e..e49a669 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -7,4 +7,47 @@ main { display: flex; flex-direction: column; justify-content: stretch; +} + +footer { + background: #00000055; +} + +.flex { + display: flex; +} + +.flex.row { + flex-direction: row; +} + +.flex.col { + flex-direction: column; +} + +.footer-info { + width: 100%; + justify-content: center; +} + +.flex.footer-info { + gap: 1rem; +} + +.footer-info .flex.col { + min-width: 250px; +} + +footer { + position:relative; +} + +.copyright { + background: #00000055; + position: absolute; + left: 0; + bottom: 0; + width: 100%; + padding: 1rem; + text-align: center; } \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index eb1e7e7..d60e941 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,52 @@ \ No newline at end of file diff --git a/layouts/partials/social.html b/layouts/partials/social.html new file mode 100644 index 0000000..03645ad --- /dev/null +++ b/layouts/partials/social.html @@ -0,0 +1,16 @@ +{{ $social := .social }} +{{ $username := .username }} + +{{ $url := "" }} + +{{ if eq $social "github" }} + {{ $url = printf "https://github.com/%s" $username }} +{{ else if eq $social "linkedin" }} + {{ $url = printf "https://www.linkedin.com/in/%s" $username }} +{{ else }} + {{ $url = "#" }} +{{ end }} + + + {{ title $social }} + \ No newline at end of file -- cgit v1.1