faq
This commit is contained in:
parent
fa1f1a8faa
commit
97349e4b62
1 changed files with 4 additions and 2 deletions
|
|
@ -52,19 +52,21 @@ const FAQ = () => {
|
|||
setOpenIndices([...openIndices, index])
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='max-lg:ml-[10%] min-[1700px]:ml-[-9%] min-[1900px]:ml-[-15%] min-[2000px]:ml-[-20%] min-[2300px]:ml-[-27%]'>
|
||||
<h1 className='mb-10 text-2xl font-bold text-center text-white '>FAQ</h1>
|
||||
<h1 className='mb-10 text-2xl font-bold text-center text-white '>HELP CENTER</h1>
|
||||
<div className=' w-[80vw]'>
|
||||
<div className='grid grid-cols-1 gap-x-2 gap-y-6 md:grid-cols-2 '>
|
||||
{faqData.map((item, index) => {
|
||||
console.log(index,openIndices.includes(index))
|
||||
return (
|
||||
<div
|
||||
key={index}
|
||||
className={`cursor-pointer rounded-lg bg-[#171E31] px-4 py-5 shadow-sm shadow-slate-800 `}
|
||||
onClick={() => toggleAnswer(index)}>
|
||||
<div className='flex items-center justify-between '>
|
||||
<h3 className='text-xl font-medium text-white '>
|
||||
<h3 className='text-xl font-light text-white '>
|
||||
{item.question}
|
||||
</h3>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue