From cab6efd92701f53dd41c5dbdf4d14651d78ad8d6 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 16 Jul 2023 17:22:44 -0400 Subject: xedium groundwork Signed-off-by: Xe Iaso --- lib/xesite_markdown/Cargo.toml | 5 +++-- lib/xesite_markdown/src/lib.rs | 6 +++--- lib/xesite_templates/Cargo.toml | 5 +++-- lib/xesite_templates/src/lib.rs | 6 +++--- 4 files changed, 12 insertions(+), 10 deletions(-) (limited to 'lib') diff --git a/lib/xesite_markdown/Cargo.toml b/lib/xesite_markdown/Cargo.toml index bc4abb5..ad84700 100644 --- a/lib/xesite_markdown/Cargo.toml +++ b/lib/xesite_markdown/Cargo.toml @@ -22,6 +22,7 @@ xesite_templates = { path = "../xesite_templates" } xesite_types = { path = "../xesite_types" } [dependencies.maud] -git = "https://github.com/Xe/maud" -rev = "a40596c42c7603cc4610bbeddea04c4bd8b312d9" +version = "0.25" +#git = "https://github.com/Xe/maud" +#rev = "a40596c42c7603cc4610bbeddea04c4bd8b312d9" features = ["axum"] diff --git a/lib/xesite_markdown/src/lib.rs b/lib/xesite_markdown/src/lib.rs index 40d85ab..96cdb09 100644 --- a/lib/xesite_markdown/src/lib.rs +++ b/lib/xesite_markdown/src/lib.rs @@ -121,11 +121,11 @@ pub fn render(inp: &str) -> Result { el.before( &format!( r#" -
-
+
+
{name} is {mood}
-
<{name}> "# +
<{name}> "# ), ContentType::Html, ); diff --git a/lib/xesite_templates/Cargo.toml b/lib/xesite_templates/Cargo.toml index dbfa1d3..eb7ba11 100644 --- a/lib/xesite_templates/Cargo.toml +++ b/lib/xesite_templates/Cargo.toml @@ -12,6 +12,7 @@ uuid = { version = "1", features = [ "v4" ] } xesite_types = { path = "../xesite_types" } [dependencies.maud] -git = "https://github.com/Xe/maud" -rev = "a40596c42c7603cc4610bbeddea04c4bd8b312d9" +version = "0.25" +#git = "https://github.com/Xe/maud" +#rev = "a40596c42c7603cc4610bbeddea04c4bd8b312d9" features = ["axum"] diff --git a/lib/xesite_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs index f5219d9..e097136 100644 --- a/lib/xesite_templates/src/lib.rs +++ b/lib/xesite_templates/src/lib.rs @@ -60,15 +60,15 @@ pub fn conv(name: String, mood: String, body: Markup) -> Markup { let name = name.replace("_", " "); html! { - .conversation { - ."conversation-standalone" { + ."conversation my-4 flex space-x-4 rounded-md border border-solid border-gray-200 bg-gray-100 p-3 dark:border-gray-700 dark:bg-gray-800" { + ."conversation-standalone flex h-16 w-16 shrink-0 items-center justify-center self-center overflow-hidden rounded-lg bg-gray-200 dark:bg-gray-700" { 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" { + ."conversation-chat min-w-0 self-center" { "<" a href={"/characters#" (name_lower)} { b { (name) } } "> " -- cgit v1.2.3