diff --git a/sections/Content/ImageSection.tsx b/sections/Content/ImageSection.tsx index 60e617e..3524888 100644 --- a/sections/Content/ImageSection.tsx +++ b/sections/Content/ImageSection.tsx @@ -1,23 +1,20 @@ import type { ImageWidget } from "apps/admin/widgets.ts"; import Icon from "$store/components/ui/Icon.tsx"; import Image from "apps/website/components/Image.tsx"; +import { VideoWidget } from "apps/admin/widgets.ts"; -export interface Props { - title: string; +interface Index { + label?: string; /** * @format textarea */ - description: string; - image: ImageWidget; + description?: string; +} + +export interface Props { + image?: VideoWidget; + textIndex?: Index[]; placement: "left" | "right"; - cta?: { - href?: string; - text?: string; - }; - disableSpacing?: { - top?: boolean; - bottom?: boolean; - }; } const PLACEMENT = { @@ -29,53 +26,116 @@ const DEFAULT_IMAGE = "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/2753/b2278d2d-2270-482b-98d4-f09d5f05ba97"; export default function ImageSection({ - title, - description, image = DEFAULT_IMAGE, + textIndex, placement, - disableSpacing, - cta, }: Props) { return ( -
- {title} -
-- {description} -
- {cta?.href && cta?.text && ( - + {textIndex?.map((text, index) => ( ++ {text.label} +
++ {text.description} +
+