diff --git a/.deco/blocks/pages-D%25C3%25BAvidas%2520fequentes-845579.json b/.deco/blocks/pages-D%25C3%25BAvidas%2520fequentes-845579.json
new file mode 100644
index 0000000..9f2ce64
--- /dev/null
+++ b/.deco/blocks/pages-D%25C3%25BAvidas%2520fequentes-845579.json
@@ -0,0 +1,135 @@
+{
+ "name": "Dúvidas fequentes",
+ "path": "/duvidas-frequentes",
+ "sections": [
+ {
+ "__resolveType": "website/sections/Rendering/Lazy.tsx",
+ "section": {
+ "__resolveType": "Header"
+ }
+ },
+ {
+ "__resolveType": "site/sections/BreadcrumbInstitucional/Breadcrumb.tsx",
+ "root": "HOME",
+ "showText": true,
+ "path": "Ajuda",
+ "route": "Dúvidas frequentes"
+ },
+ {
+ "__resolveType": "site/sections/DuvidasFrequentes/DuvidasFrequentes.tsx",
+ "Menu": {
+ "__resolveType": "site/sections/MenuInstitucional/MenuInstitucional.tsx",
+ "institutionalLinks": [
+ {
+ "label": "Políticas de privacidade",
+ "route": "/politicas-de-privacidade"
+ },
+ {
+ "label": "Troca e devolução",
+ "route": "/troca-e-devolucao"
+ },
+ {
+ "label": "Termos e condições",
+ "route": "/termos-e-condicoes"
+ },
+ {
+ "label": "Formas de pagamento",
+ "route": "/formas-de-pagamento"
+ },
+ {
+ "route": "/formas-de-entrega",
+ "label": "Formas de entrega"
+ }
+ ],
+ "supportLinks": [
+ {
+ "label": "Fale conosco",
+ "route": "/fale-conosco"
+ },
+ {
+ "route": "/duvidas-frequentes",
+ "label": "Dúvidas frequentes"
+ }
+ ],
+ "links": [
+ {
+ "route": "/politicas-de-privacidade",
+ "label": "Políticas de privacidade"
+ },
+ {
+ "route": "/troca-e-devolucao",
+ "label": "Troca e devolução"
+ },
+ {
+ "route": "/termos-e-condicoes",
+ "label": "Termos e condições"
+ },
+ {
+ "route": "/formas-de-pagamento",
+ "label": "Formas de pagamento"
+ },
+ {
+ "route": "/formas-de-entrega",
+ "label": "Formas de entrega"
+ },
+ {
+ "route": "/fale-conosco",
+ "label": "Fale conosco"
+ },
+ {
+ "route": "/duvidas-frequentes",
+ "label": "Dúvidas frequentes"
+ }
+ ],
+ "institutionalTitle": "Ajuda",
+ "supportTitle": "Fale conosco"
+ },
+ "Question": {
+ "__resolveType": "site/sections/Content/FAQ.tsx",
+ "title": "Dúvidas frequentes",
+ "description": "
Ainda está com dúvida? Nos mande um e-mail e logo entraremos em contato com você o mais rápido possível. Fale conosco!
",
+ "enableJSONLD": true,
+ "questions": [
+ {
+ "title": "Pedido veio com embalagem aberta, posso trocar?",
+ "description": "Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor. Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor.
"
+ },
+ {
+ "title": "Quais os métodos de pagamento?",
+ "description": "Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor. Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor.
"
+ },
+ {
+ "title": "Comprei o produto errado, posso realizar a troca?",
+ "description": "Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor. Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor.
"
+ },
+ {
+ "title": "Comprar com o combo saí mais barato?",
+ "description": "Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor. Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor.
"
+ },
+ {
+ "title": "Ganho descontos se comprar mais de um?",
+ "description": "Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor. Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor.
"
+ },
+ {
+ "title": "Como utilizo meu código promocional?",
+ "description": "Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor. Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor.
"
+ },
+ {
+ "title": "Posso tomar todos os dias?",
+ "description": "Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor. Lorem ipsum dolor sit amet consectetur. Nulla ultrices tortor id quis sit varius risus. Ut commodo urna rhoncus nisl. Enim eget lobortis elit at sed viverra. Et integer augue mauris duis massa dignissim tortor.
"
+ }
+ ]
+ }
+ },
+ {
+ "__resolveType": "website/sections/Rendering/Lazy.tsx",
+ "section": {
+ "__resolveType": "Footer"
+ }
+ }
+ ],
+ "seo": {
+ "__resolveType": "website/sections/Seo/SeoV2.tsx"
+ },
+ "__resolveType": "website/pages/Page.tsx"
+}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 83a2f5c..e04360f 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -18,8 +18,5 @@
},
"files.associations": {
"*.svg": "html"
- },
- "[jsonc]": {
- "editor.defaultFormatter": "vscode.json-language-features"
}
}
\ No newline at end of file
diff --git a/deno.json b/deno.json
index c093b6a..5cb600c 100644
--- a/deno.json
+++ b/deno.json
@@ -32,8 +32,8 @@
"@deco/deco": "jsr:@deco/deco@1.107.0",
"simple-git": "npm:simple-git@^3.25.0",
"std/": "https://deno.land/std@0.190.0/",
- "deco/": "https://cdn.jsdelivr.net/gh/deco-cx/deco@1.107.2/",
- "apps/": "https://cdn.jsdelivr.net/gh/deco-cx/apps@0.64.4/",
+ "deco/": "https://cdn.jsdelivr.net/gh/deco-cx/deco@1.107.1/",
+ "apps/": "https://cdn.jsdelivr.net/gh/deco-cx/apps@0.64.2/",
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
"@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1",
"daisyui": "npm:daisyui@4.6.0",
diff --git a/islands/MenuInstitutionalMobile.tsx b/islands/MenuInstitutionalMobile.tsx
index b652829..6a61405 100644
--- a/islands/MenuInstitutionalMobile.tsx
+++ b/islands/MenuInstitutionalMobile.tsx
@@ -2,55 +2,56 @@ import { useState } from "preact/hooks";
import Icon from "site/components/ui/Icon.tsx";
interface MenuProps {
- links: LinkProps[];
- label: string;
+ links: LinkProps[];
+ label: string;
}
interface LinkProps {
- /**@title Rota */
- route: string;
- /**@title Rota */
- label: string;
+ /**@title Rota */
+ route: string;
+ /**@title Rota */
+ label: string;
}
export default function MenuInstitutionalMobile({ links, label }: MenuProps) {
- const [navigation, setNavigation] = useState(false);
+ const [navigation, setNavigation] = useState(false);
- return (
-
-
setNavigation(!navigation)}
- >
- {label}{" "}
-
-
- {navigation && (
-
- {links &&
- links.map((link, index) => (
-
- {link.label}
-
- ))}
+ return (
+
+
setNavigation(!navigation)}
+ >
+ {label}{" "}
+
+
+ {navigation && (
+
+ )}
- )}
-
- );
+ );
}
diff --git a/islands/ScrollButton.tsx b/islands/ScrollButton.tsx
index e2f5dfb..c2a1895 100644
--- a/islands/ScrollButton.tsx
+++ b/islands/ScrollButton.tsx
@@ -1,31 +1,31 @@
-import { useEffect, useState } from "preact/hooks";
+import { useState, useEffect } from "preact/hooks";
import Icon from "site/components/ui/Icon.tsx";
export default function ScrollButton() {
- const [isVisible, setisVisible] = useState(false)
+ const [isVisible, setisVisible] = useState(false)
- useEffect(() => {
- const activateButton = () => {
- if (window.scrollY > 375) {
- setisVisible(true)
- } else {
- setisVisible(false)
- }
- }
+ useEffect(() => {
+ const activateButton = () => {
+ if(window.scrollY > 375){
+ setisVisible(true)
+ } else {
+ setisVisible(false)
+ }
+ }
- self.addEventListener('scroll', activateButton)
- return () => removeEventListener('scroll', activateButton)
- }, [])
+ self.addEventListener('scroll', activateButton)
+ return () => removeEventListener('scroll', activateButton)
+ }, [])
- const scroll = () => {
- window.scrollTo({ top: 0, behavior: 'smooth' })
- }
+ const scroll = () => {
+ window.scrollTo({top: 0, behavior: 'smooth'})
+ }
- return (
-
- {isVisible &&
-
- }
-
- )
+ return(
+
+ {isVisible &&
+
+ }
+
+ )
}
\ No newline at end of file
diff --git a/manifest.gen.ts b/manifest.gen.ts
index 2a152fb..6d2aad0 100644
--- a/manifest.gen.ts
+++ b/manifest.gen.ts
@@ -26,34 +26,35 @@ import * as $$$$$$7 from "./sections/Content/FAQ.tsx";
import * as $$$$$$8 from "./sections/Content/Hero.tsx";
import * as $$$$$$9 from "./sections/Content/Intro.tsx";
import * as $$$$$$10 from "./sections/Content/Logos.tsx";
-import * as $$$$$$11 from "./sections/Footer/Footer.tsx";
-import * as $$$$$$12 from "./sections/GiftShelf/GiftShelf.tsx";
-import * as $$$$$$13 from "./sections/Header/Header.tsx";
-import * as $$$$$$14 from "./sections/HomeToCategoryBanner/HomeToCategoryBanner.tsx";
-import * as $$$$$$15 from "./sections/Images/Banner.tsx";
-import * as $$$$$$16 from "./sections/Images/Carousel.tsx";
-import * as $$$$$$17 from "./sections/Images/ImageGallery.tsx";
-import * as $$$$$$18 from "./sections/Images/ShoppableBanner.tsx";
-import * as $$$$$$19 from "./sections/InteractiveBanner/InteractiveBanner.tsx";
-import * as $$$$$$20 from "./sections/Links/LinkTree.tsx";
-import * as $$$$$$21 from "./sections/MenuInstitucional/MenuInstitucional.tsx";
-import * as $$$$$$22 from "./sections/Miscellaneous/CampaignTimer.tsx";
-import * as $$$$$$23 from "./sections/Miscellaneous/CookieConsent.tsx";
-import * as $$$$$$24 from "./sections/Miscellaneous/Spacer.tsx";
-import * as $$$$$$25 from "./sections/Newsletter/Newsletter.tsx";
-import * as $$$$$$26 from "./sections/Policy/Policy.tsx";
-import * as $$$$$$27 from "./sections/Product/ProductDetails.tsx";
-import * as $$$$$$28 from "./sections/Product/ProductShelf.tsx";
-import * as $$$$$$29 from "./sections/Product/ProductShelfTabbed.tsx";
-import * as $$$$$$30 from "./sections/Product/QuickView.tsx";
-import * as $$$$$$31 from "./sections/Product/SearchResult.tsx";
-import * as $$$$$$32 from "./sections/Product/ShelfWithImage.tsx";
-import * as $$$$$$33 from "./sections/Product/Wishlist.tsx";
-import * as $$$$$$34 from "./sections/Session.tsx";
-import * as $$$$$$35 from "./sections/Social/InstagramPosts.tsx";
-import * as $$$$$$36 from "./sections/Social/WhatsApp.tsx";
-import * as $$$$$$37 from "./sections/TabLayout/TabLayout.tsx";
-import * as $$$$$$38 from "./sections/Theme/Theme.tsx";
+import * as $$$$$$11 from "./sections/DuvidasFrequentes/DuvidasFrequentes.tsx";
+import * as $$$$$$12 from "./sections/Footer/Footer.tsx";
+import * as $$$$$$13 from "./sections/GiftShelf/GiftShelf.tsx";
+import * as $$$$$$14 from "./sections/Header/Header.tsx";
+import * as $$$$$$15 from "./sections/HomeToCategoryBanner/HomeToCategoryBanner.tsx";
+import * as $$$$$$16 from "./sections/Images/Banner.tsx";
+import * as $$$$$$17 from "./sections/Images/Carousel.tsx";
+import * as $$$$$$18 from "./sections/Images/ImageGallery.tsx";
+import * as $$$$$$19 from "./sections/Images/ShoppableBanner.tsx";
+import * as $$$$$$20 from "./sections/InteractiveBanner/InteractiveBanner.tsx";
+import * as $$$$$$21 from "./sections/Links/LinkTree.tsx";
+import * as $$$$$$22 from "./sections/MenuInstitucional/MenuInstitucional.tsx";
+import * as $$$$$$23 from "./sections/Miscellaneous/CampaignTimer.tsx";
+import * as $$$$$$24 from "./sections/Miscellaneous/CookieConsent.tsx";
+import * as $$$$$$25 from "./sections/Miscellaneous/Spacer.tsx";
+import * as $$$$$$26 from "./sections/Newsletter/Newsletter.tsx";
+import * as $$$$$$27 from "./sections/Policy/Policy.tsx";
+import * as $$$$$$28 from "./sections/Product/ProductDetails.tsx";
+import * as $$$$$$29 from "./sections/Product/ProductShelf.tsx";
+import * as $$$$$$30 from "./sections/Product/ProductShelfTabbed.tsx";
+import * as $$$$$$31 from "./sections/Product/QuickView.tsx";
+import * as $$$$$$32 from "./sections/Product/SearchResult.tsx";
+import * as $$$$$$33 from "./sections/Product/ShelfWithImage.tsx";
+import * as $$$$$$34 from "./sections/Product/Wishlist.tsx";
+import * as $$$$$$35 from "./sections/Session.tsx";
+import * as $$$$$$36 from "./sections/Social/InstagramPosts.tsx";
+import * as $$$$$$37 from "./sections/Social/WhatsApp.tsx";
+import * as $$$$$$38 from "./sections/TabLayout/TabLayout.tsx";
+import * as $$$$$$39 from "./sections/Theme/Theme.tsx";
const manifest = {
"loaders": {
@@ -77,34 +78,35 @@ const manifest = {
"site/sections/Content/Hero.tsx": $$$$$$8,
"site/sections/Content/Intro.tsx": $$$$$$9,
"site/sections/Content/Logos.tsx": $$$$$$10,
- "site/sections/Footer/Footer.tsx": $$$$$$11,
- "site/sections/GiftShelf/GiftShelf.tsx": $$$$$$12,
- "site/sections/Header/Header.tsx": $$$$$$13,
- "site/sections/HomeToCategoryBanner/HomeToCategoryBanner.tsx": $$$$$$14,
- "site/sections/Images/Banner.tsx": $$$$$$15,
- "site/sections/Images/Carousel.tsx": $$$$$$16,
- "site/sections/Images/ImageGallery.tsx": $$$$$$17,
- "site/sections/Images/ShoppableBanner.tsx": $$$$$$18,
- "site/sections/InteractiveBanner/InteractiveBanner.tsx": $$$$$$19,
- "site/sections/Links/LinkTree.tsx": $$$$$$20,
- "site/sections/MenuInstitucional/MenuInstitucional.tsx": $$$$$$21,
- "site/sections/Miscellaneous/CampaignTimer.tsx": $$$$$$22,
- "site/sections/Miscellaneous/CookieConsent.tsx": $$$$$$23,
- "site/sections/Miscellaneous/Spacer.tsx": $$$$$$24,
- "site/sections/Newsletter/Newsletter.tsx": $$$$$$25,
- "site/sections/Policy/Policy.tsx": $$$$$$26,
- "site/sections/Product/ProductDetails.tsx": $$$$$$27,
- "site/sections/Product/ProductShelf.tsx": $$$$$$28,
- "site/sections/Product/ProductShelfTabbed.tsx": $$$$$$29,
- "site/sections/Product/QuickView.tsx": $$$$$$30,
- "site/sections/Product/SearchResult.tsx": $$$$$$31,
- "site/sections/Product/ShelfWithImage.tsx": $$$$$$32,
- "site/sections/Product/Wishlist.tsx": $$$$$$33,
- "site/sections/Session.tsx": $$$$$$34,
- "site/sections/Social/InstagramPosts.tsx": $$$$$$35,
- "site/sections/Social/WhatsApp.tsx": $$$$$$36,
- "site/sections/TabLayout/TabLayout.tsx": $$$$$$37,
- "site/sections/Theme/Theme.tsx": $$$$$$38,
+ "site/sections/DuvidasFrequentes/DuvidasFrequentes.tsx": $$$$$$11,
+ "site/sections/Footer/Footer.tsx": $$$$$$12,
+ "site/sections/GiftShelf/GiftShelf.tsx": $$$$$$13,
+ "site/sections/Header/Header.tsx": $$$$$$14,
+ "site/sections/HomeToCategoryBanner/HomeToCategoryBanner.tsx": $$$$$$15,
+ "site/sections/Images/Banner.tsx": $$$$$$16,
+ "site/sections/Images/Carousel.tsx": $$$$$$17,
+ "site/sections/Images/ImageGallery.tsx": $$$$$$18,
+ "site/sections/Images/ShoppableBanner.tsx": $$$$$$19,
+ "site/sections/InteractiveBanner/InteractiveBanner.tsx": $$$$$$20,
+ "site/sections/Links/LinkTree.tsx": $$$$$$21,
+ "site/sections/MenuInstitucional/MenuInstitucional.tsx": $$$$$$22,
+ "site/sections/Miscellaneous/CampaignTimer.tsx": $$$$$$23,
+ "site/sections/Miscellaneous/CookieConsent.tsx": $$$$$$24,
+ "site/sections/Miscellaneous/Spacer.tsx": $$$$$$25,
+ "site/sections/Newsletter/Newsletter.tsx": $$$$$$26,
+ "site/sections/Policy/Policy.tsx": $$$$$$27,
+ "site/sections/Product/ProductDetails.tsx": $$$$$$28,
+ "site/sections/Product/ProductShelf.tsx": $$$$$$29,
+ "site/sections/Product/ProductShelfTabbed.tsx": $$$$$$30,
+ "site/sections/Product/QuickView.tsx": $$$$$$31,
+ "site/sections/Product/SearchResult.tsx": $$$$$$32,
+ "site/sections/Product/ShelfWithImage.tsx": $$$$$$33,
+ "site/sections/Product/Wishlist.tsx": $$$$$$34,
+ "site/sections/Session.tsx": $$$$$$35,
+ "site/sections/Social/InstagramPosts.tsx": $$$$$$36,
+ "site/sections/Social/WhatsApp.tsx": $$$$$$37,
+ "site/sections/TabLayout/TabLayout.tsx": $$$$$$38,
+ "site/sections/Theme/Theme.tsx": $$$$$$39,
},
"actions": {
"site/actions/minicart/submit.ts": $$$$$$$$$0,
diff --git a/sections/BreadcrumbInstitucional/Breadcrumb.tsx b/sections/BreadcrumbInstitucional/Breadcrumb.tsx
index d77fb3e..776914f 100644
--- a/sections/BreadcrumbInstitucional/Breadcrumb.tsx
+++ b/sections/BreadcrumbInstitucional/Breadcrumb.tsx
@@ -1,40 +1,40 @@
import Icon from "site/components/ui/Icon.tsx";
interface BreadcrumbProps {
- /**@title Raiz*/
- root: string;
- /**@title Habilitar Caminho */
- showText: boolean;
- /**@title Caminho */
- path: string;
- /**@title Rota Final */
- route: string;
+ /**@title Raiz*/
+ root: string;
+ /**@title Habilitar Caminho */
+ showText: boolean;
+ /**@title Caminho */
+ path: string;
+ /**@title Rota Final */
+ route: string;
}
export default function Breadcrumb(
- { root, showText, path, route }: BreadcrumbProps,
+ { root, showText, path, route }: BreadcrumbProps,
) {
- return (
-
-
-
-
-
- {root}
-
- {showText &&
- (
- <>
-
|
-
- {path}
-
- >
- )}
-
|
-
{route}
+ return (
+
+
+
+
+
+ {root}
+
+ {showText &&
+ (
+ <>
+
|
+
+ {path}
+
+ >
+ )}
+
|
+
{route}
+
+
-
-
- );
+ );
}
diff --git a/sections/DuvidasFrequentes/DuvidasFrequentes.tsx b/sections/DuvidasFrequentes/DuvidasFrequentes.tsx
new file mode 100644
index 0000000..a33e372
--- /dev/null
+++ b/sections/DuvidasFrequentes/DuvidasFrequentes.tsx
@@ -0,0 +1,17 @@
+import { Section } from "@deco/deco/blocks";
+
+interface Questions {
+ Question: Section;
+ Menu: Section;
+}
+
+export default function DuvidasFrequentes({ Menu: { Component: MenuInstitucional, props }, Question: { Component: FAQ, props:faqProps }}: Questions){
+ return(
+
+ )
+}
\ No newline at end of file
diff --git a/sections/MenuInstitucional/MenuInstitucional.tsx b/sections/MenuInstitucional/MenuInstitucional.tsx
index f884a26..dcda91d 100644
--- a/sections/MenuInstitucional/MenuInstitucional.tsx
+++ b/sections/MenuInstitucional/MenuInstitucional.tsx
@@ -3,97 +3,97 @@ import MenuInstitutionalMobile from "site/islands/MenuInstitutionalMobile.tsx";
/**@title Menu */
interface MenuProps {
- /**@title Menu Institucional*/
- institutionalTitle: string;
- /**@title Menu Suporte*/
- supportTitle: string;
- /**@title Rotas institucionais*/
- institutionalLinks: LinkProps[];
- /**@title Rotas suporte*/
- supportLinks: LinkProps[];
- /**@title Menu Mobile*/
- links: LinkProps[]
+ /**@title Menu Institucional*/
+ institutionalTitle: string;
+ /**@title Menu Suporte*/
+ supportTitle: string;
+ /**@title Rotas institucionais*/
+ institutionalLinks: LinkProps[];
+ /**@title Rotas suporte*/
+ supportLinks: LinkProps[];
+ /**@title Menu Mobile*/
+ links: LinkProps[]
}
/**@title Rota: {{ label }}*/
interface LinkProps {
- /**@title Rota*/
- route: string;
- /**@title Etiqueta*/
- label: string;
+ /**@title Rota*/
+ route: string;
+ /**@title Etiqueta*/
+ label: string;
}
export const loader = (menu: MenuProps, req: Request) => {
- const currentPath = new URL(req.url).pathname;
- const matchingLink = menu.links?.find((link) => link.route === currentPath)
- return {
- ...menu,
- currentPath,
- label: matchingLink ? matchingLink.label : "Menu",
- };
+ const currentPath = new URL(req.url).pathname;
+ const matchingLink = menu.links?.find((link) => link.route === currentPath)
+ return {
+ ...menu,
+ currentPath,
+ label: matchingLink ? matchingLink.label : "Menu",
+ };
};
export default function MenuInstitucional(
- {
- institutionalTitle,
- supportTitle,
- institutionalLinks,
- supportLinks,
- currentPath,
- label,
- links,
- }: ReturnType,
+ {
+ institutionalTitle,
+ supportTitle,
+ institutionalLinks,
+ supportLinks,
+ currentPath,
+ label,
+ links,
+ }: ReturnType,
) {
- return (
- <>
-
-
-
-
-
{institutionalTitle}
-
-
- {institutionalLinks?.map(({ route, label }, index) => (
-
-
- {label}
-
-
-
- ))}
-
-
-
-
-
-
{supportTitle}
-
-
- {supportLinks?.map(({ route, label }, index) => (
-
-
- {label}
-
-
- ))}
-
-
-
- >
- );
+ return (
+ <>
+
+
+
+
+
{institutionalTitle}
+
+
+ {institutionalLinks?.map(({ route, label }, index) => (
+
+
+ {label}
+
+
+
+ ))}
+
+
+
+
+
+
{supportTitle}
+
+
+ {supportLinks?.map(({ route, label }, index) => (
+
+
+ {label}
+
+
+ ))}
+
+
+
+ >
+ );
}
diff --git a/sections/Policy/Policy.tsx b/sections/Policy/Policy.tsx
index 3c647ea..6d0a080 100644
--- a/sections/Policy/Policy.tsx
+++ b/sections/Policy/Policy.tsx
@@ -1,41 +1,41 @@
-import { Section } from "@deco/deco/blocks";
import type { RichText } from "apps/admin/widgets.ts";
+import { Section } from "@deco/deco/blocks";
/**@title {{ title }}*/
interface PolicyProps {
- /**@title Título*/
- title: string;
+ /**@title Título*/
+ title: string;
- /**@title Subtítulo */
- subtitle?: string;
+ /**@title Subtítulo */
+ subtitle?: string;
- /**@title Texto */
- paragraph: RichText;
+ /**@title Texto */
+ paragraph: RichText;
}
interface ItemsProps {
- items: PolicyProps[];
+ items: PolicyProps[];
- Menu: Section
+ Menu: Section
}
export default function Policy({ items, Menu: { Component: MenuInstitucional, props } }: ItemsProps) {
- return (
-
-
-
- {items.map((content, index) => (
-
-
- {content.title}
- {content.subtitle}
-
-
-
- ))}
-
-
- );
+ return (
+
+
+
+ {items.map((content, index) => (
+
+
+ {content.title}
+ {content.subtitle}
+
+
+
+ ))}
+
+
+ );
}
diff --git a/static/tailwind.css b/static/tailwind.css
index 29f6f61..7c315d3 100644
--- a/static/tailwind.css
+++ b/static/tailwind.css
@@ -6122,13 +6122,6 @@ details.collapse summary::-webkit-details-marker {
box-shadow: 0 0 0 4px white inset, 0 0 0 4px white inset;
}
-.radio:not(:checked) {
- background-color: white;
-}
-.radio:checked {
- box-shadow: 0 0 0 4px white inset, 0 0 0 4px white inset;
-}
-
.breadcrumbs > ul > li + *:before,
.breadcrumbs > ol > li + *:before {
content: "|";
@@ -6143,13 +6136,13 @@ details.collapse summary::-webkit-details-marker {
color: #353535;
}
-.double-range{
- margin-top: 20px
+.double-range {
+ margin-top: 20px;
}
.double-range .range-slider {
height: 3px;
position: relative;
- background-color: #E8E7E5;
+ background-color: #e8e7e5;
border-radius: 100px;
}
.double-range .range-fill {
@@ -6158,7 +6151,7 @@ details.collapse summary::-webkit-details-marker {
right: 30%;
position: absolute;
border-radius: 5px;
- background-color: #D6DE23;
+ background-color: #d6de23;
}
.double-range .range-input {
position: relative;
@@ -6177,8 +6170,8 @@ details.collapse summary::-webkit-details-marker {
height: 16px;
width: 16px;
border-radius: 50%;
- background-color: #FF8300;
- border: 5px solid #D6DE23;
+ background-color: #ff8300;
+ border: 5px solid #d6de23;
pointer-events: auto;
-webkit-appearance: none;
cursor: pointer;
@@ -6187,8 +6180,8 @@ details.collapse summary::-webkit-details-marker {
height: 16px;
width: 16px;
border-radius: 50%;
- background-color: #FF8300;
- border: 5px solid #D6DE23;
+ background-color: #ff8300;
+ border: 5px solid #d6de23;
pointer-events: auto;
-moz-appearance: none;
cursor: pointer;
@@ -6550,6 +6543,10 @@ details.collapse summary::-webkit-details-marker {
}
@media (max-width: 1023px) {
+ .mobile\:mb-\[48px\] {
+ margin-bottom: 48px;
+ }
+
.mobile\:ml-0 {
margin-left: 0px;
}
@@ -6566,6 +6563,10 @@ details.collapse summary::-webkit-details-marker {
margin-top: 20px;
}
+ .mobile\:mt-\[24px\] {
+ margin-top: 24px;
+ }
+
.mobile\:block {
display: block;
}
@@ -7202,4 +7203,4 @@ details.collapse summary::-webkit-details-marker {
}
[data-aside].\[\[data-aside\]\&_section\]\:contents section {
display: contents;
-}
\ No newline at end of file
+}
diff --git a/tailwind.css b/tailwind.css
index 7fa0c52..6b166f5 100644
--- a/tailwind.css
+++ b/tailwind.css
@@ -85,13 +85,6 @@
box-shadow: 0 0 0 4px white inset, 0 0 0 4px white inset;
}
-.radio:not(:checked) {
- background-color: white;
-}
-.radio:checked {
- box-shadow: 0 0 0 4px white inset, 0 0 0 4px white inset;
-}
-
.breadcrumbs > ul > li + *:before,
.breadcrumbs > ol > li + *:before {
content: "|";
@@ -106,13 +99,13 @@
color: #353535;
}
-.double-range{
- margin-top: 20px
+.double-range {
+ margin-top: 20px;
}
.double-range .range-slider {
height: 3px;
position: relative;
- background-color: #E8E7E5;
+ background-color: #e8e7e5;
border-radius: 100px;
}
.double-range .range-fill {
@@ -121,7 +114,7 @@
right: 30%;
position: absolute;
border-radius: 5px;
- background-color: #D6DE23;
+ background-color: #d6de23;
}
.double-range .range-input {
position: relative;
@@ -140,8 +133,8 @@
height: 16px;
width: 16px;
border-radius: 50%;
- background-color: #FF8300;
- border: 5px solid #D6DE23;
+ background-color: #ff8300;
+ border: 5px solid #d6de23;
pointer-events: auto;
-webkit-appearance: none;
cursor: pointer;
@@ -150,9 +143,9 @@
height: 16px;
width: 16px;
border-radius: 50%;
- background-color: #FF8300;
- border: 5px solid #D6DE23;
+ background-color: #ff8300;
+ border: 5px solid #d6de23;
pointer-events: auto;
-moz-appearance: none;
cursor: pointer;
-}
\ No newline at end of file
+}