Skip to content

Commit f2e153d

Browse files
committed
icons
1 parent c5f154f commit f2e153d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

basket/src/components/Basket.jsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const Basket = ({
9797
</header>
9898

9999
{sortedProducts.length > 0 ? (
100-
<div className="py-5 px-12 grid gap-x-16 gap-y-8 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
100+
<div className="py-5 px-5 md:px-12 grid gap-x-16 gap-y-8 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
101101
{sortedProducts.map((product, index) => (
102102
<div className="bg-gray-800 text-gray-200 rounded-xl" key={index}>
103103
<img
@@ -127,14 +127,14 @@ const Basket = ({
127127
<div className="mr-3">
128128
<button
129129
onClick={() => deccrementQuantity(product.id)}
130-
className="bg-red-300 text-gray-900 text-2xl rounded-md h-10 w-8 hover:bg-red-400 transition-all duration-500"
130+
className="bg-red-300 text-gray-900 text-2xl rounded-md h-8 w-5 md:h-10 md:w-8 hover:bg-red-400 transition-all duration-500"
131131
>
132132
-
133133
</button>
134134
<span className="mx-2 text-3xl">{product.count}</span>
135135
<button
136136
onClick={() => incrementQuantity(product.id)}
137-
className="bg-green-300 text-gray-900 text-2xl rounded-md h-10 w-8 hover:bg-green-400 transition-all duration-500"
137+
className="bg-green-300 text-gray-900 text-2xl rounded-md h-8 w-5 md:h-10 md:w-8 hover:bg-green-400 transition-all duration-500"
138138
>
139139
+
140140
</button>
@@ -144,9 +144,9 @@ const Basket = ({
144144
setSelectedProductId(product.id);
145145
setIsModalOpen(true);
146146
}}
147-
className="bg-gray-300 rounded-xl py-2 px-3 hover:bg-gray-400 transition-all duration-500"
147+
className="bg-gray-300 rounded-lg p-1 md:py-2 md:px-3 hover:bg-gray-400 transition-all duration-500"
148148
>
149-
<FiTrash2 className="text-3xl text-red-700" />
149+
<FiTrash2 className="text-2xl md:text-3xl text-red-700" />
150150
</button>
151151
</div>
152152
</div>

basket/src/components/Product.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const Product = ({
110110
</h2>
111111
</div>
112112
) : (
113-
<div className="py-5 px-12 grid gap-x-16 gap-y-8 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 ">
113+
<div className="py-5 px-5 md:px-12 grid gap-x-16 gap-y-8 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 ">
114114
{sortedProducts.map((product, index) => (
115115
<div className="bg-gray-800 text-gray-200 rounded-xl" key={index}>
116116
<img
@@ -148,9 +148,9 @@ const Product = ({
148148
className=" p-3 transition-all duration-500"
149149
>
150150
{isExist(wishList, product.id) ? (
151-
<GoHeartFill className="text-3xl md:text-5xl text-red-500" />
151+
<GoHeartFill className="text-4xl md:text-5xl text-red-500" />
152152
) : (
153-
<GoHeart className="text-3xl md:text-5xl text-red-500" />
153+
<GoHeart className="text-4xl md:text-5xl text-red-500" />
154154
)}
155155
</button>
156156
<button

basket/src/components/WishList.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const WishList = ({
7373
return (
7474
<div className="h-screen">
7575
{sortedProducts.length > 0 ? (
76-
<div className="py-5 px-12 grid gap-x-16 gap-y-8 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
76+
<div className="py-5 px-5 md:px-12 grid gap-x-16 gap-y-8 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
7777
{sortedProducts.map((product, index) => (
7878
<div className="bg-gray-800 text-gray-200 rounded-xl" key={index}>
7979
<img
@@ -112,7 +112,7 @@ const WishList = ({
112112
</div>
113113
<button
114114
onClick={() => removeFromWishlist(product.id)}
115-
className="bg-gray-300 rounded-xl py-2 px-5 hover:bg-gray-400 transition-all duration-500"
115+
className="bg-gray-300 rounded-lg py-2 px-2 md:px-3 hover:bg-gray-400 transition-all duration-500"
116116
>
117117
<FiTrash2 className="text-3xl text-red-700" />
118118
</button>

0 commit comments

Comments
 (0)