1
1
import {
2
- Accordion ,
3
- AccordionContent ,
4
- AccordionItem ,
5
- AccordionTrigger ,
2
+ Accordion ,
3
+ AccordionContent ,
4
+ AccordionItem ,
5
+ AccordionTrigger ,
6
6
} from "@/components/ui/accordion"
7
7
8
8
export function Faq ( ) {
9
- const faqs = [
10
- {
11
- question : "How to create an account?" ,
12
- answer : "Yes, signUp to create a new account and get opt auth & protection."
13
- } ,
14
- {
15
- question : "Is it free to chat with the model?" ,
16
- answer : "Yes, you can complete your profile and start chat."
17
- } ,
18
- {
19
- question : "can we make our account private?" ,
20
- answer : "No, as a collaborative platform, other developers can find you."
21
- } ,
22
- {
23
- question : "can we chat with anyone?" ,
24
- answer : "Yes, you can search dev and chat with anyone."
25
- }
26
- ]
27
- return (
28
- < div className = "grid grid-cols-1 md:grid-cols-1 lg:grid-cols-1 relative z-10 py-10 max-w-7xl mx-auto" >
29
- < h1 > FAQS</ h1 >
30
- { faqs . map ( ( data , index ) => (
31
- < Accordion key = { index } type = "single" collapsible >
32
- < AccordionItem value = { `item-${ index } ` } >
33
- < AccordionTrigger > { data . question } </ AccordionTrigger >
34
- < AccordionContent >
35
- { data . answer }
36
- </ AccordionContent >
37
- </ AccordionItem >
38
- </ Accordion >
39
- ) ) }
40
- </ div >
41
- ) ;
42
- }
9
+ const faqs = [
10
+ {
11
+ question : "How to create an account?" ,
12
+ answer : "Yes, signUp to create a new account and get opt auth & protection."
13
+ } ,
14
+ {
15
+ question : "Is it free to chat with the model?" ,
16
+ answer : "Yes, you can complete your profile and start chat."
17
+ } ,
18
+ {
19
+ question : "can we make our account private?" ,
20
+ answer : "No, as a collaborative platform, other developers can find you."
21
+ } ,
22
+ {
23
+ question : "can we chat with anyone?" ,
24
+ answer : "Yes, you can search dev and chat with anyone."
25
+ }
26
+ ]
27
+ return (
28
+ < div className = "grid grid-cols-1 md:grid-cols-1 lg:grid-cols-1 relative z-10 py-10 w-[80%] max-w-7xl mx-auto" >
29
+ < h1 > FAQS</ h1 >
30
+ { faqs . map ( ( data , index ) => (
31
+ < Accordion key = { index } type = "single" collapsible >
32
+ < AccordionItem value = { `item-${ index } ` } >
33
+ < AccordionTrigger > { data . question } </ AccordionTrigger >
34
+ < AccordionContent >
35
+ { data . answer }
36
+ </ AccordionContent >
37
+ </ AccordionItem >
38
+ </ Accordion >
39
+ ) ) }
40
+ </ div >
41
+ ) ;
42
+ }
0 commit comments