1
0
Fork 0
forked from alemi/upub

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