nile/src/pages/delta/SkillPaper.jsx
Dunemask d24f39bff4
Some checks failed
Deploy Edge / deploy-edge (push) Failing after 2s
S3 Repo Backup / s3-repo-backup (push) Failing after 3s
[FEATURE] Updated Stylings
2024-08-09 20:17:57 -06:00

38 lines
1.1 KiB
JavaScript

import Box from "@mui/material/Box";
import Card from "@mui/material/Card";
import CardContent from "@mui/material/CardContent";
import CardMedia from "@mui/material/CardMedia";
import Typography from "@mui/material/Typography";
export default function SkillPaper({ src, bgColor, fgColor, heading, Icon, openPhoto }) {
const mediaClick = () => openPhoto(src);
return (
<Box>
<Card
sx={{
margin: "0 auto",
backgroundColor: bgColor,
}}
>
<img src={src} title={`${heading} Pluralsight Score`} onClick={mediaClick} />
<CardContent sx={{ color: fgColor, backgroundColor: bgColor }}>
<Typography variant="h5" component="div">
<div style={{ display: "inline-flex" }}>
<Typography variant="h5">{heading}</Typography>
{
<Icon
style={{
margin: "auto",
marginLeft: 10,
width: 24,
height: 24,
}}
/>
}
</div>
</Typography>
</CardContent>
</Card>
</Box>
);
}