yggdrasil/components/skeletons/
assets_skeleton.rs1use dioxus::prelude::*;
6
7use crate::components::skeletons::atoms::SkeletonBox;
8
9#[component]
11pub fn AssetsSkeleton() -> Element {
12 rsx! {
13 div { class: "w-full max-w-7xl mx-auto space-y-6",
14 div { class: "space-y-2 mb-8",
16 SkeletonBox { class: "h-9 w-36 rounded-lg" }
17 SkeletonBox { class: "h-4 w-72 rounded" }
18 }
19
20 div { class: "flex flex-wrap items-end justify-between gap-4 mb-6",
22 div { class: "flex gap-2 border-b border-paper-border pb-2",
24 SkeletonBox { class: "h-8 w-16 rounded-full" }
25 SkeletonBox { class: "h-8 w-20 rounded-full" }
26 SkeletonBox { class: "h-8 w-20 rounded-full" }
27 }
28 div { class: "flex items-center gap-3 mb-6",
30 SkeletonBox { class: "h-9 w-56 rounded-2xl" }
31 SkeletonBox { class: "h-8 w-16 rounded-full" }
32 SkeletonBox { class: "h-8 w-16 rounded-full" }
33 }
34 }
35
36 div { class: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 gap-4",
38 for _ in 0..12 {
39 div { class: "aspect-square rounded-2xl border border-paper-border bg-paper-entry overflow-hidden p-2 flex flex-col justify-between",
40 SkeletonBox { class: "w-full flex-1 rounded-xl" }
41 div { class: "mt-2 flex justify-between items-center",
42 SkeletonBox { class: "h-3 w-20 rounded" }
43 SkeletonBox { class: "h-3 w-10 rounded" }
44 }
45 }
46 }
47 }
48 }
49 }
50}