Skip to content

Commit

Permalink
Use collapse-arrow on faq items
Browse files Browse the repository at this point in the history
  • Loading branch information
portdeveloper committed Aug 19, 2024
1 parent 567f26a commit 2b27510
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/nextjs/components/extensions-hackathon/Faq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,9 @@ export const Faq = () => {
<div className="md:w-1/2 md:mb-12">
<h2 className="text-4xl my-12 text-center">FAQ</h2>
{faqData.map((item: FaqItem, index) => (
<div key={index} tabIndex={0} className="collapse mb-2 relative">
<div key={index} tabIndex={0} className="collapse collapse-arrow mb-2 rounded-none">
<input type="checkbox" className="peer" />
<div className="collapse-title ml-4 flex justify-between items-center">
{item.question}
<svg
width="41"
height="19"
viewBox="0 0 41 19"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="transform transition-transform duration-200 peer-checked:rotate-180 scale-75"
>
<path d="M1.12109 1.37894L20.1521 17.032L39.5001 1.11816" stroke="#182232" strokeWidth="2" />
</svg>
</div>
<div className="collapse-title ml-4 flex justify-between items-center">{item.question}</div>
<div className="collapse-content ml-4">
<p dangerouslySetInnerHTML={{ __html: item.answer }}></p>
</div>
Expand Down

0 comments on commit 2b27510

Please sign in to comment.