diff --git a/components/FAQ/faq.js b/components/FAQ/faq.js deleted file mode 100644 index 64cace5f..00000000 --- a/components/FAQ/faq.js +++ /dev/null @@ -1,44 +0,0 @@ -import React, { useState } from 'react'; -import faqsData from '../../config/faq-lists.json'; - -const FaqPage = () => { - const [faqs, setFaqs] = useState(faqsData.faqs); - - const toggleFAQ = (index) => { - setFaqs( - faqs.map((faq, i) => { - if (i === index) { - // Toggle the 'open' property - return { ...faq, open: !faq.open }; - } else { - return { ...faq, open: false }; - } - }) - ); - }; - - return ( -
-
-

Do you have questions for us?

- {faqs.map((faq, index) => ( -
- - {faq.open &&

{faq.answer}

} -
- ))} -
-
- Event -
-
- ); -}; - -export default FaqPage; diff --git a/config/faq-lists.json b/config/faq-lists.json deleted file mode 100644 index 89012cf9..00000000 --- a/config/faq-lists.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "faqs": [ - { - "question": "Is there a dress code for the event?", - "answer": "The dress code for the event is casual/business casual. Feel free to dress comfortably." - }, - { - "question": "Will food and beverages be provided?", - "answer": "Light refreshments and beverages will be provided during breaks. Lunch will not be provided, but there are several dining options nearby." - }, - { - "question": "Are children allowed at the event?", - "answer": "While children are welcome, please keep in mind that the event is designed for adults. We recommend arranging for childcare if possible." - }, - { - "question": "Is the event wheelchair accessible?", - "answer": "Yes, the event venue is wheelchair accessible. Please let us know in advance if you require any accommodations." - }, - { - "question": "Can I bring my pet to the event?", - "answer": "With the exception of service animals, pets are not allowed at the event venue." - }, - { - "question": "Will there be Wi-Fi available?", - "answer": "Yes, complimentary Wi-Fi will be available to all event attendees." - } - ] - } - \ No newline at end of file diff --git a/config/links.json b/config/links.json index ba62e7e2..cf23c125 100644 --- a/config/links.json +++ b/config/links.json @@ -21,10 +21,6 @@ } ] }, - { - "title": "FAQs", - "ref": "/faq" - }, { "title": "Speakers", "ref": "/#speakers" diff --git a/pages/faq.js b/pages/faq.js deleted file mode 100644 index 8164278d..00000000 --- a/pages/faq.js +++ /dev/null @@ -1,8 +0,0 @@ -// pages/faq.js -import FaqPage from '../components/FAQ/faq'; - -const Faq = () => { - return ; -}; - -export default Faq;