This commit is contained in:
seb
2026-07-31 20:10:23 +02:00
parent 7cd053ada6
commit d5d30fb286
9 changed files with 349 additions and 37 deletions

View File

@@ -0,0 +1,28 @@
import Box from '@mui/material/Box';
export default function ArticlePhoto({ imageUrl }) {
return (
<Box
sx={{
width: 200,
height: 200,
maxWidth: '100%',
borderRadius: 2,
overflow: 'hidden',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
bgcolor: imageUrl ? 'transparent' : 'action.hover',
}}
>
{imageUrl ? (
<Box
component="img"
src={imageUrl}
alt=""
sx={{ width: '100%', height: '100%', objectFit: 'contain' }}
/>
) : null}
</Box>
);
}