add footer #79

This commit is contained in:
teddit 2020-12-28 21:45:17 +01:00
parent dbf1381b43
commit 9e3f9bcdbb
11 changed files with 29 additions and 14 deletions

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,2 @@
footer
a(href="https://codeberg.org/teddit/teddit", target="_blank") https://codeberg.org/teddit/teddit/

View File

@ -115,3 +115,4 @@ html
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
include includes/footer.pug

View File

@ -181,4 +181,4 @@ html
li(class=sortby === 'qa' ? 'active' : '')
a(href="?sort=qa") Q&A
!= comments
include includes/footer.pug

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -168,4 +168,4 @@ html
each subreddit in subreddits
li
a(href="/r/" + subreddit + "") #{subreddit}
include includes/footer.pug

View File

@ -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