diff --git a/site/components/Faq.js b/site/components/Faq.js index 7cac793..c514266 100644 --- a/site/components/Faq.js +++ b/site/components/Faq.js @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { HelpCircle, Info, CheckCircle, XCircle } from 'lucide-react'; +import { HelpCircle, Info, CheckCircle, Settings } from 'lucide-react'; const Faq = () => { const [activeIndex, setActiveIndex] = useState(null); @@ -20,7 +20,7 @@ const Faq = () => { }, { question: 'How can I create a BioTree?', - answer: 'To create your BioTree, simply sign up, create an account, and start adding your social media links to your profile. It’s quick and easy!', + answer: 'To create your BioTree, simply sign up, create an account, and start adding your social media links to your profile. It\'s quick and easy!', icon: }, { @@ -31,7 +31,7 @@ const Faq = () => { { question: 'Can I customize my BioTree?', answer: 'Absolutely! You can customize the appearance of your BioTree by selecting from various themes and layouts to match your personal style or brand.', - icon: + icon: } ]; @@ -40,44 +40,45 @@ const Faq = () => {

Frequently Asked Questions

{faqData.map((faq, index) => ( -
handleMouseEnter(index)} - onMouseLeave={handleMouseLeave} - > -
-
- {/* Inline style for 360-degree rotation */} - - {faq.icon} - -
-
-

{faq.question}

-
-
-
-

{faq.answer}

-
- {activeIndex === index ? 'Hide' : 'Show'} Answer -
+
handleMouseEnter(index)} + onMouseLeave={handleMouseLeave} + onClick={() => setActiveIndex(activeIndex === index ? null : index)} // Add this line +> +
+
+
+ + {faq.icon} + +
+ +

{faq.question}

+
+ {activeIndex === index ? 'Hide' : 'Show'} Answer +
+
+

{faq.answer}

+
+
))}
); }; -export default Faq; +export default Faq; \ No newline at end of file