From 24a647a815d54c8925bc2543849d32bb5a1d0f85 Mon Sep 17 00:00:00 2001 From: zp6 <373669493@qq.com> Date: Fri, 15 May 2026 23:59:15 +0800 Subject: [PATCH] Add frontend/components/ui/skeleton.tsx --- frontend/components/ui/skeleton.tsx | 59 +++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 frontend/components/ui/skeleton.tsx diff --git a/frontend/components/ui/skeleton.tsx b/frontend/components/ui/skeleton.tsx new file mode 100644 index 000000000..cd31382f1 --- /dev/null +++ b/frontend/components/ui/skeleton.tsx @@ -0,0 +1,59 @@ +import { cn } from '@/lib/utils' + +interface SkeletonProps { + className?: string +} + +export function Skeleton({ className }: SkeletonProps) { + return ( +
+ ) +} + +export function BountyCardSkeleton() { + return ( +
+ + +
+ + +
+
+ + +
+
+ ) +} + +export function LeaderboardRowSkeleton() { + return ( +
+ + +
+ + +
+ ) +} + +export function ProfileSectionSkeleton() { + return ( +
+
+ +
+ + +
+
+
+ + + +
+
+ ) +}