Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 99e10fe

Browse files
New e-shop product card (#81)
1 parent 3ced273 commit 99e10fe

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

public/product.png

367 KB
Loading

src/examples/card/e-shopProduct.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!-- Card -->
2+
<div class="flex flex-col w-full max-w-xs rounded-lg shadow-md bg-base-300">
3+
<!-- Top bar of the card -->
4+
<div class="p-2 flex justify-end">
5+
6+
<!-- Favourite product button -->
7+
<button class="btn btn-sm btn-square btn-ghost">
8+
<i class="fa fa-heart text-xl" aria-hidden="true"></i>
9+
</button>
10+
11+
<div class="divider divider-horizontal m-0"></div>
12+
13+
<!-- Options dropdown -->
14+
<div class="dropdown dropdown-end">
15+
<button class="btn btn-sm btn-square btn-ghost" tabindex="0" role="button">
16+
<i class="fa fa-ellipsis-v text-xl" aria-hidden="true"></i>
17+
</button>
18+
<ul tabindex="0" class="dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-lg w-max">
19+
<li><a>
20+
<i class="fa fa-plus text-xl" aria-hidden="true"></i>
21+
Add to list
22+
</a></li>
23+
<li><a>
24+
<i class="fa fa-compress text-xl" aria-hidden="true"></i>
25+
Compare
26+
</a></li>
27+
</ul>
28+
</div>
29+
</div>
30+
31+
<!-- Product image -->
32+
<img src="/product.png" class="w-fit max-h-64 m-auto p-4" alt="iphone">
33+
34+
<!-- Product info -->
35+
<div class="p-4 flex flex-col gap-4">
36+
<div>
37+
<a class="text-gray-600 text-sm">Mobile phones</a>
38+
<p>IPhone 15 XR PRO MAX (256GB, 8GB RAM) Titanium gray</p>
39+
</div>
40+
<p>
41+
<span class="text-gray-600 text-sm">from:</span>
42+
<span class="font-semibold text-xl">1500 $</span>
43+
</p>
44+
<button class="btn btn-block btn-primary">
45+
ADD TO CART
46+
</button>
47+
</div>
48+
</div>

0 commit comments

Comments
 (0)