76 lines
1.9 KiB
TypeScript
76 lines
1.9 KiB
TypeScript
import { formatPrice } from '../utils/intl'
|
|
import DownloadButtons from './DownloadButtons'
|
|
import Icon from './Icon'
|
|
import SectionTitle from './SectionTitle'
|
|
import { price } from './Pricing'
|
|
|
|
const baseFeatures = [
|
|
{
|
|
included: true,
|
|
title: 'BankID-inloggning',
|
|
},
|
|
{
|
|
included: true,
|
|
title: 'Se nyheter',
|
|
},
|
|
{
|
|
included: true,
|
|
title: 'Se notifieringar',
|
|
},
|
|
{
|
|
included: true,
|
|
title: 'Se klasslista',
|
|
},
|
|
{
|
|
included: true,
|
|
title: 'Se schema',
|
|
},
|
|
{
|
|
included: false,
|
|
title: 'Gratis support',
|
|
},
|
|
{
|
|
included: false,
|
|
title: 'Pushnotifieringar',
|
|
},
|
|
]
|
|
|
|
const Pricing = () => {
|
|
return (
|
|
<section className="px-5 py-8 md:px-0 md:py-32" id="vad-kostar-det">
|
|
<div className="max-w-2xl mx-auto">
|
|
<SectionTitle
|
|
title="Appen är Gratis,"
|
|
text={`samtidigt, för att kunna fortsätta utveckla och bibehålla appens kvalitet så länge som möjligt, skulle vi uppskatta mycket om du bidrar på Patreon!`}
|
|
/>
|
|
</div>
|
|
<div className="flex">
|
|
<div className="flex flex-col items-center inline-block px-5 py-8 mx-auto text-center shadow-lg rounded-md dark:bg-gray-800">
|
|
<div className="mt-5 text-6xl text-pink-500">
|
|
{formatPrice(price)}
|
|
</div>
|
|
<ul className="my-5">
|
|
{baseFeatures.map(({ included, title }) => (
|
|
<li className="flex items-center space-x-1" key={title}>
|
|
{included ? (
|
|
<div className="w-5 text-green-500">
|
|
<Icon.Check />
|
|
</div>
|
|
) : (
|
|
<div className="w-5 text-red-500">
|
|
<Icon.Times />
|
|
</div>
|
|
)}
|
|
<span>{title}</span>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
<DownloadButtons />
|
|
</div>
|
|
</div>
|
|
</section>
|
|
)
|
|
}
|
|
|
|
export default Pricing
|