This commit is contained in:
Malai Raja
2023-12-02 19:22:27 +05:30
parent 2aab086a66
commit 2d7eb690a1
21 changed files with 7495 additions and 146 deletions

View File

@@ -0,0 +1,74 @@
import PropTypes from 'prop-types';
// material-ui
import { Box, Card, CardContent, Grid, Typography } from '@mui/material';
// ===========================|| HOVER SOCIAL CARD ||=========================== //
const HoverSocialCard = ({ primary, secondary,
percentage,
// iconPrimary,
color
}) => {
// const IconPrimary = iconPrimary;
// const primaryIcon = iconPrimary ? <IconPrimary /> : null;
return (
<Card
elevation={0}
sx={{
background: color,
position: 'relative',
color: '#fff',
// '&:hover svg': {
// opacity: 1,
// transform: 'scale(1.1)'
// }
}}
>
<CardContent>
<Box
sx={{
position: 'absolute',
right: 15,
top: 25,
color: '#fff',
// '& svg': {
// width: 36,
// height: 36,
// opacity: 0.5,
// transition: 'all .3s ease-in-out'
// }
}}
>
<Typography variant="h2" color="inherit">
{percentage.toString()} %
</Typography>
{/* {primaryIcon} */}
</Box>
<Grid container spacing={0}>
<Grid item xs={12}>
<Typography variant="h3" color="inherit">
{secondary}
</Typography>
</Grid>
<Grid item xs={12}>
<Typography variant="subtitle2" color="inherit">
{primary}
</Typography>
</Grid>
</Grid>
</CardContent>
</Card>
);
};
HoverSocialCard.propTypes = {
primary: PropTypes.string,
secondary: PropTypes.string,
// iconPrimary: PropTypes.object,
percentage:PropTypes.string,
color: PropTypes.string
};
export default HoverSocialCard;