diff --git a/app/faq/page.tsx b/app/faq/page.tsx index d59ede8..2d2e3d3 100644 --- a/app/faq/page.tsx +++ b/app/faq/page.tsx @@ -1,5 +1,13 @@ -"use client"; -import React from 'react'; +"use client"; +import React, { useState } from 'react'; +import { Plus, Minus } from "lucide-react"; + +const Faq: React.FC = () => { + const [activeIndex, setActiveIndex] = useState(null); + + const toggleAccordion = (index: number) => { + setActiveIndex(activeIndex === index ? null : index); + }; import { Accordion, AccordionContent, @@ -8,12 +16,52 @@ import { } from "@/components/ui/accordion" const Faq: React.FC = () => { - + + const faqData = [ + { question: "What is Git-trace?", answer: "Git-trace is an open-source tool that allows users to view and bookmark GitHub repositories and issues, making it easier to keep track of projects." }, + { question: "What features does Git-trace offer?", answer: "Git-trace allows you to search for repositories, view issues related to those repositories, and bookmark important repositories and issues for quick access." }, + { question: "What technology stack is used for Git-trace?", answer: "Git-trace uses Next.js and React for the frontend, while the backend utilizes GitHub's API for data retrieval, along with Prisma and Neon DB for data management." }, + { question: "How do I search for repositories on Git-trace?", answer: "You can search for repositories by entering the owner's name and the repository's name in the search bar." }, + { question: "How can I bookmark repositories and issues?", answer: "After viewing a repository or issue, you can use the bookmarking feature to save it for easy access later." }, + { question: "What should I do if I encounter issues while using Git-trace?", answer: "You can report any issues on the GitHub repository, where maintainers and the community can assist you." }, + { question: "Can I use Git-trace without installing it locally?", answer: "Yes, you can access Git-trace directly through the web at git-trace.vercel.com." }, + ]; return ( -
+

Frequently Asked Questions

-
+
+ +
+ {faqData.map((item, index) => ( +
+ + {activeIndex === index && ( +
+ {item.answer} +
+ )} +
+ ))} +
What is Git-trace? @@ -57,7 +105,7 @@ const Faq: React.FC = () => { Yes, you can access Git-trace directly through the web at git-trace.vercel.com. - +
); };