2021-02-05 12:32:03 +00:00
import { formatPrice } from '../utils/intl'
2021-02-17 17:56:05 +00:00
import DownloadButtons from './DownloadButtons'
2021-03-30 18:34:40 +00:00
import Icon from './Icon'
import SectionTitle from './SectionTitle'
2021-02-05 09:09:42 +00:00
2021-12-02 11:32:08 +00:00
export const price = 11
2021-02-05 09:41:37 +00:00
2021-02-17 17:56:05 +00:00
const baseFeatures = [
{
included : true ,
title : 'BankID-inloggning' ,
} ,
{
included : true ,
title : 'Se nyheter' ,
} ,
{
included : true ,
title : 'Se notifieringar' ,
} ,
{
included : true ,
title : 'Kontaktuppgifter till andra föräldrar' ,
} ,
{
included : false ,
title : 'Gratis support' ,
} ,
{
included : false ,
title : 'Pushnotifieringar' ,
} ,
]
2021-02-07 17:17:19 +00:00
2021-09-09 17:57:04 +00:00
const Pricing = ( ) = > {
2021-02-05 09:09:42 +00:00
return (
2021-02-17 17:56:05 +00:00
< 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 = "Vad kostar det och varför är det inte gratis?"
text = { ` Vi som bygger appen vill gärna fortsätta vidareutveckla den och även ha möjlighet att ge ersättning till de som hjälper till. Därför kostar det ${ formatPrice (
price
) } att ladda ner appen . Det ä r en engångskostnad och hjälper oss att göra appen bättre . ` }
/ >
< / 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" >
< h3 className = "text-3xl text-gray-800" > Engångskostnad < / h3 >
< div className = "mt-5 text-6xl text-pink-500" >
{ formatPrice ( price ) }
2021-02-05 09:09:42 +00:00
< / div >
2021-02-17 17:56:05 +00:00
< 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 / >
2021-02-05 09:09:42 +00:00
< / div >
2021-02-17 17:56:05 +00:00
) : (
< div className = "w-5 text-red-500" >
< Icon.Times / >
2021-02-05 09:09:42 +00:00
< / div >
2021-02-17 17:56:05 +00:00
) }
< span > { title } < / span >
< / li >
) ) }
< / ul >
< DownloadButtons / >
2021-02-05 09:09:42 +00:00
< / div >
< / div >
< / section >
)
}
export default Pricing