| 1 | import {
|
|---|
| 2 | Button,
|
|---|
| 3 | Accordion,
|
|---|
| 4 | AccordionContent,
|
|---|
| 5 | AccordionItem,
|
|---|
| 6 | AccordionTrigger,
|
|---|
| 7 | } from "@relume_io/relume-ui";
|
|---|
| 8 |
|
|---|
| 9 | export const Faq = (props) => {
|
|---|
| 10 | const {
|
|---|
| 11 | heading,
|
|---|
| 12 | description,
|
|---|
| 13 | questions,
|
|---|
| 14 | footerHeading,
|
|---|
| 15 | footerDescription,
|
|---|
| 16 | button,
|
|---|
| 17 | } = {
|
|---|
| 18 | ...Faq1Defaults,
|
|---|
| 19 | ...props,
|
|---|
| 20 | };
|
|---|
| 21 | return (
|
|---|
| 22 | <section
|
|---|
| 23 | id="relume"
|
|---|
| 24 | className="px-[5%] py-16 md:py-24 lg:py-28 flex items-center justify-center"
|
|---|
| 25 | >
|
|---|
| 26 | <div className="container max-w-lg">
|
|---|
| 27 | <div className="rb-12 mb-12 text-center md:mb-18 lg:mb-20">
|
|---|
| 28 | <h2 className="rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl">
|
|---|
| 29 | {heading}
|
|---|
| 30 | </h2>
|
|---|
| 31 | <p className="md:text-md">{description}</p>
|
|---|
| 32 | </div>
|
|---|
| 33 | <Accordion type="multiple">
|
|---|
| 34 | {questions.map((question, index) => (
|
|---|
| 35 | <AccordionItem key={index} value={`item-${index}`}>
|
|---|
| 36 | <AccordionTrigger className="md:py-5 md:text-md">
|
|---|
| 37 | {question.title}
|
|---|
| 38 | </AccordionTrigger>
|
|---|
| 39 | <AccordionContent className="md:pb-6">
|
|---|
| 40 | {question.answer}
|
|---|
| 41 | </AccordionContent>
|
|---|
| 42 | </AccordionItem>
|
|---|
| 43 | ))}
|
|---|
| 44 | </Accordion>
|
|---|
| 45 | <div className="mx-auto mt-12 max-w-md text-center md:mt-18 lg:mt-20">
|
|---|
| 46 | <h4 className="mb-3 text-2xl font-bold md:mb-4 md:text-3xl md:leading-[1.3] lg:text-4xl">
|
|---|
| 47 | {footerHeading}
|
|---|
| 48 | </h4>
|
|---|
| 49 | <p className="md:text-md">{footerDescription}</p>
|
|---|
| 50 | <div className="mt-6 md:mt-8">
|
|---|
| 51 | <Button {...button}>{button.title}</Button>
|
|---|
| 52 | </div>
|
|---|
| 53 | </div>
|
|---|
| 54 | </div>
|
|---|
| 55 | </section>
|
|---|
| 56 | );
|
|---|
| 57 | };
|
|---|
| 58 |
|
|---|
| 59 | export const Faq1Defaults = {
|
|---|
| 60 | heading: "Frequently asked questions",
|
|---|
| 61 | description:
|
|---|
| 62 | "Quick answers on how Trekr helps you track self-improvement across multiple areas — in one place.",
|
|---|
| 63 | questions: [
|
|---|
| 64 | {
|
|---|
| 65 | title: "What can I track in Trekr?",
|
|---|
| 66 | answer:
|
|---|
| 67 | "Workouts (type and duration), weight & nutrition (goal, calories), finances & budgeting (income and expenses), investing (portfolio and returns), and discipline (daily tasks you can check off).",
|
|---|
| 68 | },
|
|---|
| 69 | {
|
|---|
| 70 | title: "Do I need multiple apps to do all this?",
|
|---|
| 71 | answer:
|
|---|
| 72 | "No — Trekr is designed to unify the most important self-improvement categories so you can get a clear overview without switching between tools.",
|
|---|
| 73 | },
|
|---|
| 74 | {
|
|---|
| 75 | title: "How do goals and progress tracking work?",
|
|---|
| 76 | answer:
|
|---|
| 77 | "You set a goal (for example: target weight or monthly budget), then log daily/weekly data. Trekr helps you see where you are vs. the goal and how you're trending over time.",
|
|---|
| 78 | },
|
|---|
| 79 | {
|
|---|
| 80 | title: "Where is my data stored?",
|
|---|
| 81 | answer:
|
|---|
| 82 | "Your entries are stored in a database and linked to your user profile so you can track progress consistently over time.",
|
|---|
| 83 | },
|
|---|
| 84 | {
|
|---|
| 85 | title: "Is Trekr a mobile app?",
|
|---|
| 86 | answer:
|
|---|
| 87 | "Right now Trekr is a web app. The goal is a fast, simple experience on both mobile and desktop in the browser.",
|
|---|
| 88 | },
|
|---|
| 89 | ],
|
|---|
| 90 | footerHeading: "Still have questions?",
|
|---|
| 91 | footerDescription: "Send us a message and we’ll help you get started.",
|
|---|
| 92 | button: {
|
|---|
| 93 | title: "Contact",
|
|---|
| 94 | variant: "secondary",
|
|---|
| 95 | },
|
|---|
| 96 | };
|
|---|