-
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(shop-page): implement shop page
- implement shop page ui components - implement search and filter functionality [Delivers #90]
- Loading branch information
Showing
10 changed files
with
924 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,55 @@ | ||
import Skeleton from 'react-loading-skeleton'; | ||
import 'react-loading-skeleton/dist/skeleton.css'; | ||
|
||
const ProductSkeleton = ({ cards }: { cards: number }) => { | ||
return Array(cards) | ||
.fill(0) | ||
.map(() => ( | ||
<div | ||
className="flex flex-col items-center justify-between rounded-lg bg-white xs:w-full lg:w-60 h-60 p-2" | ||
key={crypto.randomUUID()} | ||
> | ||
<div className="w-full flex flex-col items-center"> | ||
<div className="w-full h-[100px]"> | ||
<Skeleton | ||
width="100%" | ||
height="100%" | ||
baseColor="#F3F4F6" | ||
highlightColor="#E0E0E0" | ||
/> | ||
</div> | ||
<div className="flex flex-col w-full mt-4"> | ||
<Skeleton | ||
width="100%" | ||
height={7} | ||
baseColor="#F3F4F6" | ||
highlightColor="#E0E0E0" | ||
/> | ||
<Skeleton | ||
width="100%" | ||
height={7} | ||
baseColor="#F3F4F6" | ||
highlightColor="#E0E0E0" | ||
className="mt-2" | ||
/> | ||
</div> | ||
</div> | ||
<div className="flex w-full justify-between items-center"> | ||
<Skeleton | ||
width={80} | ||
height={40} | ||
baseColor="#F3F4F6" | ||
highlightColor="#E0E0E0" | ||
/> | ||
<Skeleton | ||
width={40} | ||
height={40} | ||
baseColor="#F3F4F6" | ||
highlightColor="#E0E0E0" | ||
/> | ||
</div> | ||
</div> | ||
)); | ||
}; | ||
|
||
export default ProductSkeleton; |
Oops, something went wrong.