File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ const Basket = ({
97
97
</ header >
98
98
99
99
{ 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" >
101
101
{ sortedProducts . map ( ( product , index ) => (
102
102
< div className = "bg-gray-800 text-gray-200 rounded-xl" key = { index } >
103
103
< img
@@ -127,14 +127,14 @@ const Basket = ({
127
127
< div className = "mr-3" >
128
128
< button
129
129
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"
131
131
>
132
132
-
133
133
</ button >
134
134
< span className = "mx-2 text-3xl" > { product . count } </ span >
135
135
< button
136
136
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"
138
138
>
139
139
+
140
140
</ button >
@@ -144,9 +144,9 @@ const Basket = ({
144
144
setSelectedProductId ( product . id ) ;
145
145
setIsModalOpen ( true ) ;
146
146
} }
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"
148
148
>
149
- < FiTrash2 className = "text-3xl text-red-700" />
149
+ < FiTrash2 className = "text-2xl md:text- 3xl text-red-700" />
150
150
</ button >
151
151
</ div >
152
152
</ div >
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ const Product = ({
110
110
</ h2 >
111
111
</ div >
112
112
) : (
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 " >
114
114
{ sortedProducts . map ( ( product , index ) => (
115
115
< div className = "bg-gray-800 text-gray-200 rounded-xl" key = { index } >
116
116
< img
@@ -148,9 +148,9 @@ const Product = ({
148
148
className = " p-3 transition-all duration-500"
149
149
>
150
150
{ 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" />
152
152
) : (
153
- < GoHeart className = "text-3xl md:text-5xl text-red-500" />
153
+ < GoHeart className = "text-4xl md:text-5xl text-red-500" />
154
154
) }
155
155
</ button >
156
156
< button
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ const WishList = ({
73
73
return (
74
74
< div className = "h-screen" >
75
75
{ 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" >
77
77
{ sortedProducts . map ( ( product , index ) => (
78
78
< div className = "bg-gray-800 text-gray-200 rounded-xl" key = { index } >
79
79
< img
@@ -112,7 +112,7 @@ const WishList = ({
112
112
</ div >
113
113
< button
114
114
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"
116
116
>
117
117
< FiTrash2 className = "text-3xl text-red-700" />
118
118
</ button >
You can’t perform that action at this time.
0 commit comments