less intrusive loading indicator
This commit is contained in:
parent
8a439026d3
commit
1883bce988
1 changed files with 18 additions and 7 deletions
|
@ -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="place-items-center mx-auto">
|
||||||
<div class="mx-auto place-items-center h-64">
|
<p>Loading...</p>
|
||||||
<code class="my-auto">"███████▒▒▒ 69%"</code>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// #[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>
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue