chore(web): slimmer footer, explore as page

This commit is contained in:
əlemi 2024-12-29 01:33:05 +01:00
parent 62311ed089
commit 68b217e648
Signed by: alemi
GPG key ID: A4895B84D311642C
3 changed files with 5 additions and 4 deletions

View file

@ -192,7 +192,7 @@ pub fn App() -> impl IntoView {
<Route path="about" view=AboutPage />
<Route path="config" view=move || view! { <ConfigPage setter=set_config /> } />
<Route path="dev" view=DebugPage />
<Route path="explore" view=DebugPage />
<Route path="actors/:id" view=ActorHeader > // TODO can we avoid this?
<Route path="" view=ActorPosts />
@ -222,7 +222,7 @@ pub fn App() -> impl IntoView {
</div>
<footer>
<div class="sep-top">
<span class="footer" >"\u{26fc} woven under moonlight :: "<a class="clean" href="https://join.upub.social/" target="_blank" >"μpub"</a>" :: FE v"{crate::VERSION}" :: BE v"{be_version}" :: "<a class="clean" href=format!("mailto:{CONTACT}")>contact</a>" :: "<a class="clean" href="/web/dev">dev</a>" :: "<a class="clean" href="javascript:window.scrollTo({top:0, behavior:'smooth'})">top</a></span>
<span class="footer" >"\u{26fc} woven under moonlight :: "<a class="clean" href="https://join.upub.social/" target="_blank" >"μpub"</a>" :: FE v"{crate::VERSION}" :: BE v"{be_version}" :: "<a class="clean" href="javascript:window.scrollTo({top:0, behavior:'smooth'})">top</a></span>
</div>
</footer>
}

View file

@ -45,6 +45,7 @@ pub fn Navigator(notifications: ReadSignal<u64>) -> impl IntoView {
<td class="w-50"><a href="/web/about"><input class="w-100" type="submit" value="about" /></a></td>
<td class="w-50"><a href="/web/config"><input class="w-100" type="submit" value="config" /></a></td>
</tr>
<tr><td colspan="2"><a href="/web/explore"><input class="w-100" type="submit" class:hidden=move || !auth.present() value="explore" /></a></td></tr>
</table>
}
}

View file

@ -43,7 +43,7 @@ pub fn DebugPage() -> impl IntoView {
<div class="mt-1" >
<form on:submit=move|ev| {
ev.prevent_default();
navigate(&format!("/web/dev?q={}", text.get()), NavigateOptions::default());
navigate(&format!("/web/explore?q={}", text.get()), NavigateOptions::default());
} >
<table class="align w-100">
<tr>
@ -138,7 +138,7 @@ fn DocumentNode(obj: serde_json::Value, #[prop(optional)] depth: usize) -> impl
serde_json::Value::String(s) => {
if s.starts_with("https://") || s.starts_with("http://") {
view! {
<a href=format!("/web/dev?q={s}")>{s}</a>
<a href=format!("/web/explore?q={s}")>{s}</a>
}.into_view()
} else {
let pretty_string = s