diff --git a/components/product/ProductCard/ProductCard.module.css b/components/product/ProductCard/ProductCard.module.css index 1c9b2a75f..7846da50e 100644 --- a/components/product/ProductCard/ProductCard.module.css +++ b/components/product/ProductCard/ProductCard.module.css @@ -55,7 +55,7 @@ } .squareBg, -.productTitle, +.productTitle > span, .productPrice, .wishlistButton { @apply transition ease-in-out duration-300; @@ -65,9 +65,13 @@ @apply transform absolute inset-0 z-0 bg-secondary; } +.squareBg.gray { + @apply bg-gray-300 !important; +} + .productTitle { - line-height: 51px; - width: 200px; + line-height: 40px; + width: 18vw; & span { @apply inline text-2xl leading-6 p-4 bg-primary text-primary font-bold; diff --git a/components/product/ProductCard/ProductCard.tsx b/components/product/ProductCard/ProductCard.tsx index 847cea12e..0c2ad6e19 100644 --- a/components/product/ProductCard/ProductCard.tsx +++ b/components/product/ProductCard/ProductCard.tsx @@ -8,7 +8,7 @@ interface Props { className?: string children?: ReactNode[] | Component[] | any[] node: ProductData - variant?: 'slim' + variant?: 'slim' | 'simple' } interface ProductData { @@ -44,12 +44,12 @@ const ProductCard: FC = ({ className, node: p, variant }) => { src={p.images.edges[0].node.urlXL} /> -
+
-
+

{p.name} -

+

${p.prices.price.value}
diff --git a/pages/index.tsx b/pages/index.tsx index d0b0be8c7..381c54151 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -57,32 +57,34 @@ export default function Home({ ))}
-
-
    -
  • - All Categories -
  • - {categories.map((cat) => ( -
  • - {cat.name} +
    +
    +
      +
    • + All Categories
    • - ))} -
    -
      -
    • - All Designers -
    • - {brands.flatMap(({ node }) => ( -
    • - {node.name} + {categories.map((cat) => ( +
    • + {cat.name} +
    • + ))} +
    +
      +
    • + All Designers
    • - ))} -
    + {brands.flatMap(({ node }) => ( +
  • + {node.name} +
  • + ))} +
+
{products.map((p: any) => ( - + ))}