mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
54 lines
1.7 KiB
TypeScript
54 lines
1.7 KiB
TypeScript
import React from 'react'
|
|
import ReactMarkdown from 'react-markdown'
|
|
import { Accordion } from 'ui'
|
|
|
|
import pricingFaq from '~/data/PricingFAQ.json'
|
|
|
|
const PricingFAQs = () => {
|
|
return (
|
|
<div className="mx-auto max-w-5xl gap-y-10 gap-x-10 lg:grid-cols-2">
|
|
<div className="sm:py-18 mx-auto px-6 py-16 md:py-24 lg:px-16 lg:py-24 xl:px-20">
|
|
<h2 className="h3 text-center">Frequently asked questions</h2>
|
|
<div className="my-16">
|
|
<Accordion
|
|
type="default"
|
|
openBehaviour="multiple"
|
|
chevronAlign="right"
|
|
justified
|
|
size="medium"
|
|
className="text-foreground-light"
|
|
>
|
|
{pricingFaq.map((faq, i) => {
|
|
return (
|
|
<div className="border-b py-2" key={i}>
|
|
<Accordion.Item
|
|
header={<span className="text-foreground">{faq.question}</span>}
|
|
id={`faq--${i.toString()}`}
|
|
>
|
|
<ReactMarkdown className="text-foreground-lighter prose">
|
|
{faq.answer}
|
|
</ReactMarkdown>
|
|
</Accordion.Item>
|
|
</div>
|
|
)
|
|
})}
|
|
</Accordion>
|
|
</div>
|
|
<p className="p text-center">
|
|
Can't find the answer to your question?{' '}
|
|
<a
|
|
target="_blank"
|
|
href="https://supabase.help"
|
|
className="transition underline text-brand-link hover:text-brand-600"
|
|
>
|
|
Open a support ticket
|
|
</a>{' '}
|
|
to receive help from our team.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default PricingFAQs
|