63 lines
1.8 KiB
TypeScript
63 lines
1.8 KiB
TypeScript
|
|
import { styled } from '@mui/material/styles';
|
||
|
|
import Grid from '@mui/material/GridLegacy';
|
||
|
|
import Paper from '@mui/material/Paper';
|
||
|
|
import Typography from '@mui/material/Typography';
|
||
|
|
import ButtonBase from '@mui/material/ButtonBase';
|
||
|
|
|
||
|
|
const Img = styled('img')({
|
||
|
|
margin: 'auto',
|
||
|
|
display: 'block',
|
||
|
|
maxWidth: '100%',
|
||
|
|
maxHeight: '100%',
|
||
|
|
});
|
||
|
|
|
||
|
|
export default function ComplexGrid() {
|
||
|
|
return (
|
||
|
|
<Paper
|
||
|
|
sx={(theme) => ({
|
||
|
|
p: 2,
|
||
|
|
margin: 'auto',
|
||
|
|
maxWidth: 500,
|
||
|
|
flexGrow: 1,
|
||
|
|
backgroundColor: '#fff',
|
||
|
|
...theme.applyStyles('dark', {
|
||
|
|
backgroundColor: '#1A2027',
|
||
|
|
}),
|
||
|
|
})}
|
||
|
|
>
|
||
|
|
<Grid container spacing={2}>
|
||
|
|
<Grid item>
|
||
|
|
<ButtonBase sx={{ width: 128, height: 128 }}>
|
||
|
|
<Img alt="complex" src="/static/images/grid/complex.jpg" />
|
||
|
|
</ButtonBase>
|
||
|
|
</Grid>
|
||
|
|
<Grid item xs={12} sm container>
|
||
|
|
<Grid item xs container direction="column" spacing={2}>
|
||
|
|
<Grid item xs>
|
||
|
|
<Typography gutterBottom variant="subtitle1" component="div">
|
||
|
|
Standard license
|
||
|
|
</Typography>
|
||
|
|
<Typography variant="body2" gutterBottom>
|
||
|
|
Full resolution 1920x1080 • JPEG
|
||
|
|
</Typography>
|
||
|
|
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
|
||
|
|
ID: 1030114
|
||
|
|
</Typography>
|
||
|
|
</Grid>
|
||
|
|
<Grid item>
|
||
|
|
<Typography sx={{ cursor: 'pointer' }} variant="body2">
|
||
|
|
Remove
|
||
|
|
</Typography>
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|
||
|
|
<Grid item>
|
||
|
|
<Typography variant="subtitle1" component="div">
|
||
|
|
$19.00
|
||
|
|
</Typography>
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|
||
|
|
</Paper>
|
||
|
|
);
|
||
|
|
}
|