This repository was archived by the owner on Apr 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments