-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
46 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12572,4 +12572,4 @@ | |
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,45 @@ | ||
export interface Props { | ||
contact: string; | ||
questions: Array<{ | ||
question: string; | ||
answer: string | ||
}>; | ||
contact: string; | ||
questions: Array<{ | ||
question: string; | ||
answer: string; | ||
}>; | ||
} | ||
|
||
export default function FAQ({ questions, contact }: Props) { | ||
return ( | ||
export default function FAQ({ questions, contact }: Props) { | ||
return ( | ||
<div class="base-500"> | ||
<div class="container sm:w-1/2 px-4 my-16"> | ||
<h2 class="text-5xl text-center mb-6">FAQs</h2> | ||
<p class="text-lg text-center mb-20 p-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.</p> | ||
<ul> | ||
{questions.map(({ | ||
question, answer | ||
}) => | ||
<div tabIndex={0} class="collapse collapse-arrow"> | ||
<div> | ||
<li class="collapse-title border-t text-xl font-medium px-0">{question}</li> | ||
</div> | ||
<div class="collapse-content px-0 collapse-close"> | ||
<li>{answer}</li> | ||
</div> | ||
</div> | ||
)} | ||
</ul> | ||
<h3 class="text-4xl text-center mt-20 mb-3 p-text">Still have a question?</h3> | ||
<p class="text-lg text-center mb-6 p-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | ||
<a href={contact} class="my-btn">Contact</a> | ||
</div> | ||
<div class="container sm:w-1/2 px-4 my-16"> | ||
<h2 class="text-5xl text-center mb-6">FAQs</h2> | ||
<p class="text-lg text-center mb-20 p-text"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse | ||
varius enim in eros elementum tristique. | ||
</p> | ||
<ul> | ||
{questions.map(({ | ||
question, | ||
answer, | ||
}) => ( | ||
<div tabIndex={0} class="collapse collapse-arrow"> | ||
<div> | ||
<li class="collapse-title border-t text-xl font-medium px-0"> | ||
{question} | ||
</li> | ||
</div> | ||
<div class="collapse-content px-0 collapse-close"> | ||
<li>{answer}</li> | ||
</div> | ||
</div> | ||
))} | ||
</ul> | ||
<h3 class="text-4xl text-center mt-20 mb-3 p-text"> | ||
Still have a question? | ||
</h3> | ||
<p class="text-lg text-center mb-6 p-text"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
</p> | ||
<a href={contact} class="my-btn">Contact</a> | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
} |