All files / src/components/shared/card/card-skeleton index.tsx

0% Statements 0/46
0% Branches 0/1
0% Functions 0/1
0% Lines 0/46

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47                                                                                             
interface CardSkeletonProps {
  showButtons: boolean;
}

export const CardSkeleton = ({ showButtons }: CardSkeletonProps) => {
  return (
    <div className='bg-mono-white flex w-full animate-pulse rounded-3xl p-4 shadow-sm'>
      <div className='flex w-full min-w-0 gap-4'>
        <div className='flex flex-col justify-between'>
          <div className='h-32 w-32 rounded-xl bg-gray-200' />
          <div className='mt-3 flex items-center gap-2'>
            <div className='h-6 w-6 rounded-full bg-gray-200' />
            <div className='h-4 w-16 rounded bg-gray-200' />
          </div>
          {showButtons && <div className='mt-3 h-10 w-auto min-w-[80px] rounded-xl bg-gray-200' />}
        </div>

        <div className='flex min-w-0 flex-1 flex-col justify-between'>
          <div>
            <div className='mb-2 h-6 w-3/4 rounded bg-gray-200' />

            <div className='mb-3 flex gap-2'>
              <div className='h-5 w-16 rounded-full bg-gray-200' />
              <div className='h-5 w-16 rounded-full bg-gray-200' />
            </div>

            <div className='mb-3 flex flex-col gap-1'>
              <div className='flex items-center gap-2'>
                <div className='h-4 w-4 rounded bg-gray-200' />
                <div className='h-4 w-32 rounded bg-gray-200' />
              </div>
              <div className='flex items-center gap-2'>
                <div className='h-4 w-4 rounded bg-gray-200' />
                <div className='h-4 w-40 rounded bg-gray-200' />
              </div>
            </div>

            <div className='h-2 w-full rounded-full bg-gray-200' />
          </div>

          {showButtons && <div className='mt-3 h-10 w-auto min-w-[88px] rounded-xl bg-gray-200' />}
        </div>
      </div>
    </div>
  );
};