diff --git a/sections/Content/TextIconAndImage.tsx b/sections/Content/TextIconAndImage.tsx index e2040d0..f15d400 100644 --- a/sections/Content/TextIconAndImage.tsx +++ b/sections/Content/TextIconAndImage.tsx @@ -102,6 +102,10 @@ export interface Props { /** @title Imagem */ image: ImagemDeskAndMobile; + + /** @title Imagem espiral de fundo? */ + bgSpital?:boolean; + /** @title Posicionamento */ placement: "esquerdo" | "direito"; /** @title Desabilitar espaçamento? */ @@ -127,6 +131,7 @@ export default function ImageSection( blockText, image, placement, + bgSpital, disableSpacing, disabledProps, device, @@ -144,193 +149,206 @@ export default function ImageSection( } = blockText; return ( -
- {titleCenter && ( -
+
+ {bgSpital && ( + )} +
- {image && ( -
- - {image?.desktop && image.desktop?.src && image.desktop?.width && - image?.desktop?.height && ( - - )} + {titleCenter && ( +
+
+ )} +
+ {image && ( +
+ + {image?.desktop && image.desktop?.src && image.desktop?.width && + image?.desktop?.height && ( + + )} - {image?.mobile && image.mobile?.src && image.mobile?.width && - image?.mobile?.height && ( - - )} + {image?.mobile && image.mobile?.src && image.mobile?.width && + image?.mobile?.height && ( + + )} + + {image?.desktop && image.desktop?.src && image.desktop?.width && + image?.desktop?.height && ( +
+ {"Imagem"} +
+ )} +
+
+ )} +
+ {icon && !disabledProps?.icon && ( + + )} - {image?.desktop && image.desktop?.src && image.desktop?.width && - image?.desktop?.height && ( + {nameIcon && ( + + {nameIcon} + + )} + +
+ {subtitle && (
- {"Imagem"}
)} - -
- )} -
- {icon && !disabledProps?.icon && ( - - )} - {nameIcon && ( - - {nameIcon} - - )} +
+ {!disabledProps?.tags && subtitleWithTags && + subtitleWithTags.map(({ name, tag }) => { + return ( + <> + {name + + ); + })} +
+
-
- {subtitle && ( + {description && (
)} -
- {!disabledProps?.tags && subtitleWithTags && - subtitleWithTags.map(({ name, tag }) => { +
+ {!disabledProps?.miniImage && miniImage && miniImage?.length > 1 && + miniImage.map(({ image }) => { + const { desktop, mobile } = image; return ( <> - {name + + {desktop && desktop?.src && desktop?.width && + desktop?.height && ( + + )} + {mobile && mobile?.src && mobile?.width && + mobile?.height && ( + + )} + {desktop && desktop?.src && desktop?.width && + desktop?.height && ( + {"Mini + )} + ); })}
-
- - {description && ( -
-
- )} -
- {!disabledProps?.miniImage && miniImage && miniImage?.length > 1 && - miniImage.map(({ image }) => { - const { desktop, mobile } = image; - return ( - <> - - {desktop && desktop?.src && desktop?.width && - desktop?.height && ( - - )} - {mobile && mobile?.src && mobile?.width && - mobile?.height && ( - - )} - {desktop && desktop?.src && desktop?.width && - desktop?.height && ( - {"Mini - )} - - - ); - })} + {cta?.text && ( +
+ {!cta?.colorLink && ( + + )} + {cta?.colorLink && ( + + )} +
+ )}
- - {cta?.text && ( -
- {!cta?.colorLink && ( - - )} - {cta?.colorLink && ( - - )} -
- )}
diff --git a/static/image/image-espiral-21deg.png b/static/image/image-espiral-21deg.png new file mode 100644 index 0000000..dd5ff6d Binary files /dev/null and b/static/image/image-espiral-21deg.png differ