Skip to content

Commit 47775cc

Browse files
committed
docs: add qa to pricing
1 parent 6f367c8 commit 47775cc

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

src/app/[locale]/pricing/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import getMetadata from '@/utils/get-metadata';
22

33
import Hero from '@/components/pages/pricing/hero';
44
import Table from '@/components/pages/pricing/table';
5+
import QuestionsAndAnswers from '@/components/pages/pricing/qa';
56

67
import SEO_DATA from '@/lib/seo-data';
78

@@ -12,6 +13,7 @@ export default function Page() {
1213
<>
1314
<Hero />
1415
<Table />
16+
<QuestionsAndAnswers />
1517
</>
1618
);
1719
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
'use client';
2+
3+
import type { Question } from './types';
4+
5+
type Props = {
6+
questions: Question[];
7+
};
8+
9+
export default function QuestionsAndAnswersClient({ questions }: Props) {
10+
return (
11+
<div className="space-y-4 text-16">
12+
{questions.map((item, index) => (
13+
<div key={index} className="border-gray-200 overflow-hidden border p-6">
14+
<h3 className="mb-2 font-medium">{item.question}</h3>
15+
<p className="text-gray-600">{item.answer}</p>
16+
</div>
17+
))}
18+
</div>
19+
);
20+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import QuestionsAndAnswersClient from './client';
2+
import type { Question } from './types';
3+
4+
const QUESTIONS: Question[] = [
5+
{
6+
question: 'Are self-host and cloud version the same price?',
7+
answer: 'Yes, the price is the same.',
8+
},
9+
{
10+
question: 'Can self-host version operate in air-gapped environment?',
11+
answer:
12+
'Yes, you can deploy it in your own data center or private cloud without any external connectivity.',
13+
},
14+
{
15+
question: 'Which certifications do you have?',
16+
answer: 'We have SOC 2 Type 1 certification. Type 2 is in progress.',
17+
},
18+
{
19+
question: 'Is there a free trial?',
20+
answer: 'Yes, for the Enterprise plan, you can try it for free for 14 days.',
21+
},
22+
{
23+
question: 'Which payment methods do you accept?',
24+
answer: 'We accept credit card, wire transfers, AWS Marketplace, and GCP Marketplace.',
25+
},
26+
{
27+
question: 'What is your cancellation policy?',
28+
answer:
29+
'For the Pro plan, you can cancel your subscription at any time. For the Enterprise plan, it is yearly subscription. You can not cancel in the middle of the year.',
30+
},
31+
];
32+
33+
export default function QuestionsAndAnswers() {
34+
return (
35+
<section className="mx-auto max-w-4xl px-4 py-16">
36+
<h2 className="mb-12 text-center text-36 font-bold">Questions and Answers</h2>
37+
<QuestionsAndAnswersClient questions={QUESTIONS} />
38+
</section>
39+
);
40+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export type Question = {
2+
question: string;
3+
answer: string;
4+
};

0 commit comments

Comments
 (0)