forked from bagisto/bagisto
-
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.
Merge pull request bagisto#7688 from shivendra-webkul/product-listing
Added Category products listing and shimmer for listing page.
- Loading branch information
Showing
6 changed files
with
88 additions
and
61 deletions.
There are no files selected for viewing
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
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
104 changes: 62 additions & 42 deletions
104
packages/Webkul/Shop/src/Resources/views/components/products/cards/list.blade.php
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
36 changes: 20 additions & 16 deletions
36
packages/Webkul/Shop/src/Resources/views/components/shimmer/products/cards/list.blade.php
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 |
---|---|---|
@@ -1,26 +1,30 @@ | ||
@props(['count' => 0]) | ||
|
||
@for ($i = 0; $i < $count; $i++) | ||
<div class="flex gap-[20px] rounded-[12px] mb-[15px] max-sm:flex-wrap"> | ||
<div class="flex justify-content:between ml-[2px]"> | ||
<div class="relative overflow-hidden rounded-sm min-w-[258px] min-h-[250px] bg-[#E9E9E9] shimmer"> | ||
<img class="rounded-sm bg-[#F5F5F5]"> | ||
</div> | ||
<div class="grid grid-cols-1 gap-[25px]"> | ||
<div class="grid gap-2.5 grid-cols-2 relative max-sm:grid-cols-1 max-w-max"> | ||
<div class="relative overflow-hidden rounded-sm min-w-[250px] min-h-[258px] bg-[#E9E9E9] shimmer "> | ||
<img | ||
class="rounded-sm bg-[#F5F5F5]" | ||
src="" | ||
> | ||
</div> | ||
|
||
<div class="grid gap-[15px] content-start"> | ||
<p class="w-[75%] h-[24px] bg-[#E9E9E9] shimmer"></p> | ||
|
||
<div class="ml-[20px]"> | ||
<div class="grid gap-2.5 content-start"> | ||
<p class="w-[200px] h-[24px] bg-[#E9E9E9] shimmer"></p> | ||
<p class="w-[150px] h-[24px] bg-[#E9E9E9] shimmer"></p> | ||
<p class="w-[55%] h-[24px] bg-[#E9E9E9] shimmer"></p> | ||
|
||
<div class="flex gap-4 mt-[8px]"> | ||
<span class="rounded-full w-[30px] h-[30px] block bg-[#E9E9E9] shimmer"></span> | ||
<span class="rounded-full w-[30px] h-[30px] block bg-[#E9E9E9] shimmer"></span> | ||
</div> | ||
<div class="flex gap-4"> | ||
<span class="rounded-full w-[30px] h-[30px] block bg-[#E9E9E9] shimmer"></span> | ||
|
||
<button class="w-[158px] h-[46px] rounded-[12px] py-[10px] px-[10] mt-[20px] bg-[#E9E9E9] shimmer"> | ||
</button> | ||
</div> | ||
<span class="rounded-full w-[30px] h-[30px] block bg-[#E9E9E9] shimmer"></span> | ||
</div> | ||
|
||
<p class="w-[100%] h-[24px] bg-[#E9E9E9] shimmer"></p> | ||
|
||
<div class="w-[152px] h-[46px] rounded-[12px] shimmer"></div> | ||
</div> | ||
</div> | ||
</div> | ||
@endfor |