- {QAs.map((QA) => {
- return (
-
- {QA.Answer}
-
- {QA.Question}
-
-
-
- );
- })}
+
+
+
+
+
+
+
+
+
+ {activeSection == "FAQ" ? : }
+
);
}
diff --git a/next/components/feedback/FAQ.tsx b/next/components/feedback/FAQ.tsx
new file mode 100644
index 0000000..92586d2
--- /dev/null
+++ b/next/components/feedback/FAQ.tsx
@@ -0,0 +1,30 @@
+import { IoChevronDown } from "react-icons/io5";
+
+export default function FAQ({
+ QAs,
+}: {
+ QAs: { Question: string; Answer: string }[];
+}) {
+ return (
+
+
Frequently Asked Questions
+
+ {QAs.map((QA) => {
+ return (
+
+ {QA.Answer}
+
+ {QA.Question}
+
+
+
+ );
+ })}
+
+
+ );
+
+}
diff --git a/next/components/feedback/FeedbackForm.tsx b/next/components/feedback/FeedbackForm.tsx
index 7aec3fd..5c3bace 100644
--- a/next/components/feedback/FeedbackForm.tsx
+++ b/next/components/feedback/FeedbackForm.tsx
@@ -1,6 +1,6 @@
export default function FeedbackForm() {
async function handleSubmit(data: FormData) {
- "use server";
+ "use client";
const name = data.get("name");
const email = data.get("email");
const message = data.get("message");
@@ -13,36 +13,38 @@ export default function FeedbackForm() {
}
return (
-
-
+ >
);
}
diff --git a/next/tailwind.config.js b/next/tailwind.config.js
index 337ef8b..fee0c53 100644
--- a/next/tailwind.config.js
+++ b/next/tailwind.config.js
@@ -19,6 +19,16 @@ module.exports = {
"b-orange": "#FAAB36",
"b-light-orange": "#FABD6E",
},
+ keyframes: {
+ fadeIn: {
+ "0%": { opacity: 0 },
+ "100%": { opacity: 1 },
+ },
+ fadeOut: {
+ "0%": { opacity: 1 },
+ "100%": { opacity: 0 },
+ },
+ },
},
},
plugins: [],