From b70557397b46f84fe0cec8c18ec4f6aa2e0bf229 Mon Sep 17 00:00:00 2001 From: Samantha Kellow Date: Thu, 23 Nov 2023 19:16:34 +0000 Subject: [PATCH] creating responsive design --- app/products/[handle]/page.tsx | 4 ++-- app/wall/[handle]/page.tsx | 2 +- components/grid/index.tsx | 2 +- components/grid/tile.tsx | 2 +- components/product/gallery.tsx | 26 +++++++++++----------- components/product/product-description.tsx | 2 +- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/app/products/[handle]/page.tsx b/app/products/[handle]/page.tsx index 3ae1bbf2c..a8853bbb0 100644 --- a/app/products/[handle]/page.tsx +++ b/app/products/[handle]/page.tsx @@ -83,7 +83,7 @@ export default async function ProductPage({ params }: { params: { handle: string />
-
+
({ src: image.url, @@ -93,7 +93,7 @@ export default async function ProductPage({ params }: { params: { handle: string
-
+
diff --git a/app/wall/[handle]/page.tsx b/app/wall/[handle]/page.tsx index 3ae1bbf2c..bc77f93dd 100644 --- a/app/wall/[handle]/page.tsx +++ b/app/wall/[handle]/page.tsx @@ -93,7 +93,7 @@ export default async function ProductPage({ params }: { params: { handle: string
-
+
diff --git a/components/grid/index.tsx b/components/grid/index.tsx index 92681555a..b7bdce6de 100644 --- a/components/grid/index.tsx +++ b/components/grid/index.tsx @@ -10,7 +10,7 @@ function Grid(props: React.ComponentProps<'ul'>) { function GridItem(props: React.ComponentProps<'li'>) { return ( -
  • +
  • {props.children}
  • ); diff --git a/components/grid/tile.tsx b/components/grid/tile.tsx index 77c62cca4..98e37610f 100644 --- a/components/grid/tile.tsx +++ b/components/grid/tile.tsx @@ -20,7 +20,7 @@ export function GridTileImage({ return (
    -
    +
    +
    {images[currentImageIndex] && ( - {images[currentImageIndex]?.altText + {images[currentImageIndex]?.altText )} {images.length > 1 ? ( -
    -
    +
    +
    {images.length > 1 ? ( -
    +
    {images.map((image, index) => { const isActive = index === currentImageIndex; return ( diff --git a/components/product/product-description.tsx b/components/product/product-description.tsx index 726c1f7b1..40dffb424 100644 --- a/components/product/product-description.tsx +++ b/components/product/product-description.tsx @@ -10,7 +10,7 @@ export function ProductDescription({ product }: { product: Product }) { return ( <>
    -

    {product.title}

    +

    {product.title}