Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/pillar #12

Merged
merged 2 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 29 additions & 7 deletions components/daisy/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,42 @@ export interface Props {
}

interface Child {
title: string;
subtitle: string;
title?: string;
description?: string;
}

export default function Accordion(props: Props) {
const { children } = props;

return (
<>
{children.map((c) => {
{children.map((c, index) => {
return (
<div className="collapse collapse-arrow bg-base-200">
<input type="radio" />
<div className="collapse-title text-xl font-medium">{c.title}</div>
<div className="collapse-content">{c.subtitle}</div>
<div
key={index}
className="grid grid-cols-5 justify-center items-center bg-primary rounded-[24px] mb-2 text-black dark:bg-secondary"
>
<input
type="radio"
name="pilar"
id={`pilar-${index}`}
className="appearance-none peer"
checked={index === 0}
/>
<h2 className="col-start-1 col-span-1 w-[66px] text-[2rem] font-black leading-loose flex justify-center items-center">
{index + 1}
</h2>
<label
htmlFor={`pilar-${index}`}
className="col-start-2 col-span-4 flex items-center cursor-pointer font-semibold text-lg"
>
<h3 className="font-black text-[1.5rem] leading-relaxed">
{c.title}
</h3>
</label>
<div className="col-start-2 col-span-4 peer-checked:mt-5 peer-checked:mr-6 peer-checked:mb-8 max-h-0 peer-checked:max-h-[1000px] overflow-hidden transition-max-height duration-300 ease-in-out ">
<p className="font-merriweather text-base">{c.description}</p>
</div>
</div>
);
})}
Expand Down
146 changes: 74 additions & 72 deletions manifest.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,42 +26,43 @@ import * as $$$$$$14 from "./sections/Content/Hero.tsx";
import * as $$$$$$15 from "./sections/Content/Intro.tsx";
import * as $$$$$$16 from "./sections/Content/Logos.tsx";
import * as $$$$$$17 from "./sections/Content/Partners.tsx";
import * as $$$$$$18 from "./sections/Content/RichText.tsx";
import * as $$$$$$19 from "./sections/Content/Table.tsx";
import * as $$$$$$20 from "./sections/Content/Testimonials.tsx";
import * as $$$$$$21 from "./sections/Content/TextSection.tsx";
import * as $$$$$$22 from "./sections/Content/TextWithImage.tsx";
import * as $$$$$$23 from "./sections/Content/VideoSection.tsx";
import * as $$$$$$24 from "./sections/Footer/Footer.tsx";
import * as $$$$$$25 from "./sections/Gallery.tsx";
import * as $$$$$$26 from "./sections/Header/Header.tsx";
import * as $$$$$$27 from "./sections/Images/BannerGrid.tsx";
import * as $$$$$$28 from "./sections/Images/Carousel.tsx";
import * as $$$$$$29 from "./sections/Images/ImageGallery.tsx";
import * as $$$$$$30 from "./sections/Images/ShoppableBanner.tsx";
import * as $$$$$$31 from "./sections/Layout/Container.tsx";
import * as $$$$$$32 from "./sections/Layout/Flex.tsx";
import * as $$$$$$33 from "./sections/Layout/Grid.tsx";
import * as $$$$$$34 from "./sections/Layout/GridItem.tsx";
import * as $$$$$$35 from "./sections/Links/LinkTree.tsx";
import * as $$$$$$36 from "./sections/Links/Shortcuts.tsx";
import * as $$$$$$37 from "./sections/Miscellaneous/CampaignTimer.tsx";
import * as $$$$$$38 from "./sections/Miscellaneous/CookieConsent.tsx";
import * as $$$$$$39 from "./sections/Miscellaneous/Slide.tsx";
import * as $$$$$$40 from "./sections/Newsletter/Newsletter.tsx";
import * as $$$$$$41 from "./sections/Product/ImageGalleryFrontBack.tsx";
import * as $$$$$$42 from "./sections/Product/ImageGallerySlider.tsx";
import * as $$$$$$43 from "./sections/Product/NotFound.tsx";
import * as $$$$$$44 from "./sections/Product/NotFoundChallenge.tsx";
import * as $$$$$$45 from "./sections/Product/ProductInfo.tsx";
import * as $$$$$$46 from "./sections/Product/ProductShelf.tsx";
import * as $$$$$$47 from "./sections/Product/ProductShelfTabbed.tsx";
import * as $$$$$$48 from "./sections/Product/SearchResult.tsx";
import * as $$$$$$49 from "./sections/Product/ShelfWithImage.tsx";
import * as $$$$$$50 from "./sections/Product/Wishlist.tsx";
import * as $$$$$$51 from "./sections/Social/InstagramPosts.tsx";
import * as $$$$$$52 from "./sections/Social/WhatsApp.tsx";
import * as $$$$$$53 from "./sections/Theme/Theme.tsx";
import * as $$$$$$18 from "./sections/Content/Pillars.tsx";
import * as $$$$$$19 from "./sections/Content/RichText.tsx";
import * as $$$$$$20 from "./sections/Content/Table.tsx";
import * as $$$$$$21 from "./sections/Content/Testimonials.tsx";
import * as $$$$$$22 from "./sections/Content/TextSection.tsx";
import * as $$$$$$23 from "./sections/Content/TextWithImage.tsx";
import * as $$$$$$24 from "./sections/Content/VideoSection.tsx";
import * as $$$$$$25 from "./sections/Footer/Footer.tsx";
import * as $$$$$$26 from "./sections/Gallery.tsx";
import * as $$$$$$27 from "./sections/Header/Header.tsx";
import * as $$$$$$28 from "./sections/Images/BannerGrid.tsx";
import * as $$$$$$29 from "./sections/Images/Carousel.tsx";
import * as $$$$$$30 from "./sections/Images/ImageGallery.tsx";
import * as $$$$$$31 from "./sections/Images/ShoppableBanner.tsx";
import * as $$$$$$32 from "./sections/Layout/Container.tsx";
import * as $$$$$$33 from "./sections/Layout/Flex.tsx";
import * as $$$$$$34 from "./sections/Layout/Grid.tsx";
import * as $$$$$$35 from "./sections/Layout/GridItem.tsx";
import * as $$$$$$36 from "./sections/Links/LinkTree.tsx";
import * as $$$$$$37 from "./sections/Links/Shortcuts.tsx";
import * as $$$$$$38 from "./sections/Miscellaneous/CampaignTimer.tsx";
import * as $$$$$$39 from "./sections/Miscellaneous/CookieConsent.tsx";
import * as $$$$$$40 from "./sections/Miscellaneous/Slide.tsx";
import * as $$$$$$41 from "./sections/Newsletter/Newsletter.tsx";
import * as $$$$$$42 from "./sections/Product/ImageGalleryFrontBack.tsx";
import * as $$$$$$43 from "./sections/Product/ImageGallerySlider.tsx";
import * as $$$$$$44 from "./sections/Product/NotFound.tsx";
import * as $$$$$$45 from "./sections/Product/NotFoundChallenge.tsx";
import * as $$$$$$46 from "./sections/Product/ProductInfo.tsx";
import * as $$$$$$47 from "./sections/Product/ProductShelf.tsx";
import * as $$$$$$48 from "./sections/Product/ProductShelfTabbed.tsx";
import * as $$$$$$49 from "./sections/Product/SearchResult.tsx";
import * as $$$$$$50 from "./sections/Product/ShelfWithImage.tsx";
import * as $$$$$$51 from "./sections/Product/Wishlist.tsx";
import * as $$$$$$52 from "./sections/Social/InstagramPosts.tsx";
import * as $$$$$$53 from "./sections/Social/WhatsApp.tsx";
import * as $$$$$$54 from "./sections/Theme/Theme.tsx";

const manifest = {
"loaders": {
Expand Down Expand Up @@ -91,42 +92,43 @@ const manifest = {
"deco-sites/mira-site/sections/Content/Intro.tsx": $$$$$$15,
"deco-sites/mira-site/sections/Content/Logos.tsx": $$$$$$16,
"deco-sites/mira-site/sections/Content/Partners.tsx": $$$$$$17,
"deco-sites/mira-site/sections/Content/RichText.tsx": $$$$$$18,
"deco-sites/mira-site/sections/Content/Table.tsx": $$$$$$19,
"deco-sites/mira-site/sections/Content/Testimonials.tsx": $$$$$$20,
"deco-sites/mira-site/sections/Content/TextSection.tsx": $$$$$$21,
"deco-sites/mira-site/sections/Content/TextWithImage.tsx": $$$$$$22,
"deco-sites/mira-site/sections/Content/VideoSection.tsx": $$$$$$23,
"deco-sites/mira-site/sections/Footer/Footer.tsx": $$$$$$24,
"deco-sites/mira-site/sections/Gallery.tsx": $$$$$$25,
"deco-sites/mira-site/sections/Header/Header.tsx": $$$$$$26,
"deco-sites/mira-site/sections/Images/BannerGrid.tsx": $$$$$$27,
"deco-sites/mira-site/sections/Images/Carousel.tsx": $$$$$$28,
"deco-sites/mira-site/sections/Images/ImageGallery.tsx": $$$$$$29,
"deco-sites/mira-site/sections/Images/ShoppableBanner.tsx": $$$$$$30,
"deco-sites/mira-site/sections/Layout/Container.tsx": $$$$$$31,
"deco-sites/mira-site/sections/Layout/Flex.tsx": $$$$$$32,
"deco-sites/mira-site/sections/Layout/Grid.tsx": $$$$$$33,
"deco-sites/mira-site/sections/Layout/GridItem.tsx": $$$$$$34,
"deco-sites/mira-site/sections/Links/LinkTree.tsx": $$$$$$35,
"deco-sites/mira-site/sections/Links/Shortcuts.tsx": $$$$$$36,
"deco-sites/mira-site/sections/Miscellaneous/CampaignTimer.tsx": $$$$$$37,
"deco-sites/mira-site/sections/Miscellaneous/CookieConsent.tsx": $$$$$$38,
"deco-sites/mira-site/sections/Miscellaneous/Slide.tsx": $$$$$$39,
"deco-sites/mira-site/sections/Newsletter/Newsletter.tsx": $$$$$$40,
"deco-sites/mira-site/sections/Product/ImageGalleryFrontBack.tsx": $$$$$$41,
"deco-sites/mira-site/sections/Product/ImageGallerySlider.tsx": $$$$$$42,
"deco-sites/mira-site/sections/Product/NotFound.tsx": $$$$$$43,
"deco-sites/mira-site/sections/Product/NotFoundChallenge.tsx": $$$$$$44,
"deco-sites/mira-site/sections/Product/ProductInfo.tsx": $$$$$$45,
"deco-sites/mira-site/sections/Product/ProductShelf.tsx": $$$$$$46,
"deco-sites/mira-site/sections/Product/ProductShelfTabbed.tsx": $$$$$$47,
"deco-sites/mira-site/sections/Product/SearchResult.tsx": $$$$$$48,
"deco-sites/mira-site/sections/Product/ShelfWithImage.tsx": $$$$$$49,
"deco-sites/mira-site/sections/Product/Wishlist.tsx": $$$$$$50,
"deco-sites/mira-site/sections/Social/InstagramPosts.tsx": $$$$$$51,
"deco-sites/mira-site/sections/Social/WhatsApp.tsx": $$$$$$52,
"deco-sites/mira-site/sections/Theme/Theme.tsx": $$$$$$53,
"deco-sites/mira-site/sections/Content/Pillars.tsx": $$$$$$18,
"deco-sites/mira-site/sections/Content/RichText.tsx": $$$$$$19,
"deco-sites/mira-site/sections/Content/Table.tsx": $$$$$$20,
"deco-sites/mira-site/sections/Content/Testimonials.tsx": $$$$$$21,
"deco-sites/mira-site/sections/Content/TextSection.tsx": $$$$$$22,
"deco-sites/mira-site/sections/Content/TextWithImage.tsx": $$$$$$23,
"deco-sites/mira-site/sections/Content/VideoSection.tsx": $$$$$$24,
"deco-sites/mira-site/sections/Footer/Footer.tsx": $$$$$$25,
"deco-sites/mira-site/sections/Gallery.tsx": $$$$$$26,
"deco-sites/mira-site/sections/Header/Header.tsx": $$$$$$27,
"deco-sites/mira-site/sections/Images/BannerGrid.tsx": $$$$$$28,
"deco-sites/mira-site/sections/Images/Carousel.tsx": $$$$$$29,
"deco-sites/mira-site/sections/Images/ImageGallery.tsx": $$$$$$30,
"deco-sites/mira-site/sections/Images/ShoppableBanner.tsx": $$$$$$31,
"deco-sites/mira-site/sections/Layout/Container.tsx": $$$$$$32,
"deco-sites/mira-site/sections/Layout/Flex.tsx": $$$$$$33,
"deco-sites/mira-site/sections/Layout/Grid.tsx": $$$$$$34,
"deco-sites/mira-site/sections/Layout/GridItem.tsx": $$$$$$35,
"deco-sites/mira-site/sections/Links/LinkTree.tsx": $$$$$$36,
"deco-sites/mira-site/sections/Links/Shortcuts.tsx": $$$$$$37,
"deco-sites/mira-site/sections/Miscellaneous/CampaignTimer.tsx": $$$$$$38,
"deco-sites/mira-site/sections/Miscellaneous/CookieConsent.tsx": $$$$$$39,
"deco-sites/mira-site/sections/Miscellaneous/Slide.tsx": $$$$$$40,
"deco-sites/mira-site/sections/Newsletter/Newsletter.tsx": $$$$$$41,
"deco-sites/mira-site/sections/Product/ImageGalleryFrontBack.tsx": $$$$$$42,
"deco-sites/mira-site/sections/Product/ImageGallerySlider.tsx": $$$$$$43,
"deco-sites/mira-site/sections/Product/NotFound.tsx": $$$$$$44,
"deco-sites/mira-site/sections/Product/NotFoundChallenge.tsx": $$$$$$45,
"deco-sites/mira-site/sections/Product/ProductInfo.tsx": $$$$$$46,
"deco-sites/mira-site/sections/Product/ProductShelf.tsx": $$$$$$47,
"deco-sites/mira-site/sections/Product/ProductShelfTabbed.tsx": $$$$$$48,
"deco-sites/mira-site/sections/Product/SearchResult.tsx": $$$$$$49,
"deco-sites/mira-site/sections/Product/ShelfWithImage.tsx": $$$$$$50,
"deco-sites/mira-site/sections/Product/Wishlist.tsx": $$$$$$51,
"deco-sites/mira-site/sections/Social/InstagramPosts.tsx": $$$$$$52,
"deco-sites/mira-site/sections/Social/WhatsApp.tsx": $$$$$$53,
"deco-sites/mira-site/sections/Theme/Theme.tsx": $$$$$$54,
},
"apps": {
"deco-sites/mira-site/apps/decohub.ts": $$$$$$$$$$$0,
Expand Down
44 changes: 44 additions & 0 deletions sections/Content/Pillars.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import Accordion from "$store/components/daisy/Accordion.tsx";

export interface AccordionItems {
title?: string;
description?: string;
}

export interface Props {
title?: string;
description?: string;
accordionItems?: AccordionItems[];
}

const accordionExample = {
title: "RECLAMAR AGIR",
description:
"Qual é a ação prática que eu posso tomar para abrir mão da reclamação persistente que tenho tido?",
};

export default function Pillars(
{
title = "OS PILARES DO MÉTODO MIRA",
description =
"Leia nossos 8 pilares e descubra o que é preciso para viver em alto desempenho.",
accordionItems = Array(7).fill(0).map(() => accordionExample),
}: Props,
) {
return (
<section class="text-base-200 px-6 py-10 lg:px-16 lg:py-40">
<div class="max-w-[640px] space-y-6 mb-10 lg:mb-20">
<h2 class="text-[1.5rem] lg:text-[2.5rem] leading-relaxed lg:leading-[2.75rem] font-black dark:bg-[#FFF8E6]">
{title}
</h2>

<p class="font-merriweather text-base lg:text-[1.5rem] lg:leading-[2.25rem] font-normal dark:bg-[#FFF8E6]">
{description}
</p>
</div>
<Accordion
children={accordionItems}
/>
</section>
);
}
Loading