Skip to content

Commit

Permalink
fix: QA
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoaraujotl committed Mar 20, 2024
1 parent d2db14e commit 96bf754
Show file tree
Hide file tree
Showing 15 changed files with 379 additions and 331 deletions.
6 changes: 4 additions & 2 deletions components/cards/ImageCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ function Card(
/>
)}
</a>
{/* {buttonText && (
{
/* {buttonText && (
<a href={href} class={getButtonClasses(style?.button || {})}>
{buttonText}
</a>
)} */}
)} */
}
</div>
);
}
Expand Down
1 change: 0 additions & 1 deletion components/header/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function Menu({ items }: Props) {
</li>
))}
</ul>

</div>
);
}
Expand Down
9 changes: 7 additions & 2 deletions components/layout/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function Section({ interval = 0, layout, style, children }: Props) {
{items?.map((item, index) => (
<Slider.Item
index={index}
class="carousel-item snap-center min-h-[580px] flex items-baseline"
class="carousel-item snap-center min-h-[580px] flex items-baseline max-[1020px]:max-w-full"
style={{ width: layout?.itemWidth || "auto" }}
>
{item}
Expand Down Expand Up @@ -123,7 +123,12 @@ function Section({ interval = 0, layout, style, children }: Props) {
</ul>
)}

<SliderJS rootId={id} interval={interval && interval * 1e3} infinite centerMode={true} />
<SliderJS
rootId={id}
interval={interval && interval * 1e3}
infinite
centerMode={true}
/>
</div>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion components/minicart/Cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Cart({ platform }: Props) {
}

if (platform === "linx") {
return ;
return;
}

if (platform === "shopify") {
Expand Down
8 changes: 2 additions & 6 deletions components/ui/ContactInput.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
export function ScriptRespondi() {


return (
<script></script>
)
}
return <script></script>;
}
6 changes: 2 additions & 4 deletions components/ui/SectionHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ function Header(props: Props) {
<h1
class={clx(
"text-[40px] font-semibold leading-8 lg:leading-10 max-[1020px]:text-[25px]",
props.colorReverse
? "text-[#012E66]"
: "text-[#012E66]"
props.colorReverse ? "text-[#012E66]" : "text-[#012E66]",
)}
>
{props.title}
Expand All @@ -44,7 +42,7 @@ function Header(props: Props) {
"leading-6 lg:leading-8 text-[20px] max-[1020px]:text-[20px]",
props.colorReverse
? "text-primary-content"
: "text-base-content"
: "text-base-content",
)}
>
{props.description}
Expand Down
8 changes: 4 additions & 4 deletions components/ui/SliderJS.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface Props {
scroll?: "smooth" | "auto";
interval?: number;
infinite?: boolean;
centerMode?: boolean
centerMode?: boolean;
}

const ATTRIBUTES = {
Expand Down Expand Up @@ -190,14 +190,14 @@ function Slider({
scroll = "smooth",
interval,
infinite = false,
centerMode = true
centerMode = true,
}: Props) {
useEffect(() => setup({ rootId, scroll, interval, infinite, centerMode}), [
useEffect(() => setup({ rootId, scroll, interval, infinite, centerMode }), [
rootId,
scroll,
interval,
infinite,
centerMode
centerMode,
]);

return <div data-slider-controller-js />;
Expand Down
5 changes: 3 additions & 2 deletions routes/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ export default defineApp(async (_req, ctx) => {
<link rel="manifest" href={asset("/site.webmanifest")} />
</Head>

<script
<script
dangerouslySetInnerHTML={{
__html: `const bodyScript=document.querySelector('body'),hasScript=document.querySelector('#respondi_src');if(!hasScript){const script=document.createElement('script');script.setAttribute("async", "");document.body.appendChild(script),script.id='respondi_src',script.src='https://embed.respondi.app/embed.js';}`
__html:
`const bodyScript=document.querySelector('body'),hasScript=document.querySelector('#respondi_src');if(!hasScript){const script=document.createElement('script');script.setAttribute("async", "");document.body.appendChild(script),script.id='respondi_src',script.src='https://embed.respondi.app/embed.js';}`,
}}
/>

Expand Down
2 changes: 1 addition & 1 deletion sections/Apresentacao/Apresentacao.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface Props {
}

const DEFAULT_TEXT =
'<h2>O que é uma garantidora de condomínio?</h2> <p>Uma <strong>Cedrom</strong> é uma empresa que assume a cobrança da taxa condominial e repassa ao condomínio o valor das taxas pagas e não pagas pelos condôminos. <br/>A cobrança dos atrasados é feita diretamente pela Cedrom, eliminando os custos e os riscos jurídicos para a condomínio. Com a receita garantida, o Síndico tem a certeza do valor que irá entrar na conta do condomínio, sem risco de falta de caixa devido a inadimplência.</p>';
"<h2>O que é uma garantidora de condomínio?</h2> <p>Uma <strong>Cedrom</strong> é uma empresa que assume a cobrança da taxa condominial e repassa ao condomínio o valor das taxas pagas e não pagas pelos condôminos. <br/>A cobrança dos atrasados é feita diretamente pela Cedrom, eliminando os custos e os riscos jurídicos para a condomínio. Com a receita garantida, o Síndico tem a certeza do valor que irá entrar na conta do condomínio, sem risco de falta de caixa devido a inadimplência.</p>";

export default function RichText(
{ text = DEFAULT_TEXT, containerWidth }: Props,
Expand Down
114 changes: 59 additions & 55 deletions sections/ComoFunciona/ComoFunciona.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,66 +2,70 @@
* @title {{{text}}}
*/
export interface ComoFunciona {
/**
* @title Número da etapa
*/
number?: number;
/**
* @title Texto da etapa
*/
text?: string;
/**
* @title Número da etapa
*/
number?: number;
/**
* @title Texto da etapa
*/
text?: string;
}

export interface Props {
title?: string;
content?: ComoFunciona[]
title?: string;
content?: ComoFunciona[];
}

const DEFAULT_PROPS = {
content: [
{
number: 1,
text: 'Simulação do financiamento'
},
{
number: 2,
text: 'Envio de documentaçãopreliminar'
},
{
number: 3,
text: 'Análise de crédito'
},
{
number: 4,
text: 'Aprovação do empréstimo em assembleia'
},
{
number: 5,
text: 'Liberação do dinheiro para o condomínio'
}
]
}
content: [
{
number: 1,
text: "Simulação do financiamento",
},
{
number: 2,
text: "Envio de documentaçãopreliminar",
},
{
number: 3,
text: "Análise de crédito",
},
{
number: 4,
text: "Aprovação do empréstimo em assembleia",
},
{
number: 5,
text: "Liberação do dinheiro para o condomínio",
},
],
};

export default function ComoFunciona(props: Props) {
const {
content,
} = { ...DEFAULT_PROPS, ...props };

export default function ComoFunciona( props: Props ) {
const {
content
} = { ...DEFAULT_PROPS, ...props}

return (
(content) ?
<div class="bg-[#012E66] flex-wrap flex w-full py-[15px] my-[20px]">
<h3 class="text-[30px] text-[#ffffff] w-full text-center font-[900] ">Como funciona na prática?</h3>
<div class=" container grid grid-cols-[repeat(5,_1fr)] grid-rows-[1fr] gap-x-[0px] gap-y-[0px] w-full max-[1020px]:grid-cols-[1fr]">
{content.map((item) => (
<div class="flex items-center align-middle mx-auto ">
<p class="bg-transparent text-transparent content-text-edit text-[80px] mr-[5px] font-bold">{item?.number}</p>
<span class="text-[#ffffff] w-[125px]">{item?.text}</span>
</div>
)
)}
</div>
</div>
: ''
)
}
return (
content
? (
<div class="bg-[#012E66] flex-wrap flex w-full py-[15px] my-[20px]">
<h3 class="text-[30px] text-[#ffffff] w-full text-center font-[900] ">
Como funciona na prática?
</h3>
<div class=" container grid grid-cols-[repeat(5,_1fr)] grid-rows-[1fr] gap-x-[0px] gap-y-[0px] w-full max-[1020px]:grid-cols-[1fr]">
{content.map((item) => (
<div class="flex items-center align-middle mx-auto ">
<p class="bg-transparent text-transparent content-text-edit text-[80px] mr-[5px] font-bold">
{item?.number}
</p>
<span class="text-[#ffffff] w-[125px]">{item?.text}</span>
</div>
))}
</div>
</div>
)
: ""
);
}
Loading

0 comments on commit 96bf754

Please sign in to comment.