diff --git a/apps/web/src/views/home/components/Faqs.tsx b/apps/web/src/views/home/components/Faqs.tsx new file mode 100644 index 00000000..33e45889 --- /dev/null +++ b/apps/web/src/views/home/components/Faqs.tsx @@ -0,0 +1,113 @@ +import Link from "next/link"; +import { + Disclosure, + DisclosureButton, + DisclosurePanel, +} from "@headlessui/react"; +import { HiMiniMinusSmall, HiMiniPlusSmall } from "react-icons/hi2"; + +const LORUM_IPSUM = + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 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."; + +const faqs = [ + { + question: "Why make an open source Trello?", + answer: LORUM_IPSUM, + }, + { + question: "What's the difference between Kan and Trello?", + answer: LORUM_IPSUM, + }, + { + question: "How is the project funded?", + answer: LORUM_IPSUM, + }, + { + question: "How do I import my Trello boards?", + answer: LORUM_IPSUM, + }, + { + question: "How do I get a custom URL?", + answer: LORUM_IPSUM, + }, + { + question: "Do you offer a free plan?", + answer: LORUM_IPSUM, + }, + { + question: "What license are you using?", + answer: LORUM_IPSUM, + }, + { + question: "How do I invite team members?", + answer: LORUM_IPSUM, + }, + { + question: "How do I self-host?", + answer: LORUM_IPSUM, + }, +]; + +const Faqs = () => { + return ( +
+
+
+

FAQs

+
+ +

+ Questions? +

+

+ Find answers to common questions about the project. Can't find what + you're looking for? Feel free to{" "} + + contact us + + . +

+
+
+
+
+
+ {faqs.map((faq) => ( + +
+ + + {faq.question} + + + + +
+ +

+ {faq.answer} +

+
+
+ ))} +
+
+
+
+
+ ); +}; + +export default Faqs; diff --git a/apps/web/src/views/home/components/Features.tsx b/apps/web/src/views/home/components/Features.tsx index aed07125..062d1807 100644 --- a/apps/web/src/views/home/components/Features.tsx +++ b/apps/web/src/views/home/components/Features.tsx @@ -40,7 +40,7 @@ const FeatureItem = ({ return (
@@ -55,7 +55,7 @@ const FeatureItem = ({

{feature.title}

-

+

{feature.description}

@@ -125,20 +125,18 @@ const Features = ({ theme }: { theme: "light" | "dark" }) => {

- Kanban simplified + Kanban reimagined

Simple, visual task management that just works. Drag and drop cards, collaborate with your team, and get more done.

-
- {features.map((feature, index) => { - return ( -
- -
- ); - })} +
+
+ {features.map((feature, index) => ( + + ))} +
diff --git a/apps/web/src/views/home/index.tsx b/apps/web/src/views/home/index.tsx index 710e36fa..419f2583 100644 --- a/apps/web/src/views/home/index.tsx +++ b/apps/web/src/views/home/index.tsx @@ -8,6 +8,7 @@ import PatternedBackground from "~/components/PatternedBackground"; import { env } from "~/env"; import { useTheme } from "~/providers/theme"; import { api } from "~/utils/api"; +import FAQs from "./components/Faqs"; import Features from "./components/Features"; import Footer from "./components/Footer"; import Header from "./components/Header"; @@ -104,6 +105,10 @@ export default function HomeView() {
+
+
+ +