yggdrasil/components/skeletons/
post_card_skeleton.rs1use dioxus::prelude::*;
6
7use crate::components::skeletons::atoms::SkeletonBox;
8
9#[component]
13pub fn PostCardSkeleton() -> Element {
14 rsx! {
15 article { class: "mb-12 flex flex-col bg-[var(--color-paper-entry)] rounded-[2rem] border border-transparent overflow-hidden",
16 div { class: "p-8 flex flex-col gap-3",
17 SkeletonBox { class: "h-7 w-3/4 rounded" }
19 SkeletonBox { class: "h-4 w-full rounded" }
21 SkeletonBox { class: "h-4 w-5/6 rounded" }
22 div { class: "flex flex-wrap items-center gap-3 mt-4",
24 SkeletonBox { class: "h-3.5 w-20 rounded" }
25 SkeletonBox { class: "h-3.5 w-1 rounded" }
26 SkeletonBox { class: "h-3.5 w-16 rounded" }
27 }
28 }
29 }
30 }
31}