summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2022-05-24 17:47:07 -0230
committerSam Anthony <sam@samanthony.xyz>2022-05-24 17:47:07 -0230
commit05c0326c12d64995b6d7047dd2cae07e997539bd (patch)
treee4598ced6e3a5c7993b684bc86cce22669292332
parentd1e4cb14f745298316095c6fb064f00f67bcdf88 (diff)
downloadsamanthony.xyz-05c0326c12d64995b6d7047dd2cae07e997539bd.zip
add footer
-rw-r--r--htdocs/base.html9
-rw-r--r--htdocs/css/style.css19
2 files changed, 27 insertions, 1 deletions
diff --git a/htdocs/base.html b/htdocs/base.html
index 7a3c97f..f96c9c7 100644
--- a/htdocs/base.html
+++ b/htdocs/base.html
@@ -33,5 +33,14 @@
<main>
{{ template "body_content" }}
</main>
+ <footer>
+ <hr>
+ <p>Copyright 2022 Sam Anthony</p>
+ <p>
+ samanthony.xyz is free software, licensed under the
+ <a href="https://www.gnu.org/licenses/gpl.txt">
+ GNU GPL.
+ </a>
+ </p>
</body>
</html>
diff --git a/htdocs/css/style.css b/htdocs/css/style.css
index 7403843..58e001f 100644
--- a/htdocs/css/style.css
+++ b/htdocs/css/style.css
@@ -4,7 +4,13 @@
--highlight-color: #4acaa4;
}
+html { height: 100%; }
+
body {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+
background-color: var(--bg-color);
color: var(--fg-color);
@@ -12,8 +18,9 @@ body {
}
main {
- margin: auto;
+ margin-bottom: auto;
max-width: 80em;
+
padding-left: 1em;
padding-right: 1em;
}
@@ -65,3 +72,13 @@ nav a {
nav a:first-child .label { font-weight: bold; }
nav .label { font-size: 0.7em; }
nav .this-section { font-style: italic; }
+
+/* Footer */
+footer {
+ background-color: var(--highlight-color);
+ text-align: center;
+}
+footer a {
+ color: var(--fg-color);
+ font-style: italic;
+}