summaryrefslogtreecommitdiff
path: root/src/core/components/elements/Skeleton
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-22 11:03:34 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-22 11:03:34 +0700
commitf66b12fd1d0b83af0d7230d7b1565fbe00afbe3c (patch)
tree253dcf854a3c92e09ca846e86a09e5b4c5d16be1 /src/core/components/elements/Skeleton
parent3c559031623649a67825ff47f34512f0eb946861 (diff)
prettier
Diffstat (limited to 'src/core/components/elements/Skeleton')
-rw-r--r--src/core/components/elements/Skeleton/BrandSkeleton.jsx8
-rw-r--r--src/core/components/elements/Skeleton/ImageSkeleton.jsx18
-rw-r--r--src/core/components/elements/Skeleton/ProductCardSkeleton.jsx33
3 files changed, 39 insertions, 20 deletions
diff --git a/src/core/components/elements/Skeleton/BrandSkeleton.jsx b/src/core/components/elements/Skeleton/BrandSkeleton.jsx
index ce5a994d..9a7a51f9 100644
--- a/src/core/components/elements/Skeleton/BrandSkeleton.jsx
+++ b/src/core/components/elements/Skeleton/BrandSkeleton.jsx
@@ -1,8 +1,8 @@
const BrandSkeleton = () => (
- <div role="status" className="animate-pulse">
- <div className="h-12 bg-gray-200 rounded"></div>
- <span className="sr-only">Loading...</span>
+ <div role='status' className='animate-pulse'>
+ <div className='h-12 bg-gray-200 rounded'></div>
+ <span className='sr-only'>Loading...</span>
</div>
)
-export default BrandSkeleton \ No newline at end of file
+export default BrandSkeleton
diff --git a/src/core/components/elements/Skeleton/ImageSkeleton.jsx b/src/core/components/elements/Skeleton/ImageSkeleton.jsx
index 2cda9536..2ca6b2a3 100644
--- a/src/core/components/elements/Skeleton/ImageSkeleton.jsx
+++ b/src/core/components/elements/Skeleton/ImageSkeleton.jsx
@@ -1,10 +1,18 @@
const ImageSkeleton = () => (
- <div role="status" className="animate-pulse">
- <div className="flex items-center justify-center h-56 mb-4 bg-gray-300 rounded" aria-busy>
- <svg className="w-12 h-12 text-gray-200" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512"><path d="M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z"/></svg>
+ <div role='status' className='animate-pulse'>
+ <div className='flex items-center justify-center h-56 mb-4 bg-gray-300 rounded' aria-busy>
+ <svg
+ className='w-12 h-12 text-gray-200'
+ xmlns='http://www.w3.org/2000/svg'
+ aria-hidden='true'
+ fill='currentColor'
+ viewBox='0 0 640 512'
+ >
+ <path d='M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z' />
+ </svg>
</div>
- <span className="sr-only">Loading...</span>
+ <span className='sr-only'>Loading...</span>
</div>
)
-export default ImageSkeleton \ No newline at end of file
+export default ImageSkeleton
diff --git a/src/core/components/elements/Skeleton/ProductCardSkeleton.jsx b/src/core/components/elements/Skeleton/ProductCardSkeleton.jsx
index 66b48f79..84d1c0d1 100644
--- a/src/core/components/elements/Skeleton/ProductCardSkeleton.jsx
+++ b/src/core/components/elements/Skeleton/ProductCardSkeleton.jsx
@@ -1,15 +1,26 @@
const ProductCardSkeleton = () => (
- <div role="status" className="p-4 max-w-sm rounded border border-gray-300 shadow animate-pulse md:p-6">
- <div className="flex items-center justify-center h-36 mb-4 bg-gray-300 rounded" aria-busy>
- <svg className="w-12 h-12 text-gray-200" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512"><path d="M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z"/></svg>
- </div>
- <div className="h-2 bg-gray-200 rounded-full w-10 mb-1"></div>
- <div className="h-2.5 bg-gray-200 rounded-full w-full mb-4"></div>
- <div className="h-2 bg-gray-200 rounded-full mb-2.5"></div>
- <div className="h-2 bg-gray-200 rounded-full mb-2.5"></div>
- <div className="h-2 bg-gray-200 rounded-full"></div>
- <span className="sr-only">Loading...</span>
+ <div
+ role='status'
+ className='p-4 max-w-sm rounded border border-gray-300 shadow animate-pulse md:p-6'
+ >
+ <div className='flex items-center justify-center h-36 mb-4 bg-gray-300 rounded' aria-busy>
+ <svg
+ className='w-12 h-12 text-gray-200'
+ xmlns='http://www.w3.org/2000/svg'
+ aria-hidden='true'
+ fill='currentColor'
+ viewBox='0 0 640 512'
+ >
+ <path d='M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z' />
+ </svg>
+ </div>
+ <div className='h-2 bg-gray-200 rounded-full w-10 mb-1'></div>
+ <div className='h-2.5 bg-gray-200 rounded-full w-full mb-4'></div>
+ <div className='h-2 bg-gray-200 rounded-full mb-2.5'></div>
+ <div className='h-2 bg-gray-200 rounded-full mb-2.5'></div>
+ <div className='h-2 bg-gray-200 rounded-full'></div>
+ <span className='sr-only'>Loading...</span>
</div>
)
-export default ProductCardSkeleton \ No newline at end of file
+export default ProductCardSkeleton