aboutsummaryrefslogtreecommitdiff
path: root/lib/xesite_templates
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-09-09 22:37:12 -0400
committerXe Iaso <me@xeiaso.net>2023-09-09 22:37:12 -0400
commitf31efd7579b4841d85d6054606bdd86a54dc142b (patch)
treee599f00f54ffd3710e1cab5cf4fe84eb2a09f506 /lib/xesite_templates
parent8876dc2340b5b04a8c72bb06e92693c35cb97a07 (diff)
downloadxesite-f31efd7579b4841d85d6054606bdd86a54dc142b.tar.xz
xesite-f31efd7579b4841d85d6054606bdd86a54dc142b.zip
lib/xesite_templates: use tailwind CSS
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lib/xesite_templates')
-rw-r--r--lib/xesite_templates/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/xesite_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs
index de38177..85063c1 100644
--- a/lib/xesite_templates/src/lib.rs
+++ b/lib/xesite_templates/src/lib.rs
@@ -59,15 +59,15 @@ pub fn conv(name: String, mood: String, body: Markup) -> Markup {
let name = name.replace('_', " ");
html! {
- .conversation {
- ."conversation-standalone" {
+ ."my-4 flex space-x-4 rounded-md border border-solid border-gray-light bg-bg-2 p-3 dark:border-grayDark-dark dark:bg-bgDark2" {
+ ."flex h-16 w-16 shrink-0 items-center justify-center self-center overflow-hidden rounded-lg" {
picture {
source type="image/avif" srcset={"https://cdn.xeiaso.net/file/christine-static/stickers/" (name_lower) "/" (mood) ".avif"};
source type="image/webp" srcset={"https://cdn.xeiaso.net/file/christine-static/stickers/" (name_lower) "/" (mood) ".webp"};
img style="max-height:4.5rem" alt={(name) " is " (mood)} loading="lazy" src={"https://cdn.xeiaso.net/file/christine-static/stickers/" (name_lower) "/" (mood) ".png"};
}
}
- ."conversation-chat" {
+ ."min-w-0 self-center" {
"<"
a href={"/characters#" (name_lower)} { b { (name) } }
"> "