From 9e3f9bcdbb034f1f33dbf9258c3c1d6adc564d2c Mon Sep 17 00:00:00 2001 From: teddit Date: Mon, 28 Dec 2020 21:45:17 +0100 Subject: [PATCH] add footer #79 --- static/css/styles.css | 18 ++++++++++++++++++ views/about.pug | 1 + views/comment.pug | 11 ----------- views/includes/footer.pug | 2 ++ views/index.pug | 3 ++- views/post.pug | 2 +- views/preferences.pug | 1 + views/privacypolicy.pug | 1 + views/search.pug | 1 + views/subreddit.pug | 2 +- views/user.pug | 1 + 11 files changed, 29 insertions(+), 14 deletions(-) delete mode 100644 views/comment.pug create mode 100644 views/includes/footer.pug diff --git a/static/css/styles.css b/static/css/styles.css index 11ff476..a95fb5f 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -180,6 +180,12 @@ body.dark #search form input[type="text"] { background: #0f0f0f; color: white; } +body.dark footer { + background: #2f2f2f; +} +body.dark footer a { + color: #999; +} a { color: var(--linkcolor); text-decoration: none; @@ -446,6 +452,18 @@ input[type="submit"]:hover, cursor: pointer; text-decoration: none; } +footer { + padding: 30px 0px 30px 20px; + margin: 60px 0px 0px; + background: #e1e1e1; + float: left; + width: calc(100% - 20px); +} +footer a { + color: #646464; + font-size: 0.85rem; + text-decoration: underline; +} /* SUBREDDIT LINKS */ #links { float: left; diff --git a/views/about.pug b/views/about.pug index 6587536..db35a3f 100644 --- a/views/about.pug +++ b/views/about.pug @@ -25,3 +25,4 @@ html a(href="https://en.wikipedia.org/wiki/Piratbyr%C3%A5n#Kopimi", target="_blank") img(src="kopimi.gif") p.version v.0.0.8 + include includes/footer.pug diff --git a/views/comment.pug b/views/comment.pug deleted file mode 100644 index 16ae394..0000000 --- a/views/comment.pug +++ /dev/null @@ -1,11 +0,0 @@ -.comment - .meta - p.author #{data.author} - p.points #{data.ups} - p.created #{data.created} - .entry - .body - | #{data.body} - .links - a(href="#") - | permalink diff --git a/views/includes/footer.pug b/views/includes/footer.pug new file mode 100644 index 0000000..212866d --- /dev/null +++ b/views/includes/footer.pug @@ -0,0 +1,2 @@ +footer + a(href="https://codeberg.org/teddit/teddit", target="_blank") https://codeberg.org/teddit/teddit/ diff --git a/views/index.pug b/views/index.pug index d313ac2..d32c80c 100644 --- a/views/index.pug +++ b/views/index.pug @@ -114,4 +114,5 @@ html if json.info.before && !subreddit_front a(href="/r/all/" + sortby + "?t="+ (past ? past : '') +"&before=" + json.info.before + "") ‹ prev if json.info.after - a(href="/r/all/" + sortby + "?t=" + (past ? past : '') + "&after=" + json.info.after + "") next › + a(href="/r/all/" + sortby + "?t=" + (past ? past : '') + "&after=" + json.info.after + "") next › + include includes/footer.pug diff --git a/views/post.pug b/views/post.pug index ca908c7..ebe904d 100644 --- a/views/post.pug +++ b/views/post.pug @@ -181,4 +181,4 @@ html li(class=sortby === 'qa' ? 'active' : '') a(href="?sort=qa") Q&A != comments - + include includes/footer.pug diff --git a/views/preferences.pug b/views/preferences.pug index 1f758cb..cfc27db 100644 --- a/views/preferences.pug +++ b/views/preferences.pug @@ -34,3 +34,4 @@ html small(class="notice") Preferences are stored client-side using cookies without any personal information. input(type="submit", value="Save preferences") a(href="/resetprefs", class="btn") Reset preferences + include includes/footer.pug diff --git a/views/privacypolicy.pug b/views/privacypolicy.pug index 4c48682..803a70c 100644 --- a/views/privacypolicy.pug +++ b/views/privacypolicy.pug @@ -29,3 +29,4 @@ html h2 Data stored in your browser p This website provides an option to store site preferences, such as the theme without an account. Using this feature will store a cookie in the visitor's browser containing their preferences. This cookie is sent on every request and does not contain any identifying information. p You can remove this data from your browser by using your browser's cookie-related controls to delete the data. + include includes/footer.pug diff --git a/views/search.pug b/views/search.pug index 9bcd3f1..f425796 100644 --- a/views/search.pug +++ b/views/search.pug @@ -123,3 +123,4 @@ html a(href="?q=" + q + "&restrict_sr=" + restrict_sr + "&before=" + json.before + "") ‹ prev if json.after a(href="?q=" + q + "&restrict_sr=" + restrict_sr + "&after=" + json.after + "") next › + include includes/footer.pug diff --git a/views/subreddit.pug b/views/subreddit.pug index 12d68f1..4ed889c 100644 --- a/views/subreddit.pug +++ b/views/subreddit.pug @@ -168,4 +168,4 @@ html each subreddit in subreddits li a(href="/r/" + subreddit + "") #{subreddit} - + include includes/footer.pug diff --git a/views/user.pug b/views/user.pug index 3938cc4..971bc07 100644 --- a/views/user.pug +++ b/views/user.pug @@ -135,3 +135,4 @@ html br p(title="" + toUTCString(data.created) + "") account created: #{toDateString(data.created)} p verified: #{(data.verified) ? "yes" : "no" } + include includes/footer.pug