|
1 | | -import { Section } from "../../ui/section"; |
2 | 1 | import { |
3 | 2 | Accordion, |
4 | 3 | AccordionItem, |
5 | 4 | AccordionTrigger, |
6 | 5 | AccordionContent, |
7 | 6 | } from "../../ui/accordion"; |
8 | | -import Link from "next/link"; |
| 7 | +import { Section } from "../../ui/section"; |
| 8 | +import accordionData from "./data"; |
9 | 9 |
|
10 | 10 | export default function FAQ() { |
11 | 11 | return ( |
12 | 12 | <Section> |
13 | 13 | <div className="mx-auto flex max-w-container flex-col items-center gap-8"> |
14 | 14 | <h2 className="text-center text-3xl font-semibold sm:text-5xl"> |
15 | | - Questions and Answers |
| 15 | + سوالات متداول |
16 | 16 | </h2> |
17 | 17 | <Accordion type="single" collapsible className="w-full max-w-[800px]"> |
18 | | - <AccordionItem value="item-1"> |
19 | | - <AccordionTrigger> |
20 | | - Why building a great landing page is critical for your business? |
21 | | - </AccordionTrigger> |
22 | | - <AccordionContent> |
23 | | - <p className="mb-4 max-w-[640px] text-balance text-muted-foreground"> |
24 | | - In today's AI-driven world, standing out is harder than |
25 | | - ever. While anyone can build a product, a professional landing |
26 | | - page makes the difference between success and failure. |
27 | | - </p> |
28 | | - <p className="mb-4 max-w-[640px] text-balance text-muted-foreground"> |
29 | | - Launch UI helps you ship faster without compromising on quality. |
30 | | - </p> |
31 | | - </AccordionContent> |
32 | | - </AccordionItem> |
33 | | - |
34 | | - <AccordionItem value="item-2"> |
35 | | - <AccordionTrigger> |
36 | | - Why use Launch UI instead of a no-code tool? |
37 | | - </AccordionTrigger> |
38 | | - <AccordionContent> |
39 | | - <p className="mb-4 max-w-[600px] text-muted-foreground"> |
40 | | - No-code tools lock you into their ecosystem with recurring fees |
41 | | - and limited control. They often come with performance issues and |
42 | | - make it difficult to integrate with your product. |
43 | | - </p> |
44 | | - <p className="mb-4 max-w-[600px] text-muted-foreground"> |
45 | | - You can't even change your hosting provider and basic |
46 | | - things like web analytics come as extra costs and paid add-ons. |
47 | | - </p> |
48 | | - <p className="mb-4 max-w-[600px] text-muted-foreground"> |
49 | | - What might seem like a convenient solution today could paint you |
50 | | - into a corner tomorrow, limiting your ability to scale and |
51 | | - adapt. Launch UI gives you full control of your code while |
52 | | - maintaining professional quality. |
53 | | - </p> |
54 | | - </AccordionContent> |
55 | | - </AccordionItem> |
56 | | - |
57 | | - <AccordionItem value="item-3"> |
58 | | - <AccordionTrigger> |
59 | | - How Launch UI is different from other components libraries and |
60 | | - templates? |
61 | | - </AccordionTrigger> |
62 | | - <AccordionContent> |
63 | | - <p className="mb-4 max-w-[580px] text-muted-foreground"> |
64 | | - Launch UI stands out with premium design quality and delightful |
65 | | - touches of custom animations and illustrations. |
66 | | - </p> |
67 | | - <p className="mb-4 max-w-[580px] text-muted-foreground"> |
68 | | - All components are carefully crafted to help position your |
69 | | - product as a professional tool, avoiding the generic template |
70 | | - look. |
71 | | - </p> |
72 | | - <p className="mb-4 max-w-[640px] text-balance text-muted-foreground"> |
73 | | - Unlike many libraries that rely on outdated CSS practices and |
74 | | - old dependencies, Launch UI is built with modern technologies |
75 | | - and best practices in mind. |
76 | | - </p> |
77 | | - </AccordionContent> |
78 | | - </AccordionItem> |
79 | | - |
80 | | - <AccordionItem value="item-4"> |
81 | | - <AccordionTrigger> |
82 | | - Why exactly does it mean that "The code is yours"? |
83 | | - </AccordionTrigger> |
84 | | - <AccordionContent> |
85 | | - <p className="mb-4 max-w-[580px] text-muted-foreground"> |
86 | | - The basic version of Launch UI is open-source and free forever, |
87 | | - under a do-whatever-you-want license. |
88 | | - </p> |
89 | | - <p className="mb-4 max-w-[580px] text-muted-foreground"> |
90 | | - The pro version that contains more components and options is a |
91 | | - one-time purchase that gives you lifetime access to all current |
92 | | - and future content. Use it for unlimited personal and commercial |
93 | | - projects - no recurring fees or restrictions. |
94 | | - </p> |
95 | | - <p className="mb-4 max-w-[580px] text-muted-foreground"> |
96 | | - For complete details about licensing and usage rights, check out{" "} |
97 | | - <Link href="/pricing" className="text-primary underline"> |
98 | | - the pricing page |
99 | | - </Link> |
100 | | - . |
101 | | - </p> |
102 | | - </AccordionContent> |
103 | | - </AccordionItem> |
104 | | - |
105 | | - <AccordionItem value="item-5"> |
106 | | - <AccordionTrigger>Are Figma files included?</AccordionTrigger> |
107 | | - <AccordionContent> |
108 | | - <p className="mb-4 max-w-[580px] text-muted-foreground"> |
109 | | - Yes! The complete Launch UI template is available for free on |
110 | | - the{" "} |
111 | | - <Link |
112 | | - href="https://www.figma.com/community/file/1420131743903900629/launch-ui-landing-page-components-ui-kit" |
113 | | - className="text-primary underline" |
114 | | - > |
115 | | - Figma community |
116 | | - </Link> |
117 | | - . |
118 | | - </p> |
119 | | - </AccordionContent> |
120 | | - </AccordionItem> |
121 | | - |
122 | | - <AccordionItem value="item-6"> |
123 | | - <AccordionTrigger>Can I get a discount?</AccordionTrigger> |
124 | | - <AccordionContent> |
125 | | - <p className="mb-4 max-w-[580px] text-muted-foreground"> |
126 | | - Actually, yes! I'm looking for beta testers and great |
127 | | - examples of Launch UI in action to feature on the website. |
128 | | - Here's the deal: you provide feedback to help me improve |
129 | | - the product, and in return, you get a huge discount plus a solid |
130 | | - backlink for your product. |
131 | | - </p> |
132 | | - <p className="mb-4 max-w-[580px] text-muted-foreground"> |
133 | | - If this interests you, don't hesitate to{" "} |
134 | | - <Link |
135 | | - href="/" |
136 | | - className="text-primary underline" |
137 | | - > |
138 | | - reach out by email |
139 | | - </Link> |
140 | | - . |
141 | | - </p> |
142 | | - </AccordionContent> |
143 | | - </AccordionItem> |
| 18 | + {accordionData.map(({ id, trigger, content }) => ( |
| 19 | + <AccordionItem key={id} value={`item-${id}`}> |
| 20 | + <AccordionTrigger>{trigger}</AccordionTrigger> |
| 21 | + <AccordionContent> |
| 22 | + {content.map((paragraph, index) => ( |
| 23 | + <p |
| 24 | + key={index} |
| 25 | + className="mb-4 max-w-[640px] text-balance text-muted-foreground" |
| 26 | + > |
| 27 | + {paragraph} |
| 28 | + </p> |
| 29 | + ))} |
| 30 | + </AccordionContent> |
| 31 | + </AccordionItem> |
| 32 | + ))} |
144 | 33 | </Accordion> |
145 | 34 | </div> |
146 | 35 | </Section> |
|
0 commit comments