UNPKG

react-garden

Version:

React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.

71 lines (64 loc) 1.95 kB
// ** MUI Imports import Button from '@mui/material/Button' import { styled } from '@mui/material/styles' import Typography from '@mui/material/Typography' import Box from '@mui/material/Box' import Grid from '@mui/material/Grid' // ** Util Import import { hexToRGBA } from '~/@core/utils/hex-to-rgba' // ** Styled Components const BoxWrapper = styled(Box)(({ theme }) => ({ position: 'relative', padding: theme.spacing(11.25, 36), backgroundColor: hexToRGBA(theme.palette.primary.main, 0.04), [theme.breakpoints.down('xl')]: { padding: theme.spacing(11.25, 20) }, [theme.breakpoints.down('md')]: { textAlign: 'center' }, [theme.breakpoints.down('sm')]: { padding: theme.spacing(11.25, 5) } })) const GridStyled = styled(Grid)(({ theme }) => ({ display: 'flex', justifyContent: 'center', [theme.breakpoints.down('md')]: { order: -1 } })) const Img = styled('img')(({ theme }) => ({ bottom: 0, right: 144, width: 248, position: 'absolute', [theme.breakpoints.down('md')]: { width: 200, position: 'static' }, [theme.breakpoints.down('sm')]: { width: 180 } })) const PricingCTA = () => { return ( <BoxWrapper> <Grid container spacing={5}> <Grid item xs={12} md={8}> <Typography variant='h5' sx={{ mb: 3, color: 'primary.main' }}> Still not convinced? Start with a 14-day FREE trial! </Typography> <Typography sx={{ mb: 9.5, color: 'text.secondary' }}> You will get full access to with all the features for 14 days. </Typography> <Button variant='contained'>Start 14-day FREE trial</Button> </Grid> <GridStyled item xs={12} md={4}> <Img alt='pricing-cta-avatar' src='/images/pages/pose-f-9.png' /> </GridStyled> </Grid> </BoxWrapper> ) } export default PricingCTA