From c539c981916a4bdf528af58824bce38f5cbff7dc Mon Sep 17 00:00:00 2001 From: hexlocation Date: Sat, 5 Oct 2024 01:25:24 +0200 Subject: [PATCH] :: members section looked like trash. --- assets/css/global.css | 15 ++++++++------- templates/macros.html.tera | 10 ++++++++++ templates/members.html.tera | 9 ++++++--- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/assets/css/global.css b/assets/css/global.css index 52848df..df3b5b2 100644 --- a/assets/css/global.css +++ b/assets/css/global.css @@ -1,3 +1,4 @@ +/* I know everything looks absolutely trash :3 */ #top { margin-top: 2vw; margin-left: 15vw; @@ -11,6 +12,13 @@ font-family: "Jetbrains Mono"; src: url(/assets/ttf/JBM.ttf); } +.user-display { +} +.prefix { + display: inline; + margin-right: 5px; + font-size: 12px; +} :root { --text-color: #8941ad; --term-color: #4af626; @@ -33,9 +41,6 @@ hr { color: var(--term-color); } -/* - CSS styling for guestbook -*/ #entries { align-items: center; gap: 10px; @@ -91,10 +96,6 @@ label { float: left; } -/* - CSS styling for services page. -*/ - :root { --sin-padding: 5px; } diff --git a/templates/macros.html.tera b/templates/macros.html.tera index f05e7f3..6655393 100644 --- a/templates/macros.html.tera +++ b/templates/macros.html.tera @@ -8,3 +8,13 @@

{{description}}

{% endmacro service %} +{% macro user_display(username, role=0) %} + {% if role == 0 %} + {% set_global prefix = "

member

" %} + {% elif role == 1 %} + {% set_global prefix = "

friend

" %} + {% elif role == 2 %} + {% set_global prefix = "

admin

" %} + {% endif %} +
  • {{prefix | safe}}{{username}}
  • +{% endmacro user_display %} diff --git a/templates/members.html.tera b/templates/members.html.tera index 392cdca..9d0e056 100644 --- a/templates/members.html.tera +++ b/templates/members.html.tera @@ -1,9 +1,12 @@ +{% import "macros" as macros %} {% extends "base" %} {% block title %}members{% endblock title %} {% block content %} -Make sure to verify our PGP keys when communicating with us. +These are currently members of iwakura.rip, participating in some form. +If communicating with any of our members, please encrypt your message against their pgp key, if they have one. {% endblock content %}