Skip to content

Commit 2fc5f09

Browse files
committed
feat(landing-page): add necessary fixes to responsive landing page
1 parent 97fc998 commit 2fc5f09

File tree

6 files changed

+412
-395
lines changed

6 files changed

+412
-395
lines changed

client/src/components/FAQ/Faq.tsx

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
import {
2-
Accordion,
3-
AccordionContent,
4-
AccordionItem,
5-
AccordionTrigger,
2+
Accordion,
3+
AccordionContent,
4+
AccordionItem,
5+
AccordionTrigger,
66
} from "@/components/ui/accordion"
77

88
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

Comments
 (0)