From 65a04270e9a7a394189edf0326f0834507636934 Mon Sep 17 00:00:00 2001 From: kayomn Date: Mon, 24 Jun 2024 12:09:14 +0100 Subject: [PATCH] Improve site layout and formatting --- static/base.css | 6 +-- templates/base.html | 36 ++++++++++++++- templates/index.html | 104 +++++++++++++++---------------------------- templates/page.html | 4 +- 4 files changed, 76 insertions(+), 74 deletions(-) diff --git a/static/base.css b/static/base.css index ec5ec2d..98a525b 100644 --- a/static/base.css +++ b/static/base.css @@ -33,7 +33,7 @@ body { overflow-y: scroll; } -body header { +body nav { display: flex; background: #EEE; padding: 5px 30px; @@ -88,13 +88,13 @@ body .columns > *:not(:last-child) { background: #111; } - body header { + body nav { background: #0C0C0C; } } @media (orientation: portrait), (max-width: 900px) { - body header { + body nav { justify-content: center; } } diff --git a/templates/base.html b/templates/base.html index 39fdd91..baccad4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -9,14 +9,46 @@ -
+ -
+
+
{% block content %}{% endblock content %} +
+ +
+

Projects

+
+
Website written by Me and powered by the Zola site generation tool.
+ + diff --git a/templates/index.html b/templates/index.html index d3f3c89..a8866b2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -78,11 +78,6 @@ {% endfor %} - -
-
Here's what I'm working on over at my Gitea instance.
-
-
- - {% endblock content %} diff --git a/templates/page.html b/templates/page.html index 60e9886..52aebc0 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,10 +1,10 @@ {% extends "base.html" %} {% block content %} - +
{{ page.content | safe }}
{% endblock content %}