Blog nav reword #8

Merged
florian.richer merged 10 commits from blog_nav_rework into main 2024-01-12 23:13:05 +01:00
Showing only changes of commit bd9f35c993 - Show all commits

View file

@ -129,9 +129,18 @@ pub fn PostList() -> impl IntoView {
})
};
let filter_view = move || {
tag().and_then(|tag| Some(view! {
<div class="mx-auto max-w-3xl mb-5">
Tag sélectionné : <A class="tag" href="/posts".to_string()>{tag}<leptos_icons::Icon icon=icondata::IoCloseOutline class="scale-125 ml-1 inline" /></A>
</div>
}))
};
view! {
<Suspense fallback=move || view! { <Loading title="Chargement des posts...".to_string() /> }>
<Nav/>
{filter_view}
<main class="posts">
<div class="posts__cards">{posts_view}</div>
</main>