-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
a853ba0
commit 00818e0
Showing
6 changed files
with
281 additions
and
69 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import faqData from '../../config/content/faqData.js'; | ||
import { PersonalizedText, Heading, Paragraph } from '../shared/index.js'; | ||
|
||
function FAQ() { | ||
const Header1 = faqData.Header1; | ||
const Header2 = faqData.Header2; | ||
|
||
return ( | ||
<div className='md:w-[76%] w-[92%] justify-items-center mt-[10px] mb-[44px] mx-auto'> | ||
<div className='flex flex-col items-center justify-center mb-[40px]'> | ||
<Heading | ||
variant='h1' | ||
style={{ | ||
color: '#F2DA05', | ||
textShadow: '4.608px 4.608px 0px #000', | ||
webkitTextStrokeWidth: '2.71052622795105', | ||
webkitTextStrokeColor: '#252525', | ||
}}> | ||
{Header1} | ||
</Heading> | ||
<PersonalizedText style={{ color: 'var(--orange-dash, #FF4409)' }}>{Header2}</PersonalizedText> | ||
</div> | ||
<div className='flex flex-col items-start gap-[38px]'> | ||
{faqData.questions.map(({ id, question, answer }) => ( | ||
<div className='flex flex-col justify-center gap-[10px]' key={id}> | ||
<div className='flex gap-[10px] md:gap-[12px] flex-row'> | ||
<img className='h-[32px] aspect-square' src={faqData.img.src} alt={faqData.img.alt} /> | ||
<Heading variant='h3'>{question}</Heading> | ||
</div> | ||
{answer instanceof Array ? ( | ||
<ul className='list-[square] px-7'> | ||
{answer.map(({ key, content, bulleted }) => ( | ||
<li key={key} className={bulleted ? '' : 'list-none'}> | ||
<Paragraph variant='body3'>{content}</Paragraph> | ||
</li> | ||
))} | ||
</ul> | ||
) : ( | ||
<Paragraph variant='body3' className='ml-[18]'> | ||
{answer} | ||
</Paragraph> | ||
)} | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default FAQ; |
Oops, something went wrong.