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 %} +