-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add loading animation to storage page
- Loading branch information
1 parent
a3a95c8
commit 3507f29
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { SkeletonCard } from '@/components/storage/SkeletonCard'; | ||
import { Skeleton } from '@/components/ui/Skeleton'; | ||
|
||
export default function StorageSkeleton() { | ||
return ( | ||
<> | ||
<div className='my-4 flex flex-col justify-center gap-2 lg:flex-row'> | ||
<Skeleton className='h-10 w-full' /> | ||
<Skeleton className='h-10 w-full lg:w-[250px]' /> | ||
<Skeleton className='h-10 w-full lg:w-[250px]' /> | ||
</div> | ||
<div className='grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4'> | ||
<SkeletonCard /> | ||
<SkeletonCard /> | ||
<SkeletonCard /> | ||
<SkeletonCard /> | ||
<SkeletonCard /> | ||
<SkeletonCard /> | ||
<SkeletonCard /> | ||
<SkeletonCard /> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Skeleton } from '@/components/ui/Skeleton'; | ||
|
||
export function SkeletonCard() { | ||
return ( | ||
<div className='flex h-[350px] flex-col gap-5'> | ||
<div className='flex flex-col items-center justify-center gap-2'> | ||
<Skeleton className='h-[192px] w-[192px] rounded-lg' /> | ||
<Skeleton className='h-[24px] w-[120px] rounded-full' /> | ||
<Skeleton className='h-[14px] w-[70px] rounded-full' /> | ||
</div> | ||
<div className='flex items-center justify-center gap-2'> | ||
<Skeleton className='h-[14px] w-[70px] rounded-full' /> | ||
<Skeleton className='h-8 w-[100px] rounded-lg' /> | ||
</div> | ||
</div> | ||
); | ||
} |