Added footer to public page. Leptos upgraded to 0.6.13

This commit is contained in:
2024-09-04 18:10:29 +02:00
parent 9f9b716781
commit a5cfc96814
6 changed files with 1016 additions and 817 deletions
+14
View File
@@ -62,6 +62,19 @@ impl DialogHelper {
}
}
#[component]
fn app_footer() -> impl IntoView {
let loc = use_location();
view! {
<footer class="content-footer footer bg-footer-theme" style={move || if loc.pathname.get().starts_with("/admin") {"display: none;"} else {"display: block;"}}>
<div class="mb-2 mb-md-0" >
<a href="https://rezervovator.cz" target="_blank"><img src="/rezervovator_l.svg" width="110"/></a> {format!(" v {}", env!("CARGO_PKG_VERSION"))}
</div>
</footer>
}
}
#[component]
pub fn App() -> impl IntoView {
// Provides context that manages stylesheets, titles, meta tags, etc.
@@ -111,6 +124,7 @@ pub fn App() -> impl IntoView {
}/>
</Routes>
</main>
<AppFooter/>
</Router>
}
}