diff --git a/components/footer/Footer.tsx b/components/footer/Footer.tsx index 5b8e13fc..1cb5a058 100644 --- a/components/footer/Footer.tsx +++ b/components/footer/Footer.tsx @@ -56,32 +56,6 @@ export interface NewsletterForm { helpText?: string; } -export interface Layout { - backgroundColor?: - | "Primary" - | "Secondary" - | "Accent" - | "Base 100" - | "Base 100 inverted"; - variation?: - | "Variation 1" - | "Variation 2" - | "Variation 3" - | "Variation 4" - | "Variation 5"; - hide?: { - logo?: boolean; - newsletter?: boolean; - sectionLinks?: boolean; - socialLinks?: boolean; - paymentMethods?: boolean; - mobileApps?: boolean; - regionOptions?: boolean; - extraLinks?: boolean; - backToTheTop?: boolean; - }; -} - export interface Props { logo?: { image: ImageWidget; @@ -108,17 +82,8 @@ export interface Props { backToTheTop?: { text?: string; }; - layout?: Layout; } -const LAYOUT = { - "Primary": "bg-primary text-primary-content", - "Secondary": "bg-secondary text-secondary-content", - "Accent": "bg-accent text-accent-content", - "Base 100": "bg-base-100 text-base-content", - "Base 100 inverted": "bg-base-content text-base-100", -}; - function Footer({ logo, newsletter = { @@ -171,189 +136,56 @@ function Footer({ regionOptions = { currency: [], language: [] }, extraLinks = [], backToTheTop, - layout = { - backgroundColor: "Primary", - variation: "Variation 1", - hide: { - logo: false, - newsletter: false, - sectionLinks: false, - socialLinks: false, - paymentMethods: false, - mobileApps: false, - regionOptions: false, - extraLinks: false, - backToTheTop: false, - }, - }, }: Props) { - const _logo = layout?.hide?.logo ? <> : ; - const _newsletter = layout?.hide?.newsletter ? <> : ( + const _logo = ; + const _newsletter = ( ); - const _sectionLinks = layout?.hide?.sectionLinks ? <> : ( + const _sectionLinks = ( ); - const _social = layout?.hide?.socialLinks - ? <> - : ; - const _payments = layout?.hide?.paymentMethods - ? <> - : ; - const _apps = layout?.hide?.mobileApps - ? <> - : ; - const _region = layout?.hide?.regionOptions - ? <> - : ; - const _links = layout?.hide?.extraLinks - ? <> - : ; + const _social = ; + const _payments = ; + const _apps = ; + const _region = ; + const _links = ; return (
- {(!layout?.variation || layout?.variation == "Variation 1") && ( -
-
- {_logo} - {_sectionLinks} - {_newsletter} -
- -
- {_payments} - {_social} -
- {_apps} - {_region} -
-
- -
- - {_links} -
-
- )} - {layout?.variation == "Variation 2" && ( -
-
-
- {_logo} - {_social} - {_payments} - {_apps} - {_region} -
-
- {_newsletter} - {_sectionLinks} -
-
- -
- - {_links} -
-
- )} - {layout?.variation == "Variation 3" && ( -
+
+
{_logo} -
-
- {_newsletter} -
- {_payments} - {_apps} -
-
-
-
- {_sectionLinks} - {_social} -
- {_region} -
-
- -
- - {_links} -
-
- )} - {layout?.variation == "Variation 4" && ( -
+ {_sectionLinks} {_newsletter} - {layout?.hide?.newsletter ? <> : } -
- {_sectionLinks} -
-
-
- {_payments} -
-
- {_social} -
-
-
- {_region} - {_apps} -
-
-
- -
- {_logo} - -
- )} - {layout?.variation == "Variation 5" && ( -
- {_newsletter} - {layout?.hide?.newsletter ? <> : } - {_logo} -
- {_sectionLinks} -
- {_payments} - {_social} - {_apps} -
-
- -
- -
- {_links} - {_region} -
+ +
+ {_payments} + {_social} +
+ {_apps} + {_region}
- )} + +
+ + {_links} +
+
- {layout?.hide?.backToTheTop - ? <> - : } +
); } diff --git a/components/product/ProductShelf.tsx b/components/product/ProductShelf.tsx index d67eac99..b07c32be 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,12 @@ function ProductShelf({ }; return (
-
+
+

+ {title} +

+

{description}

+
-
+
+

+ {title} +

+

{description}

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