Skip to content

Commit 952fcf8

Browse files
committed
Update SingleProduct.component.tsx
2 parents e70a52f + 40945ec commit 952fcf8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/Product/SingleProduct.component.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ const SingleProduct: React.FC<IProductRootObject> = ({
3737
.textContent || '';
3838
}
3939

40-
41-
4240
return (
4341
<section className="bg-white mb-16 sm:mb-24">
4442
{isLoading ? (
@@ -51,8 +49,8 @@ const SingleProduct: React.FC<IProductRootObject> = ({
5149
<div className="container mx-auto px-4 py-8 sm:px-6 lg:px-8">
5250
<div className="flex flex-col space-y-8">
5351
{/* First row: Product info, price, and purchase options */}
54-
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 items-start">
55-
<div className="w-full">
52+
<div className="flex flex-col md:flex-row gap-8">
53+
<div className="w-full md:w-1/2">
5654
{image ? (
5755
<img
5856
id="product-image"
@@ -72,7 +70,7 @@ const SingleProduct: React.FC<IProductRootObject> = ({
7270
/>
7371
)}
7472
</div>
75-
<div className="flex flex-col space-y-6">
73+
<div className="w-full md:w-1/2 flex flex-col space-y-6">
7674
<h1 className="text-3xl font-bold">{name}</h1>
7775
<div className="flex flex-col space-y-2">
7876
{onSale && <p className="text-sm">Før {regularPrice}</p>}

0 commit comments

Comments
 (0)