Repos / pytaku / ee05fb279f
commit ee05fb279f15045a8cd80daf784018bc27641fe3
Author: Bùi Thành Nhân <hi@imnhan.com>
Date: Sat Aug 8 15:50:11 2020 +0700
add footer
diff --git a/pyproject.toml b/pyproject.toml
index aaee76d..f4b556e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pytaku"
-version = "0.2.2"
+version = "0.2.3"
description = ""
authors = ["Bùi Thành Nhân <hi@imnhan.com>"]
license = "AGPL-3.0-only"
diff --git a/src/pytaku/static/base.css b/src/pytaku/static/base.css
index 2599471..6307f64 100644
--- a/src/pytaku/static/base.css
+++ b/src/pytaku/static/base.css
@@ -172,7 +172,6 @@ .links a:hover {
}
.content {
- margin: auto;
padding: var(--body-padding);
}
.content > * {
@@ -180,3 +179,25 @@ .content > * {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
+
+footer {
+ padding: 1rem var(--body-padding);
+ background-color: #eee;
+ line-height: 1.5em;
+}
+
+/* sticky footer */
+html,
+body {
+ height: 100%;
+}
+body {
+ display: flex;
+ flex-direction: column;
+}
+.content {
+ flex: 1 0 auto;
+}
+footer {
+ flex-shrink: 0;
+}
diff --git a/src/pytaku/templates/base.html b/src/pytaku/templates/base.html
index d3363f9..4f23664 100644
--- a/src/pytaku/templates/base.html
+++ b/src/pytaku/templates/base.html
@@ -66,6 +66,17 @@
{% block content %}
{% endblock %}
</div>
+
+ <footer>
+ <p>Pytaku is <a href="https://git.sr.ht/~nhanb/pytaku">free and open source software</a>.</p>
+ <p>
+ <strong>This is a test instance.</strong>
+ Database may be wiped. Bugs may be present.<br>
+ Your favorite mangaka may never recover from his
+ <a href="https://junk.imnhan.com/hunter_x_idol.jpg">idol addiction</a>
+ and your favorite series may never finish.
+ </p>
+ </footer>
</body>
</html>