From efe774e185f487237646c85a645ecb33a00833b5 Mon Sep 17 00:00:00 2001 From: omattaeus Date: Thu, 2 Jan 2025 17:34:36 -0300 Subject: [PATCH 1/7] fazendo correcoes na largura dos botoes --- .deco/blocks/Comparativo%20Home.json | 11 +- .deco/blocks/Comparativo%20de%20Planos.json | 2 +- .../Lista%20de%20Integra%C3%A7%C3%B5es.json | 14 ++- ...C3%ADtulo%20com%20Navega%C3%A7%C3%A3o.json | 6 +- ...C3%A1gina%20-%20Integra%C3%A7%C3%B5es.json | 11 ++ .../blocks/Tipos%20de%20Estabelecimentos.json | 3 +- ...-Integra%25C3%25A7%25C3%25B5es-320736.json | 5 +- components/ui/Button/index.tsx | 115 +++++++++++------- components/ui/Content/Dropdown/index.tsx | 18 ++- components/ui/Content/TitleMedium/index.tsx | 32 ++++- sections/Final/Button/ButtonComponent.tsx | 88 ++++++++------ sections/Final/Content/Dropdown.tsx | 1 - sections/Final/Content/ParentComponent.tsx | 8 +- sections/Final/Content/TitleMedium.tsx | 16 ++- sections/MultiSection.tsx | 2 +- tailwind.config.ts | 4 + 16 files changed, 234 insertions(+), 102 deletions(-) create mode 100644 .deco/blocks/T%C3%ADtulo%20da%20P%C3%A1gina%20-%20Integra%C3%A7%C3%B5es.json diff --git a/.deco/blocks/Comparativo%20Home.json b/.deco/blocks/Comparativo%20Home.json index 395113a..75fab21 100644 --- a/.deco/blocks/Comparativo%20Home.json +++ b/.deco/blocks/Comparativo%20Home.json @@ -104,7 +104,8 @@ "tamanho": "Máximo (100%)", "title": "Compare os planos", "text": "Compare os planos", - "link": "/compare" + "link": "/compare", + "tamanhoDesktop": "Mínimo (Tamanho do conteúdo)" }, "title": "Compare os planos" } @@ -189,7 +190,9 @@ "buttonTheme": "Secondary white", "title": "Veja em detalhes", "text": "Veja em detalhes", - "link": "/detalhes" + "link": "/detalhes", + "tamanho": "Máximo (100%)", + "tamanhoDesktop": "Mínimo (Tamanho do conteúdo)" }, "title": "Veja em detalhes" } @@ -249,7 +252,9 @@ "buttonTheme": "Secondary white", "title": "Veja a lista completa", "text": "Veja a lista completa", - "link": "/lista" + "link": "/lista", + "tamanho": "Máximo (100%)", + "tamanhoDesktop": "Mínimo (Tamanho do conteúdo)" }, "title": "Veja a lista completa" } diff --git a/.deco/blocks/Comparativo%20de%20Planos.json b/.deco/blocks/Comparativo%20de%20Planos.json index 453104e..9bf2909 100644 --- a/.deco/blocks/Comparativo%20de%20Planos.json +++ b/.deco/blocks/Comparativo%20de%20Planos.json @@ -203,7 +203,7 @@ "link": "plano-total", "buttonTheme": "Secondary white" }, - "price": "A partir de
R$ 000,00" + "price": "A partir de
R$ 00,00" } }, "title": "Comparação" diff --git a/.deco/blocks/Lista%20de%20Integra%C3%A7%C3%B5es.json b/.deco/blocks/Lista%20de%20Integra%C3%A7%C3%B5es.json index ceea37a..0701de9 100644 --- a/.deco/blocks/Lista%20de%20Integra%C3%A7%C3%B5es.json +++ b/.deco/blocks/Lista%20de%20Integra%C3%A7%C3%B5es.json @@ -42,7 +42,19 @@ ], "title": "Por categoria", "dropdownText": "Por categoria", - "arrowIcon": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/linked1/5b84cd87-7621-407f-8007-45aea2d586c0/arrow_down_2.svg" + "arrowIcon": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/linked1/5b84cd87-7621-407f-8007-45aea2d586c0/arrow_down_2.svg", + "logos": [ + { + "category": "Delivery", + "title": "Delivery", + "logo": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/linked1/3e40e849-3e79-4675-8942-ed279da4edc1/brand_delivery_much_new.png" + }, + { + "category": "Delivery", + "title": "Delivery", + "logo": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/linked1/d71881ca-5a78-46c6-8491-2313249a8a67/delivery_direto_integracion.png" + } + ] }, "title": "Dropdown" }, diff --git a/.deco/blocks/T%C3%ADtulo%20com%20Navega%C3%A7%C3%A3o.json b/.deco/blocks/T%C3%ADtulo%20com%20Navega%C3%A7%C3%A3o.json index ea509f1..1fd0ea5 100644 --- a/.deco/blocks/T%C3%ADtulo%20com%20Navega%C3%A7%C3%A3o.json +++ b/.deco/blocks/T%C3%ADtulo%20com%20Navega%C3%A7%C3%A3o.json @@ -8,11 +8,13 @@ "menu": [ { "name": "Planos", - "url": "/planos" + "url": "/planos", + "status": false }, { "name": "Opcionais", - "url": "/opcionais" + "url": "/opcionais", + "status": true }, { "name": "Integrações", diff --git a/.deco/blocks/T%C3%ADtulo%20da%20P%C3%A1gina%20-%20Integra%C3%A7%C3%B5es.json b/.deco/blocks/T%C3%ADtulo%20da%20P%C3%A1gina%20-%20Integra%C3%A7%C3%B5es.json new file mode 100644 index 0000000..5060c3f --- /dev/null +++ b/.deco/blocks/T%C3%ADtulo%20da%20P%C3%A1gina%20-%20Integra%C3%A7%C3%B5es.json @@ -0,0 +1,11 @@ +{ + "__resolveType": "site/sections/Final/Content/TitleMedium.tsx", + "content": "Os principais serviços estão na Linked", + "colorTheme": "White", + "colorThemeBg": "Primary", + "containerWidth": "Largura Limitada (327px)", + "textAlignment": "Left", + "fontSize": "28px", + "contentAlignment": "Start", + "paddingTop": "Espacamento (91px)" +} \ No newline at end of file diff --git a/.deco/blocks/Tipos%20de%20Estabelecimentos.json b/.deco/blocks/Tipos%20de%20Estabelecimentos.json index 5b2505d..9e22155 100644 --- a/.deco/blocks/Tipos%20de%20Estabelecimentos.json +++ b/.deco/blocks/Tipos%20de%20Estabelecimentos.json @@ -10,7 +10,8 @@ "textAlignment": "Left", "fontSize": "22px", "containerWidth": "Largura Limitada (343px)", - "paddingTop": "Espacamento (40px)" + "paddingTop": "Espacamento (40px)", + "contentAlignment": "Start" }, "title": "Título" }, diff --git a/.deco/blocks/pages-Integra%25C3%25A7%25C3%25B5es-320736.json b/.deco/blocks/pages-Integra%25C3%25A7%25C3%25B5es-320736.json index 921ed26..2b3f82b 100644 --- a/.deco/blocks/pages-Integra%25C3%25A7%25C3%25B5es-320736.json +++ b/.deco/blocks/pages-Integra%25C3%25A7%25C3%25B5es-320736.json @@ -6,7 +6,10 @@ "__resolveType": "Navbar" }, { - "__resolveType": "Título com Navegação" + "__resolveType": "Tabs" + }, + { + "__resolveType": "Título da Página - Integrações" }, { "__resolveType": "Lista de Integrações" diff --git a/components/ui/Button/index.tsx b/components/ui/Button/index.tsx index d950ada..ebe9c85 100644 --- a/components/ui/Button/index.tsx +++ b/components/ui/Button/index.tsx @@ -4,7 +4,6 @@ import type { JSX } from "preact"; // import IconComponent from "../Icons/IconGrid.tsx"; // import Script, { type Props } from "./script.tsx"; - // | "Primary dark" // | "Primary white" // | "secondary dark" @@ -14,61 +13,87 @@ import type { JSX } from "preact"; // | "fab" function setWidth(value) { - switch (value) { - case "Máximo (100%)": - return "w-full"; - - case "Mínimo (Tamanho do conteúdo)": - return "w-fit"; - - default: - return ""; - } + switch (value) { + case "Máximo (100%)": + return "w-full"; + + case "Mínimo (Tamanho do conteúdo)": + return "w-fit"; + + default: + return ""; + } } + +function setWidthDesktop(value) { + switch (value) { + case "Máximo (100%)": + return "w-full"; + + case "Mínimo (Tamanho do conteúdo)": + return "w-fit"; + + default: + return ""; + } +} + function setClass(value) { - switch (value) { - case "Primary dark": - return "bg-accent text-primary border border-accent py-2.5 px-5 md:py-[14px] md:px-[22px] text-center justify-center"; - - case "Primary white": - return "bg-primary text-accent border border-primary py-2.5 px-5 md:py-[14px] md:px-[22px] text-center justify-center"; - - case "Secondary dark": - return "bg-transparent text-accent border border-accent py-2.5 px-5 md:py-[14px] md:px-[22px] text-center justify-center"; - - case "Secondary white": - return "bg-transparent text-primary border border-primary py-2.5 px-5 md:py-[14px] md:px-[22px] text-center justify-center"; - - case "Link dark": - return "text-accent underline text-center"; - - case "Link white": - return "text-primary underline text-center"; - - case "Faq": - return "bg-accent border border-accent h-[56px] w-[56px] md:h-[64px] md:w-[64px] rounded-full flex items-center justify-center text-center"; - - case "Nenhuma estilização": - return ""; - - default: - return ""; - } + switch (value) { + case "Primary dark": + return "bg-accent text-primary border border-accent py-2.5 px-5 md:py-[14px] md:px-[22px] text-center justify-center"; + + case "Primary white": + return "bg-primary text-accent border border-primary py-2.5 px-5 md:py-[14px] md:px-[22px] text-center justify-center"; + + case "Secondary dark": + return "bg-transparent text-accent border border-accent py-2.5 px-5 md:py-[14px] md:px-[22px] text-center justify-center"; + + case "Secondary white": + return "bg-transparent text-primary border border-primary py-2.5 px-5 md:py-[14px] md:px-[22px] text-center justify-center"; + + case "Link dark": + return "text-accent underline text-center"; + + case "Link white": + return "text-primary underline text-center"; + + case "Faq": + return "bg-accent border border-accent h-[56px] w-[56px] md:h-[64px] md:w-[64px] rounded-full flex items-center justify-center text-center"; + + case "Nenhuma estilização": + return ""; + + default: + return ""; + } } -function ButtonComponent({ text, link, icon, buttonTheme, tamanho }: JSX.IntrinsicElements["div"]) { +function ButtonComponent( + { text, link, icon, buttonTheme, tamanho, tamanhoDesktop }: + JSX.IntrinsicElements["div"], +) { return ( <> -
-
- - {text}{icon} +
+
+ + {text} + {icon}
+ {/*