Skip to content

Commit

Permalink
feat: Add loading page to shopping cart
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroWave022 committed Sep 20, 2024
1 parent 34e9820 commit 9792316
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/app/[locale]/(default)/storage/shopping-cart/loading.tsx
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>
</>
);
}

0 comments on commit 9792316

Please sign in to comment.