Banner style is no longer a generated file, public page gets appearance as CSS variables. Fixes #13

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 21:42:00 +02:00
co-authored by Claude Opus 5.5
parent 5683acc101
commit 1a1688d322
19 changed files with 132 additions and 148 deletions
+3 -2
View File
@@ -91,11 +91,12 @@ pub fn appearance() -> impl IntoView {
app_edit.set(app.clone());
let has_banner = app.banner.is_some();
let title = app.title.clone().unwrap_or_default();
let style = app.banner_style();
view! {
<div>
<Show when=move || has_banner>
<div class="header_banner">
<h1 class="header_banner">{title.clone()}</h1>
<div class="public-banner" style=style.clone()>
<h1 class="public-banner-title">{title.clone()}</h1>
</div>
</Show>
<div>
+4 -3
View File
@@ -145,15 +145,16 @@ pub fn Public() -> impl IntoView {
Ok(a) => {
let has_banner = a.banner.is_some();
let title = a.title.clone().unwrap_or_default();
let style = a.banner_style();
view! {
<div>
<Show when=move || has_banner>
<div class="header_banner">
<h1 class="header_banner">{title.clone()}</h1>
<div class="public-banner" style=style.clone()>
<h1 class="public-banner-title">{title.clone()}</h1>
</div>
</Show>
<div>
<div class="header_banner_text" inner_html={a.text.unwrap_or("".to_string())}>
<div class="public-banner-text" inner_html={a.text.unwrap_or("".to_string())}>
</div>
</div>