Add a footer

main
Charlotte Som 2021-07-15 06:21:41 +01:00
parent 39576b52e1
commit 9a57e6405a
4 changed files with 51 additions and 3 deletions

View File

@ -55,9 +55,6 @@ fn main() {
let mut watcher = watcher(tx, Duration::from_millis(100)).unwrap(); let mut watcher = watcher(tx, Duration::from_millis(100)).unwrap();
watcher.watch("./src", RecursiveMode::Recursive).unwrap(); watcher.watch("./src", RecursiveMode::Recursive).unwrap();
println!();
log_info("Watching…\n");
loop { loop {
match rx.recv() { match rx.recv() {
Ok(_) => build(), Ok(_) => build(),

View File

@ -17,9 +17,27 @@ a {
border-bottom: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
} }
html, body {
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
header, main, footer { header, main, footer {
width: 100%;
max-width: 90ch; max-width: 90ch;
margin: 0 auto; margin: 0 auto;
padding: 1em;
}
main {
flex: 1;
margin-bottom: 2em;
} }
header { header {
@ -44,3 +62,25 @@ header img {
li { li {
line-height: 1.6em; line-height: 1.6em;
} }
footer nav ul {
list-style: none;
display: flex;
flex-direction: row;
margin: 0;
padding: 0;
}
footer nav ul > li {
display: inline;
line-height: 1rem;
padding-bottom: 0.15em;
}
footer nav ul > li + li {
border-inline-start: 1px solid var(--fg);
padding-inline-start: 1ch;
margin-inline-start: 1ch;
}

View File

@ -0,0 +1,9 @@
<footer>
<nav>
<ul>
<li><strong class="brand">lavender software ltd</strong></li>
<li><a href="https://git.lavender.software/lavender/lavender.software">source code</a></li>
<!-- <li><a href="/about/">about us</a></li> -->
</ul>
</nav>
</footer>

View File

@ -53,6 +53,8 @@
</section> </section>
</main> </main>
{% include "_footer.html.j2" %}
<script async src="/assets/main_page/confetti.js"></script> <script async src="/assets/main_page/confetti.js"></script>
</body> </body>
</html> </html>