Added footer to public page. Leptos upgraded to 0.6.13
This commit is contained in:
+14
@@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user