less intrusive loading indicator

This commit is contained in:
Adam 2024-07-15 04:05:22 -04:00
parent 8a439026d3
commit 1883bce988

View file

@ -1,16 +1,27 @@
use leptos::*;
use crate::components::ui::containers::*; use crate::components::ui::containers::*;
use leptos::*;
#[component] #[component]
pub fn Skeleton() -> impl IntoView { pub fn Skeleton() -> impl IntoView {
view! { view! {
<Container>
<div class="flex animate-pulse"> <div class="flex animate-pulse">
<div class="mx-auto place-items-center h-64"> <div class="place-items-center mx-auto">
<code class="my-auto">"███████▒▒▒ 69%"</code> <p>Loading...</p>
</div> </div>
</div> </div>
</Container>
} }
} }
// #[component]
// pub fn Skeleton() -> impl IntoView {
// view! {
// <Container>
// <div class="flex animate-pulse">
// <div class="place-items-center mx-auto">
// <code class="my-auto">"███████▒▒▒ 69%"</code>
// </div>
// </div>
// </Container>
// }
// }
//