From 962e1efd74b150263d166d6bb7d940320318eaa0 Mon Sep 17 00:00:00 2001 From: port dev <108868128+portdeveloper@users.noreply.github.com> Date: Thu, 1 Aug 2024 23:38:35 +0300 Subject: [PATCH 1/2] Implement a basic FAQ component using daisyui collapse with checkbox --- .../components/extensions-hackathon/Faq.tsx | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/nextjs/components/extensions-hackathon/Faq.tsx diff --git a/packages/nextjs/components/extensions-hackathon/Faq.tsx b/packages/nextjs/components/extensions-hackathon/Faq.tsx new file mode 100644 index 0000000..21c7b51 --- /dev/null +++ b/packages/nextjs/components/extensions-hackathon/Faq.tsx @@ -0,0 +1,44 @@ +const faqData = [ + { + question: "What's SE-2?", + answer: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", + }, + { + question: "What are SE-2 extensions?", + answer: + "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.", + }, + { + question: "What do I have to do to participate?", + answer: + "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit.", + }, + { + question: "Are there any rules for the extension?", + answer: + "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam. Eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.", + }, + { + question: "What makes a good extension?", + answer: + "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit.", + }, +]; + +export const Faq = () => { + return ( +
+

Frequently Asked Questions

+ {faqData.map((item, index) => ( +
+ +
{item.question}
+
+

{item.answer}

+
+
+ ))} +
+ ); +}; From 6d70f18161fc5e65e28903dd1fce4f5cd1c7bce7 Mon Sep 17 00:00:00 2001 From: port dev <108868128+portdeveloper@users.noreply.github.com> Date: Thu, 1 Aug 2024 23:39:14 +0300 Subject: [PATCH 2/2] Add FAQ component to home page --- packages/nextjs/app/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nextjs/app/page.tsx b/packages/nextjs/app/page.tsx index b91c22f..71b6cb6 100644 --- a/packages/nextjs/app/page.tsx +++ b/packages/nextjs/app/page.tsx @@ -4,6 +4,7 @@ import Link from "next/link"; import type { NextPage } from "next"; import { useAccount } from "wagmi"; import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline"; +import { Faq } from "~~/components/extensions-hackathon/Faq"; import { Address } from "~~/components/scaffold-eth"; const Home: NextPage = () => { @@ -63,6 +64,7 @@ const Home: NextPage = () => { + );