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:
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user