Skip to content
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
8 changes: 8 additions & 0 deletions __tests__/components/Sections/InfoBlock.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { render } from "@testing-library/react";
import InfoBlock from "../../../components/Sections/InfoBlock";

describe("InfoBlock ", () => {
it("should render the component", () => {
render(<InfoBlock />);
});
});
8 changes: 0 additions & 8 deletions __tests__/components/Sections/InfoCarousel.test.jsx

This file was deleted.

8 changes: 8 additions & 0 deletions __tests__/components/Sections/WhyInvest.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { render } from "@testing-library/react";
import WhyInvest from "../../../components/Sections/WhyInvest";

describe("WhyInvest", () => {
it("should render the component", () => {
render(<WhyInvest />);
});
});
8 changes: 0 additions & 8 deletions __tests__/components/Sections/WhyInvest1.test.jsx

This file was deleted.

8 changes: 0 additions & 8 deletions __tests__/components/Sections/WhyInvest2.test.jsx

This file was deleted.

38 changes: 38 additions & 0 deletions components/FAQCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
export default function FAQCard({ title, listItems }) {
return (
<div className="w-full md:w-1/2 lg:w-1/3 mb-8 px-4">
<div>
<span className="mx-auto mb-6 flex items-center justify-center w-16 h-16 p-3 bg-indigo-700 rounded-full">
<svg
className="text-gray-50"
width={32}
height={32}
viewBox="0 0 32 32"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M18.1332 14.5333C18.2665 14.6667 18.3998 14.6667 18.6665 14.6667H27.9998C28.7998 14.6667 29.3332 14.1333 29.3332 13.3333C29.3332 13.0667 29.3332 12.9333 29.1998 12.8L24.5332 3.46667C24.1332 2.8 23.3332 2.53334 22.6665 2.93334C22.5332 3.06667 22.2665 3.2 22.1332 3.46667L17.4665 12.8C17.1998 13.3333 17.4665 14.1333 18.1332 14.5333ZM23.3332 6.93334L25.8665 12H20.7998L23.3332 6.93334ZM8.6665 2.66667C5.33317 2.66667 2.6665 5.33334 2.6665 8.66667C2.6665 12 5.33317 14.6667 8.6665 14.6667C11.9998 14.6667 14.6665 12 14.6665 8.66667C14.6665 5.33334 11.9998 2.66667 8.6665 2.66667ZM8.6665 12C6.79984 12 5.33317 10.5333 5.33317 8.66667C5.33317 6.80001 6.79984 5.33334 8.6665 5.33334C10.5332 5.33334 11.9998 6.80001 11.9998 8.66667C11.9998 10.5333 10.5332 12 8.6665 12ZM14.2665 17.7333C13.7332 17.2 12.9332 17.2 12.3998 17.7333L8.6665 21.4667L4.93317 17.7333C4.39984 17.2 3.59984 17.2 3.0665 17.7333C2.53317 18.2667 2.53317 19.0667 3.0665 19.6L6.79984 23.3333L3.0665 27.0667C2.53317 27.6 2.53317 28.4 3.0665 28.9333C3.59984 29.4667 4.39984 29.4667 4.93317 28.9333L8.6665 25.2L12.3998 28.9333C12.9332 29.4667 13.7332 29.4667 14.2665 28.9333C14.7998 28.4 14.7998 27.6 14.2665 27.0667L10.5332 23.3333L14.2665 19.6C14.7998 19.0667 14.7998 18.2667 14.2665 17.7333ZM27.9998 17.3333H18.6665C17.8665 17.3333 17.3332 17.8667 17.3332 18.6667V28C17.3332 28.8 17.8665 29.3333 18.6665 29.3333H27.9998C28.7998 29.3333 29.3332 28.8 29.3332 28V18.6667C29.3332 17.8667 28.7998 17.3333 27.9998 17.3333ZM26.6665 26.6667H19.9998V20H26.6665V26.6667Z"
fill="currentColor"
/>
</svg>
</span>
<h3 className="mb-2 text-lg lg:text-2xl font-bold font-heading">
{title}
</h3>
<ul className="list-inside list-disc leading-loose text-gray-600 pl-4">
{listItems?.map(({ text, href }, index) => (
<li className="text-indigo-500" key={`${index}-faq-card`}>
<a
className="text-gray-600 hover:underline hover:font-bold"
href={href}
>
{text}
</a>
</li>
))}
</ul>
</div>
</div>
);
}
35 changes: 35 additions & 0 deletions components/FactSnippetsHero.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
export default function FactSnippetsHero({
subTitle,
title,
description,
cta1,
cta2,
cta1Href,
cta2Href,
}) {
return (
<div className="max-w-3xl mx-auto mb-12 lg:mb-16 text-center">
<span className="text-sm text-indigo-500 font-bold uppercase">
{subTitle}
</span>
<h2 className="mt-2 mb-4 text-3xl leading-tight md:text-4xl md:leading-tight lg:text-5xl lg:leading-tight font-bold font-heading">
{title}
</h2>
<p className="text-lg text-gray-500 leading-loose">{description}</p>
<div className="mt-8">
<a
className="block md:inline-block px-5 py-3 md:mr-3 mb-3 md:mb-0 text-sm bg-indigo-500 hover:bg-indigo-600 text-white font-semibold border border-indigo-500 hover:border-indigo-600 rounded transition duration-200"
href={cta1Href}
>
{cta1}
</a>
<a
className="block md:inline-block px-5 py-3 text-sm font-semibold text-indigo-500 hover:text-white hover:bg-indigo-500 border border-indigo-500 hover:border-indigo-600 rounded transition duration-200"
href={cta2Href}
>
{cta2}
</a>
</div>
</div>
);
}
163 changes: 0 additions & 163 deletions components/Sections/Considerations.jsx

This file was deleted.

Loading