Skip to content

Commit 3d2d2eb

Browse files
atjnkrestenlaust
andauthored
Add a footer (#525)
Co-authored-by: Kresten Laust <[email protected]>
1 parent 28f5042 commit 3d2d2eb

File tree

2 files changed

+41
-13
lines changed

2 files changed

+41
-13
lines changed

stregsystem/static/stregsystem/stregsystem.css

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
body {
2-
color: black;
3-
background-color: white;
2+
color: black;
3+
background-color: white;
4+
margin: 0;
5+
display: flex;
6+
flex-direction: column;
7+
min-height: 100vh;
48
}
59

610
header {
@@ -10,6 +14,7 @@ header {
1014
column-gap: 4vw;
1115
text-align: center;
1216
place-items: center;
17+
border-bottom: solid grey 1.5px;
1318

1419
& .left {
1520
justify-self: start;
@@ -19,6 +24,10 @@ header {
1924
}
2025
}
2126

27+
#base-content {
28+
flex: 1;
29+
}
30+
2231
main {
2332
padding: 1em;
2433

@@ -140,6 +149,21 @@ table h2, table h3 {
140149
image-rendering: pixelated;
141150
}
142151

152+
footer {
153+
text-align: center;
154+
border-top: solid grey 1.5px;
155+
156+
#footer-notes {
157+
& li {
158+
display: inline;
159+
160+
& ~ li::before {
161+
content: '• ';
162+
}
163+
}
164+
}
165+
}
166+
143167
@keyframes blink-frame {
144168
0%, 100% {
145169
opacity: 1;

stregsystem/templates/stregsystem/base.html

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,23 @@ <h1>
4040
<input type="button" onclick="location.href='/signup'" value="Tilmeld" tabindex="12"/>
4141
</div>
4242
</header>
43-
<hr>
44-
43+
<div id="base-content">
4544
{% block content %}{% endblock %}
46-
47-
<hr>
48-
49-
<div id="news">
50-
{% block news %}
51-
{% if news %}
52-
<marquee><b>{{news.text}}</b></marquee>
53-
{% endif %}
54-
{% endblock %}
5545
</div>
46+
<footer>
47+
<div id="news">
48+
{% block news %}
49+
{% if news %}
50+
<marquee><b>{{news.text}}</b></marquee>
51+
{% endif %}
52+
{% endblock %}
53+
</div>
54+
<ul id="footer-notes">
55+
<li>Skabt med ☕ og 🖤 af Fklubben</li>
56+
<li><a target="_blank" href="https://fklub.dk/tos">Terms of Service</a></li>
57+
<li><a target="_blank" href="https://github.com/f-klubben/stregsystemet">Se koden</a></li>
58+
</ul>
59+
</footer>
5660
{% theme_content %}
5761
</body>
5862
</html>

0 commit comments

Comments
 (0)