add: forum posts ui

This commit is contained in:
trisua 2025-08-03 23:24:57 -04:00
parent ef029c59b3
commit 2be87c397d
90 changed files with 1459 additions and 1299 deletions

View file

@ -1,13 +1,13 @@
(text "{% extends \"root.html\" %} {% block body %}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
("style" "max-width: 48ch")
(h2
("class" "w-full text-center")
("class" "w_full text-center")
; block for title
(text "{% block title %}{% endblock %}"))
(div
("class" "card w-full flex flex-col gap-4 justify-center align-center")
("class" "card w_full flex flex_col gap_4 justify_center align-center")
; block for actual page content
(text "{% block content %}{% endblock %}"))
; small footer block (for switching context)

View file

@ -4,7 +4,7 @@
(text "{% endblock %} {% block title %}Connection{% endblock %} {% block content %}")
(div
("class" "w-full flex-col gap-2")
("class" "w_full flex_col gap_2")
("id" "status")
; display loading text because we have to wait for the data to update on remote
(b

View file

@ -4,13 +4,13 @@
(text "{% endblock %} {% block title %}Login{% endblock %} {% block content %}")
(form
("class" "w-full flex flex-col gap-4")
("class" "w_full flex flex_col gap_4")
("onsubmit" "login(event)")
(div
("id" "flow_1")
("style" "display: contents")
(div
("class" "flex flex-col gap-1")
("class" "flex flex_col gap_1")
(label
("for" "username")
(b
@ -22,7 +22,7 @@
("name" "username")
("id" "username")))
(div
("class" "flex flex-col gap-1")
("class" "flex flex_col gap_1")
(label
("for" "username")
(b
@ -37,7 +37,7 @@
("id" "flow_2")
("style" "display: none")
(div
("class" "flex flex-col gap-1")
("class" "flex flex_col gap_1")
(label
("for" "totp")
(b
@ -113,7 +113,7 @@
(text "{% endblock %} {% block footer %}")
(span
("class" "small w-full text-center")
("class" "small w_full text-center")
(text "Or, ")
(a
("href" "/auth/register")

View file

@ -8,10 +8,10 @@
("defer" ""))
(form
("class" "w-full flex flex-col gap-4")
("class" "w_full flex flex_col gap_4")
("onsubmit" "register(event)")
(div
("class" "flex flex-col gap-1")
("class" "flex flex_col gap_1")
(label
("for" "username")
(b
@ -23,7 +23,7 @@
("name" "username")
("id" "username")))
(div
("class" "flex flex-col gap-1")
("class" "flex flex_col gap_1")
(label
("for" "password")
(b
@ -36,7 +36,7 @@
("id" "password")))
(text "{% if config.security.enable_invite_codes -%}")
(div
("class" "flex flex-col gap-1")
("class" "flex flex_col gap_1")
("oninput" "check_should_show_purchase(event)")
(label
("for" "invite_code")
@ -65,14 +65,14 @@
(text "{%- endif %}")
(hr)
(div
("class" "card-nest w-full")
("class" "card_nest w_full")
(div
("class" "card small flex items-center gap-2")
("class" "card small flex items_center gap_2")
(text "{{ icon \"scroll-text\" }}")
(b
(text "Policies")))
(div
("class" "card secondary flex flex-col gap-2")
("class" "card secondary flex flex_col gap_2")
(span
(text "By continuing, you agree to the following policies:"))
(ul
@ -85,12 +85,12 @@
("href" "{{ config.policies.privacy }}")
(text "Privacy policy"))))
(div
("class" "flex items-center gap-2")
("class" "flex items_center gap_2")
(input
("type" "checkbox")
("name" "policy_consent")
("id" "policy_consent")
("class" "w-content")
("class" "w_content")
("required" ""))
(label
("for" "policy_consent")
@ -101,7 +101,7 @@
(hr)
(text "{% if config.security.enable_invite_codes -%}")
(div
("class" "w-full flex gap-2 justify-between")
("class" "w_full flex gap_2 justify_between")
("ui_ident" "purchase_account")
(button
@ -115,7 +115,7 @@
(icon (text "circle-question-mark"))))
(div
("class" "hidden lowered card w-full no_p_margin")
("class" "hidden lowered card w_full no_p_margin")
("ui_ident" "purchase_help")
(b (text "What does \"Purchase account\" mean?"))
(p (text "Your account will be created, but you cannot use it until you activate it for {{ config.stripe.price_texts.supporter }}."))
@ -170,7 +170,7 @@
(text "{% endblock %} {% block footer %}")
(span
("class" "small w-full text-center")
("class" "small w_full text-center")
(text "Or, ")
(a
("href" "/auth/login")

View file

@ -4,7 +4,7 @@
(text "{% endblock %} {% block title %}Connection{% endblock %} {% block content %}")
(div
("class" "w-full flex-col gap-2")
("class" "w_full flex_col gap_2")
("id" "status")
(b
(text "Working...")))