{heading}
+{titleText}
+{titleText}
)} {descriptionText && ( + className="text-sm font-normal mt-2 text-[var(--text-color)]" + >{descriptionText} )} {buttonLabel && ( {buttonLabel} @@ -86,13 +90,6 @@ export let schema: HydrogenComponentSchema = { type: 'image', name: 'imageSrc', label: 'Image', - defaultValue: { - id: 'image-placeholder', - url: 'https://cdn.shopify.com/s/files/1/0728/0410/6547/files/pilot-image-placeholder.svg', - altText: 'Image index', - width: 0, - height: 0, - }, }, { type: 'text', @@ -107,15 +104,15 @@ export let schema: HydrogenComponentSchema = { name: 'contentAlignment', configs: { options: [ - {label: 'Left', value: 'left'}, - {label: 'Center', value: 'center'}, - {label: 'Right', value: 'right'}, + { label: 'Left', value: 'left' }, + { label: 'Center', value: 'center' }, + { label: 'Right', value: 'right' }, ], }, defaultValue: 'center', }, { - type: 'richtext', + type: 'textarea', label: 'Text', name: 'descriptionText', placeholder: 'Brief description', @@ -134,6 +131,25 @@ export let schema: HydrogenComponentSchema = { name: 'buttonLink', placeholder: 'Button link', }, + { + type: 'switch', + name: 'openInNewTab', + label: 'Open in new tab', + defaultValue: true, + }, + { + type: 'toggle-group', + label: 'Button style', + name: 'buttonStyle', + configs: { + options: [ + { label: '1', value: 'transition hover:bg-white border-2 border-solid hover:border-gray-900 hover:text-black bg-black text-white' }, + { label: '2', value: 'transition bg-white border-2 border-solid border-gray-900 text-black hover:bg-black hover:text-white' }, + { label: '3', value: 'transition hover:bg-white border-2 border-solid border-white hover:text-black bg-gray-200 text-white' }, + ], + }, + defaultValue: 'transition hover:bg-white border-2 border-solid hover:border-gray-900 hover:text-black bg-black text-white', + }, { type: 'switch', label: 'Hide on Mobile', diff --git a/app/sections/header-image/description-text-item.tsx b/app/sections/header-image/description-text-item.tsx index 6d3b598..f0b09b1 100644 --- a/app/sections/header-image/description-text-item.tsx +++ b/app/sections/header-image/description-text-item.tsx @@ -27,7 +27,7 @@ export default DescriptionTextItem; export let schema: HydrogenComponentSchema = { type: 'description-text--item', - title: 'Descripttion text item', + title: 'Description text item', inspector: [ { group: 'Description text', diff --git a/app/sections/rich-text/descriptions-item.tsx b/app/sections/rich-text/descriptions-item.tsx index 4337de1..5bb6382 100644 --- a/app/sections/rich-text/descriptions-item.tsx +++ b/app/sections/rich-text/descriptions-item.tsx @@ -11,7 +11,7 @@ interface DescriptionItemProps extends HydrogenComponentProps { let RichTextDescriptionItem = forwardRef{heading}
+{heading}
); }); diff --git a/app/sections/rich-text/index.tsx b/app/sections/rich-text/index.tsx index 7106cb3..0fdb359 100644 --- a/app/sections/rich-text/index.tsx +++ b/app/sections/rich-text/index.tsx @@ -9,14 +9,20 @@ interface RichTextProps extends HydrogenComponentProps { contentAlignment: string; sectionHeight: string; backgroundColor: string; + textColor: string; + topPadding: string; + bottomPadding: string; } let RichText = forwardRef