diff --git a/src/Pages/Resources.jsx b/src/Pages/Resources.jsx index 17e2143..84e2444 100644 --- a/src/Pages/Resources.jsx +++ b/src/Pages/Resources.jsx @@ -2,193 +2,192 @@ import React, { useState, useRef, useEffect } from 'react'; import { ArrowLeft, Scale, Info, Phone, HelpCircle, ChevronDown, FileText } from 'lucide-react'; const AnimatedAccordion = ({ item, index, isOpen, onToggle }) => { - const contentRef = useRef(null); - const [height, setHeight] = useState(0); + const contentRef = useRef(null); + const [height, setHeight] = useState(0); - useEffect(() => { - if (contentRef.current) { - setHeight(isOpen ? contentRef.current.scrollHeight : 0); - } - }, [isOpen]); + useEffect(() => { + if (contentRef.current) { + setHeight(isOpen ? contentRef.current.scrollHeight : 0); + } + }, [isOpen]); - return ( -
- -
-
-

- {item.answer} -

-
-
-
- ); + return ( +
+ +
+
+

+ {item.answer} +

+
+
+
+ ); }; const faqData = [ - { - question: 'Can I file a complaint anonymously?', - answer: 'Currently, you must register to file a complaint so authorities can track and respond.', - }, - { - question: 'What happens after I submit a complaint?', - answer: 'Your complaint is reviewed by the appropriate department and progress is tracked.', - }, - { - question: 'How long does it take to resolve?', - answer: 'Timelines vary, but we aim to address issues within 7 working days.', - }, - { - question: 'Will I be notified of status changes?', - answer: "Yes, you'll receive email or dashboard updates on status changes.", - }, + { + question: 'Can I file a complaint anonymously?', + answer: 'Currently, you must register to file a complaint so authorities can track and respond.', + }, + { + question: 'What happens after I submit a complaint?', + answer: 'Your complaint is reviewed by the appropriate department and progress is tracked.', + }, + { + question: 'How long does it take to resolve?', + answer: 'Timelines vary, but we aim to address issues within 7 working days.', + }, + { + question: 'Will I be notified of status changes?', + answer: "Yes, you'll receive email or dashboard updates on status changes.", + }, ]; const Resources = () => { - const [openIndex, setOpenIndex] = useState(null); + const [openIndex, setOpenIndex] = useState(null); - const toggleFAQ = (index) => { - setOpenIndex(openIndex === index ? null : index); - }; + const toggleFAQ = (index) => { + setOpenIndex(openIndex === index ? null : index); + }; - return ( -
- {/* Floating orbs */} -
-
-
+ return ( +
+ {/* Floating Decorative Circles */} +
+
+
+ {/* Back button */} + - {/* Back button */} - +
+ {/* Header */} +
+

+ Citizen Resources +

+

+ Everything you need to know about filing complaints and accessing civic services +

+
-
- {/* Header */} -
-

- Citizen Resources -

-

- Everything you need to know about filing complaints and accessing civic services -

-
+
+ {/* Rights & Responsibilities */} +
+
+
+ +
+

Your Rights & Responsibilities

+
+

+ You have the right to file civic complaints and receive timely updates. Please note that misuse or filing false complaints may lead to appropriate action being taken. +

+
-
- {/* Rights & Responsibilities */} -
-
-
- -
-

Your Rights & Responsibilities

-
-

- You have the right to file civic complaints and receive timely updates. Please note that misuse or filing false complaints may lead to appropriate action being taken. -

-
+ {/* How to File */} +
+
+
+ +
+

How to File a Complaint

+
+
+ {[ + 'Login to your account using your credentials', + 'Click "File a Complaint" from your dashboard', + 'Provide complete and accurate issue details', + 'Submit your complaint and track the status anytime', + ].map((step, index) => ( +
+
+ {index + 1} +
+ {step} +
+ ))} +
+
- {/* How to File */} -
-
-
- -
-

How to File a Complaint

-
-
- {[ - 'Login to your account using your credentials', - 'Click "File a Complaint" from your dashboard', - 'Provide complete and accurate issue details', - 'Submit your complaint and track the status anytime', - ].map((step, index) => ( -
-
- {index + 1} -
- {step} -
- ))} -
-
+ {/* Emergency Contacts */} +
+
+
+ +
+

Emergency Contacts

+
+
+ {[ + { name: 'Police', number: '100' }, + { name: 'Fire', number: '101' }, + { name: 'Women Helpline', number: '1091' }, + { name: 'Child Helpline', number: '1098' }, + { name: 'Cyber Crime', number: '155260' }, + ].map((contact, index) => ( +
+ {contact.name} + {contact.number} +
+ ))} +
+
- {/* Emergency Contacts */} -
-
-
- -
-

Emergency Contacts

-
-
- {[ - { name: 'Police', number: '100' }, - { name: 'Fire', number: '101' }, - { name: 'Women Helpline', number: '1091' }, - { name: 'Child Helpline', number: '1098' }, - { name: 'Cyber Crime', number: '155260' }, - ].map((contact, index) => ( -
- {contact.name} - {contact.number} -
- ))} -
-
+ {/* Related Laws */} +
+
+
+ +
+

Related Laws & Acts

+
+

+ Access simplified summaries of local civic laws, nuisance acts, and safety regulations that govern citizen services and complaint procedures. +

+
- {/* Related Laws */} -
-
-
- -
-

Related Laws & Acts

-
-

- Access simplified summaries of local civic laws, nuisance acts, and safety regulations that govern citizen services and complaint procedures. -

-
- - {/* FAQ */} -
-
-
- -
-

Frequently Asked Questions

-
-
- {faqData.map((item, index) => ( - - ))} -
-
-
-
-
- ); + {/* FAQ */} +
+
+
+ +
+

Frequently Asked Questions

+
+
+ {faqData.map((item, index) => ( + + ))} +
+
+
+
+
+ ); }; -export default Resources; \ No newline at end of file +export default Resources;