From 9042736b94803a7b3b5f24b64822da30b8f8da70 Mon Sep 17 00:00:00 2001 From: guitavano Date: Tue, 16 Apr 2024 23:35:52 -0300 Subject: [PATCH 1/6] start layout props --- components/product/ProductShelf.tsx | 13 +-- components/product/ProductShelfTabbed.tsx | 18 ++--- components/ui/CategoryBanner.tsx | 2 +- components/ui/SectionHeader.tsx | 62 -------------- sections/Category/CategoryGrid.tsx | 14 ++-- sections/Category/CategoryList.tsx | 16 ++-- sections/Content/Benefits.tsx | 86 ++++---------------- sections/Content/BlogPosts.tsx | 13 +-- sections/Content/Faq.tsx | 29 +++---- sections/Content/Logos.tsx | 14 +--- sections/Content/Testimonials.tsx | 12 +-- sections/Images/ImageGallery.tsx | 28 ++----- sections/Newsletter/Newsletter.tsx | 98 ++++------------------- sections/Social/InstagramPosts.tsx | 11 +-- 14 files changed, 80 insertions(+), 336 deletions(-) delete mode 100644 components/ui/SectionHeader.tsx diff --git a/components/product/ProductShelf.tsx b/components/product/ProductShelf.tsx index d67eac99..a03812c5 100644 --- a/components/product/ProductShelf.tsx +++ b/components/product/ProductShelf.tsx @@ -1,7 +1,6 @@ import { SendEventOnView } from "../../components/Analytics.tsx"; import ProductCard from "../../components/product/ProductCard.tsx"; import Icon from "../../components/ui/Icon.tsx"; -import Header from "../../components/ui/SectionHeader.tsx"; import Slider from "../../components/ui/Slider.tsx"; import SliderJS from "../../islands/SliderJS.tsx"; import { useId } from "../../sdk/useId.ts"; @@ -20,8 +19,6 @@ export interface Props { mobile?: 1 | 2 | 3 | 4 | 5; desktop?: 1 | 2 | 3 | 4 | 5; }; - headerAlignment?: "center" | "left"; - headerfontSize?: "Normal" | "Large" | "Small"; showArrows?: boolean; }; } @@ -55,12 +52,10 @@ function ProductShelf({ }; return (
-
+
+

{title}

+

{description}

+
-
+
+

{title}

+

{description}

+
@@ -94,7 +86,7 @@ function TabbedProductShelf({
-