fix(web): trailing slashes and better about

This commit is contained in:
əlemi 2024-04-16 08:19:09 +02:00
parent d1a8b1a74b
commit 3abcd18c37
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 7 additions and 2 deletions

View file

@ -364,7 +364,12 @@ pub fn InlineActivity(activity: serde_json::Value) -> impl IntoView {
#[component]
pub fn About() -> impl IntoView {
view! {
<p>pick a timeline to start browsing</p>
<div class="ml-1">
<div class="tl-header w-100 center mb-s" >landing</div>
<div class="boxscroll mt-s mb-s" >
nothing to see here! pick a timeline to start browsing
</div>
</div>
}
}

View file

@ -43,6 +43,7 @@ fn main() {
<hr />
<div class="container" >
<Router // TODO maybe set base="/web" ?
trailing_slash=TrailingSlash::Redirect
fallback=move || view! {
<div class="center">
<h3>nothing to see here!</h3>
@ -79,7 +80,6 @@ fn main() {
<Route path="/web/objects/:id" view=ObjectPage />
<Route path="/" view=move || view! { <Redirect path="/web" /> } />
<Route path="/web/" view=move || view! { <Redirect path="/web" /> } />
</Routes>
</div>
</div>