add footer

This commit is contained in:
blek 2023-09-30 02:15:22 +10:00
parent 1b763473d5
commit a52d410861
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 45 additions and 2 deletions

View File

@ -33,6 +33,8 @@ html, body {
--margin: 12px 24px; --margin: 12px 24px;
--margin-y: 12px; --margin-y: 12px;
--margin-x: 24px; --margin-x: 24px;
--footer-height: 60px;
} }
.header { .header {
@ -54,9 +56,11 @@ html, body {
.content { .content {
background: var(--view-color); background: var(--view-color);
border-top: 1px solid var(--header-sec-color); border-top: 1px solid var(--header-sec-color);
height: 100vh; border-bottom: 1px solid var(--header-sec-color);
border-radius: 12px 12px 0 0; min-height: calc(100vh - (var(--header-font-size) + (var(--header-padding-y) * 2)) - var(--footer-height) - 30px);
border-radius: 12px;
padding: var(--margin-y) 0; padding: var(--margin-y) 0;
box-shadow: 0 2px 1px #00000010;
} }
.content h1, .content h1,
.content h2, .content h2,
@ -119,6 +123,7 @@ p {
padding: var(--header-padding-y); padding: var(--header-padding-y);
border: 0px solid transparent; border: 0px solid transparent;
color: var(--accent-fg-color); color: var(--accent-fg-color);
text-decoration: none;
transition: 250ms ease; transition: 250ms ease;
} }
.btn:hover { .btn:hover {
@ -187,3 +192,22 @@ p {
margin-bottom: 28px; margin-bottom: 28px;
} }
} }
.footer {
width: 100%;
height: var(--footer-height);
}
.footer table {
height: 100%;
}
.footer td {
padding: var(--header-padding-y);
border-right: 1px solid var(--header-sec-color);
text-align: center;
}
.footer td .btn {
display: block;
padding: 8px;
/* width: 100%; */
/* height: 100%; */
}

View File

@ -20,5 +20,24 @@
<div class="content"> <div class="content">
{% block body %}{% endblock %} {% block body %}{% endblock %}
</div> </div>
<div class="footer">
<table width='100%'>
<tbody>
<tr>
<td>
Made with Rust
</td>
<td>
Released under GPLv3
</td>
<td>
<a href='https://git.blek.codes/blek/bfile' class='btn'>
Source code
</a>
</td>
</tr>
</tbody>
</table>
</div>
</body> </body>
</html> </html>