diff --git a/.deco/blocks/Abertura%20Home.json b/.deco/blocks/Abertura%20Home.json index 604e8be..ad18759 100644 --- a/.deco/blocks/Abertura%20Home.json +++ b/.deco/blocks/Abertura%20Home.json @@ -2,5 +2,20 @@ "__resolveType": "site/sections/Final/Headers/Openning.tsx", "title": "Gestão inteligente para sonhar mais", "highlight": "sonhar mais", - "subtitleDescription": "A Linked entende as dores do seu negócio e pode te ajudar a economizar e lucrar" + "subtitleDescription": "A Linked entende as dores do seu negócio e pode te ajudar a economizar e lucrar", + "open": [ + { + "title": "Gestão inteligente para sonhar mais", + "highlight": "sonhar mais", + "subtitleDescription": "A Linked entende as dores do seu negócio e pode te ajudar a economizar e lucrar" + }, + { + "title": "Gestão inteligente para sonhar mais", + "highlight": "sonhar mais" + }, + { + "title": "Gestão inteligente para sonhar mais", + "highlight": "sonhar mais" + } + ] } \ No newline at end of file diff --git a/.deco/blocks/pages-My%2520New%2520Page-461078.json b/.deco/blocks/pages-My%2520New%2520Page-461078.json index 06366ee..a5b69b1 100644 --- a/.deco/blocks/pages-My%2520New%2520Page-461078.json +++ b/.deco/blocks/pages-My%2520New%2520Page-461078.json @@ -29,7 +29,8 @@ "section": { "__resolveType": "site/sections/Final/Form/InputText.tsx", "title": "Por favor, diga o seu nome.", - "placeholder": "Por favor, diga o seu nome." + "placeholder": "Por favor, diga o seu nome.", + "name": "name" }, "title": "Por favor, diga o seu nome.", "text": "Por favor, diga o seu nome.", @@ -73,12 +74,13 @@ { "section": { "__resolveType": "site/sections/Final/Form/InputText.tsx", - "title": "Por favor, diga o seu nome.", - "placeholder": "Por favor, diga o seu nome." + "title": "Por favor, diga o seu sobrenome.", + "placeholder": "Por favor, diga o seu sobrenome.", + "name": "lastname" }, - "title": "Por favor, diga o seu nome.", - "text": "Por favor, diga o seu nome.", - "description": "Por favor, diga o seu nome." + "title": "Por favor, diga o seu sobrenome.", + "text": "Por favor, diga o seu sobrenome.", + "description": "Por favor, diga o seu sobrenome." }, { "section": { @@ -127,7 +129,7 @@ } ], "text": "Teste", - "name": "Teste" + "name": "radio" }, "title": "Teste", "text": "Teste", diff --git a/components/ui/Content/Benefits/index.tsx b/components/ui/Content/Benefits/index.tsx index 84506b8..c1a1c55 100644 --- a/components/ui/Content/Benefits/index.tsx +++ b/components/ui/Content/Benefits/index.tsx @@ -228,4 +228,4 @@ function Benefits({ benefits, collapse, colorTheme }: Props) { } } -export default Benefits; \ No newline at end of file +export default Benefits; diff --git a/components/ui/Content/BigNumber/index.tsx b/components/ui/Content/BigNumber/index.tsx index 1962358..925e1fa 100644 --- a/components/ui/Content/BigNumber/index.tsx +++ b/components/ui/Content/BigNumber/index.tsx @@ -29,12 +29,6 @@ function setClass(value: string) { } } -/* Descrição do component -*asdasd -*asd -*asd -*/ - function BigNumber( { number, description, colorTheme }: JSX.IntrinsicElements["div"] & Props, ) { diff --git a/components/ui/Content/ComparisonBody/index.tsx b/components/ui/Content/ComparisonBody/index.tsx index c5b9a67..2ed7c83 100644 --- a/components/ui/Content/ComparisonBody/index.tsx +++ b/components/ui/Content/ComparisonBody/index.tsx @@ -96,4 +96,4 @@ function ExampleComponent({ body }: JSX.IntrinsicElements["div"] & Props) { ); } -export default ExampleComponent; \ No newline at end of file +export default ExampleComponent; diff --git a/components/ui/Content/ComparisonFooter/index.tsx b/components/ui/Content/ComparisonFooter/index.tsx index 1bd9dd1..1f0f390 100644 --- a/components/ui/Content/ComparisonFooter/index.tsx +++ b/components/ui/Content/ComparisonFooter/index.tsx @@ -17,7 +17,12 @@ function ComparisonFooter( )} {left.button && ( - + )} )} @@ -31,7 +36,12 @@ function ComparisonFooter( )} {right.button && ( - + )} )} diff --git a/components/ui/Content/Conection/index.tsx b/components/ui/Content/Conection/index.tsx index 7369543..9ea9ec8 100644 --- a/components/ui/Content/Conection/index.tsx +++ b/components/ui/Content/Conection/index.tsx @@ -38,7 +38,9 @@ function Conection({
diff --git a/components/ui/Content/CustomDropdown/index.tsx b/components/ui/Content/CustomDropdown/index.tsx index 0b8a844..64329c6 100644 --- a/components/ui/Content/CustomDropdown/index.tsx +++ b/components/ui/Content/CustomDropdown/index.tsx @@ -110,4 +110,4 @@ function CustomDropdown({ ); } -export default CustomDropdown; \ No newline at end of file +export default CustomDropdown; diff --git a/components/ui/Content/Dropdown/index.tsx b/components/ui/Content/Dropdown/index.tsx index 8414de3..3963cad 100644 --- a/components/ui/Content/Dropdown/index.tsx +++ b/components/ui/Content/Dropdown/index.tsx @@ -109,12 +109,10 @@ function Dropdown({
)) ) - : ( -

- )} + :

}
); } -export default Dropdown; +export default Dropdown; \ No newline at end of file diff --git a/components/ui/Content/Lead/index.tsx b/components/ui/Content/Lead/index.tsx index ed5d01b..babd0e1 100644 --- a/components/ui/Content/Lead/index.tsx +++ b/components/ui/Content/Lead/index.tsx @@ -4,24 +4,36 @@ import type { JSX } from "preact"; import ButtonComponent from "../../Button/index.tsx"; import TitleComponent from "../Title/index.tsx"; -function Lead({ title, button, placeholder }: JSX.IntrinsicElements["div"] & Props) { +function Lead( + { title, button, placeholder }: JSX.IntrinsicElements["div"] & Props, +) { return ( <> -
-
- - -
- -
-
+
+
+ + +
+ +
+
); } diff --git a/components/ui/Content/List/index.tsx b/components/ui/Content/List/index.tsx index 7faf086..3f85615 100644 --- a/components/ui/Content/List/index.tsx +++ b/components/ui/Content/List/index.tsx @@ -50,4 +50,4 @@ function List({ items, colorTheme, isFirst, isLast }: Props) { ); } -export default List; \ No newline at end of file +export default List; diff --git a/components/ui/Content/LogoGroup/index.tsx b/components/ui/Content/LogoGroup/index.tsx index 09f5a42..a2b4cec 100644 --- a/components/ui/Content/LogoGroup/index.tsx +++ b/components/ui/Content/LogoGroup/index.tsx @@ -43,4 +43,4 @@ function LogoGroupComponent( ); } -export default LogoGroupComponent; \ No newline at end of file +export default LogoGroupComponent; diff --git a/components/ui/Content/Openning/index.tsx b/components/ui/Content/Openning/index.tsx new file mode 100644 index 0000000..a68bced --- /dev/null +++ b/components/ui/Content/Openning/index.tsx @@ -0,0 +1,95 @@ +import Script, { type Props } from "./script.tsx"; + +export interface Open { + /** + * @title Título + * @description Escreva aqui o título da abertura + */ + title?: string; + /** + * @title Palavra ou Frase com Cor + * @description Escreva a palavra ou frase com cor + */ + highlight?: string; + /** + * @title Subtítulo + * @description Escreva aqui o subtítulo da abertura + */ + subtitleDescription?: string; +} + +/** + * @title {{{title}}} + */ +export interface Props { + /** + * @title Título do Bloco + * @description Escreva aqui o título do bloco + */ + title?: string; + /** + * @title Títulos de Abertura + * @description Lista de títulos de abertura com suas propriedades + */ + open?: Open[]; +} + +export default function Section({ + title = "", + open = [], +}: Props) { + const getHighlightedText = (text: string, highlight?: string) => { + if (!highlight) return text; + + const parts = text.split(new RegExp(`(${highlight})`, "gi")); + return parts.map((part, index) => + part.toLowerCase() === highlight.toLowerCase() + ? ( + + {part} + + ) + : part + ); + }; + + return ( + <> +
+
+ {open.map((item, index) => ( +
+
+ {item.title && ( +
+

+ {getHighlightedText(item.title, item.highlight)} +

+
+ )} + {item.subtitleDescription && ( +
+

+ {item.subtitleDescription} +

+
+ )} +
+
+ ))} +
+
+