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.

55 lines (50 loc) 1.65 kB
// ** MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import { styled } from '@mui/material/styles' import Typography from '@mui/material/Typography' import CardContent from '@mui/material/CardContent' import Grid from '@mui/material/Grid' // Styled Grid component const StyledGrid = styled(Grid)(({ theme }) => ({ [theme.breakpoints.down('sm')]: { display: 'flex', justifyContent: 'center' } })) // Styled component for the image const Img = styled('img')(({ theme }) => ({ right: 13, bottom: 0, height: 200, position: 'absolute', [theme.breakpoints.down('sm')]: { height: 165, position: 'static' } })) const CardWelcomeBack = () => { return ( <Card sx={{ position: 'relative', overflow: 'visible', mt: { xs: 0, sm: 14.4, md: 0 } }}> <CardContent sx={{ p: theme => theme.spacing(7.25, 7.5, 7.75, 7.5) }}> <Grid container spacing={6}> <Grid item xs={12} sm={6}> <Typography variant='h5' sx={{ mb: 6.5 }}> Welcome back{' '} <Box component='span' sx={{ fontWeight: 'bold' }}> John </Box> ! 🥳 </Typography> <Typography variant='body2'>You have 4 tasks to finish today,</Typography> <Typography variant='body2'>You already completed 68% 😍 tasks. Good job!</Typography> </Grid> <StyledGrid item xs={12} sm={6}> <Img alt='Welcome back John' src='/images/cards/illustration-john.png' /> </StyledGrid> </Grid> </CardContent> </Card> ) } export default CardWelcomeBack