@@ -50,7 +50,7 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
5050 < section className = "container mx-auto bg-white" >
5151 < div
5252 id = "product-container"
53- className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 mb-[120px] md:mb-0 px-4 lg:px-6 "
53+ className = "flex flex-wrap items-center mb-[120px] md:mb-0"
5454 >
5555 { products ? (
5656 products . map (
@@ -79,7 +79,7 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
7979 return (
8080 < div
8181 key = { uuidv4 ( ) }
82- className = "flex flex-col"
82+ className = "flex flex-col p-6 md:w-1/2 xl:w-1/4 "
8383 >
8484 < Link
8585 href = { `/produkt/${ encodeURIComponent (
@@ -90,14 +90,14 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
9090 { image ? (
9191 < img
9292 id = "product-image"
93- className = "w-full h-auto object-cover aspect-square transition duration-500 ease-in-out transform cursor-pointer hover:grow hover:shadow-lg hover:scale-105"
93+ className = "transition duration-500 ease-in-out transform cursor-pointer hover:grow hover:shadow-lg hover:scale-105"
9494 alt = { name }
9595 src = { image . sourceUrl }
9696 />
9797 ) : (
9898 < img
9999 id = "product-image"
100- className = "w-full h-auto object-cover aspect-square transition duration-500 ease-in-out transform cursor-pointer hover:grow hover:shadow-lg hover:scale-105"
100+ className = "transition duration-500 ease-in-out transform cursor-pointer hover:grow hover:shadow-lg hover:scale-105"
101101 alt = { name }
102102 src = {
103103 process . env . NEXT_PUBLIC_PLACEHOLDER_SMALL_IMAGE_URL
@@ -113,7 +113,7 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
113113 >
114114 < span >
115115 < div className = "flex justify-center pt-3" >
116- < p className = "font-bold text-center cursor-pointer text-lg md:text-xl " >
116+ < p className = "font-bold text-center cursor-pointer text-2xl " >
117117 { name }
118118 </ p >
119119 </ div >
@@ -122,19 +122,19 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
122122 { /* Display sale price when on sale */ }
123123 { onSale && (
124124 < div className = "flex justify-center" >
125- < div className = "pt-1 text-gray-900 text-lg md:text- xl" >
125+ < div className = "pt-1 text-gray-900 text-xl" >
126126 { variations && filteredVariantPrice ( price , '' ) }
127127 { ! variations && salePrice }
128128 </ div >
129- < div className = "pt-1 ml-2 text-gray-500 line-through text-md md:text- lg" >
129+ < div className = "pt-1 ml-2 text-gray-500 line-through text-lg" >
130130 { variations && filteredVariantPrice ( price , 'right' ) }
131131 { ! variations && regularPrice }
132132 </ div >
133133 </ div >
134134 ) }
135135 { /* Display regular price when not on sale */ }
136136 { ! onSale && (
137- < p className = "pt-1 text-center text-gray-900 text-lg md:text- xl" >
137+ < p className = "pt-1 text-center text-gray-900 text-xl" >
138138 { price }
139139 </ p >
140140 ) }
@@ -143,7 +143,7 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
143143 } ,
144144 )
145145 ) : (
146- < div className = "col-span-full mx-auto text-xl font-bold text-center text-gray-800 no-underline uppercase" >
146+ < div className = "mx-auto text-xl font-bold text-center text-gray-800 no-underline uppercase" >
147147 Ingen produkter funnet
148148 </ div >
149149 ) }
0 commit comments