-
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 page to shopping cart
- Loading branch information
1 parent
34e9820
commit 9792316
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
43 changes: 43 additions & 0 deletions
43
src/app/[locale]/(default)/storage/shopping-cart/loading.tsx
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,43 @@ | ||
import { SkeletonCard } from '@/components/storage/SkeletonCard'; | ||
import { Skeleton } from '@/components/ui/Skeleton'; | ||
|
||
export default function ShoppingCartSkeleton() { | ||
return ( | ||
<> | ||
<div className='my-4'> | ||
<Skeleton className='w-1/2 h-14 mx-auto rounded-full' /> | ||
<div className='my-4 flex flex-col items-center gap-2'> | ||
<Skeleton className='h-10 w-full' /> | ||
<Skeleton className='h-10 w-full' /> | ||
<Skeleton className='h-10 w-full' /> | ||
<Skeleton className='h-10 w-full' /> | ||
<Skeleton className='w-[250px] h-6 rounded-full' /> | ||
</div> | ||
<div className='flex gap-2 justify-center'> | ||
<Skeleton className='w-[200px] h-10 rounded-lg' /> | ||
<Skeleton className='w-[200px] h-10 rounded-lg' /> | ||
</div> | ||
<div className='my-6 space-y-4'> | ||
<Skeleton className='h-8 w-[250px] mx-auto' /> | ||
<Skeleton className='h-1 w-full' /> | ||
<div className='grid grid-cols-3 gap-2'> | ||
<div className='space-y-1'> | ||
<Skeleton className='h-6 w-[100px]' /> | ||
<Skeleton className='h-12 w-full' /> | ||
</div> | ||
<div className='space-y-1'> | ||
<Skeleton className='h-6 w-[100px]' /> | ||
<Skeleton className='h-12 w-full' /> | ||
</div> | ||
<div className='space-y-1'> | ||
<Skeleton className='h-6 w-[100px]' /> | ||
<Skeleton className='h-12 w-full' /> | ||
</div> | ||
</div> | ||
<Skeleton className='w-[300px] h-10 mx-auto' /> | ||
</div> | ||
<Skeleton className='w-[200px] h-10 mx-auto' /> | ||
</div> | ||
</> | ||
); | ||
} |