From 64c955727529d9dd4275c9508008c5808014afc4 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Fri, 8 May 2026 17:43:38 +0200 Subject: multiple sites on root domain --- main/assets/css/main.css | 40 ++++++++++++++++++++++++++++++----- main/templates/main_base.html.j2 | 24 ++++++++------------- main/templates/main_index.html.j2 | 4 ++++ main/templates/main_neighbors.html.j2 | 14 ++++++++++++ main/templates/main_sidebar.html.j2 | 8 +++++++ 5 files changed, 70 insertions(+), 20 deletions(-) create mode 100644 main/templates/main_index.html.j2 create mode 100644 main/templates/main_neighbors.html.j2 create mode 100644 main/templates/main_sidebar.html.j2 (limited to 'main') diff --git a/main/assets/css/main.css b/main/assets/css/main.css index 0113a27..64cdf6a 100644 --- a/main/assets/css/main.css +++ b/main/assets/css/main.css @@ -13,10 +13,13 @@ a, p { color: white; } -main, div.navbar_main { +main, header, div.navbar_main { + align-items: center; +} + +main, header, div.navbar_main, aside { display: flex; flex-flow: column; - align-items: center; margin: auto; background-color: #666666dd; } @@ -25,12 +28,39 @@ div.navbar_parent { padding: 0.2rem; } +div.main_parent { + padding: 0 !important; +} + +main { + padding-left: 15px; + padding-right: 15px; +} + @media (min-width: 768px) { main, header { - padding: 0 5rem 0 5rem !important; + padding: 0 2rem 0 2rem !important; + } + + div.main_parent { + padding: 0 0.8rem 0 0 !important; } } -main, header { - margin-top: 0.5rem; +main, header, aside { + margin-top: 0.8rem; } + +.icon-text { + display: flex; + flex-flow: row; + align-items: center; + margin-top: 0.2rem; + margin-bottom: 0.2rem; +} + +.icon-text > :first-child { + margin-right: 0.3rem; + width: 32px; + height: 32px; +} \ No newline at end of file diff --git a/main/templates/main_base.html.j2 b/main/templates/main_base.html.j2 index b589ebe..6859389 100644 --- a/main/templates/main_base.html.j2 +++ b/main/templates/main_base.html.j2 @@ -7,25 +7,19 @@
-
-
-

This is page is work in progress. Meanwhile check my stuff on the navbar at the top of the page.

-

Visit these sites, they have way cooler (and more finished) webpages than me:

-
- tar.dev -
-

A way cooler neighbor page coming soon... (I swear.)

-
-

Fanlistings I'm part of:

-
- http://fan.after-death.org/crows - Mass Effect series fanlisting -
-
+
+
+ {% block content required %}{% endblock %} +
+
+
diff --git a/main/templates/main_index.html.j2 b/main/templates/main_index.html.j2 new file mode 100644 index 0000000..50f6b9d --- /dev/null +++ b/main/templates/main_index.html.j2 @@ -0,0 +1,4 @@ +{% extends "main_base.html.j2" %} +{% block content %} +

This is page is work in progress. Meanwhile check my stuff on the navbar at the top of the page.

+{% endblock %} diff --git a/main/templates/main_neighbors.html.j2 b/main/templates/main_neighbors.html.j2 new file mode 100644 index 0000000..dd81617 --- /dev/null +++ b/main/templates/main_neighbors.html.j2 @@ -0,0 +1,14 @@ +{% extends "main_base.html.j2" %} +{% block content %} +

Visit these sites, they have way cooler (and more finished) webpages than me:

+
+ tar.dev +
+

A way cooler neighbor page coming soon... (I swear.)

+
+

Fanlistings I'm part of:

+
+ http://fan.after-death.org/crows + Mass Effect series fanlisting +
+{% endblock %} diff --git a/main/templates/main_sidebar.html.j2 b/main/templates/main_sidebar.html.j2 new file mode 100644 index 0000000..05ab83d --- /dev/null +++ b/main/templates/main_sidebar.html.j2 @@ -0,0 +1,8 @@ + + + Home + + + + Neighbors + \ No newline at end of file -- cgit v1.3