110 lines
3.2 KiB
TypeScript
110 lines
3.2 KiB
TypeScript
|
|
import Box from '@mui/system/Box';
|
||
|
|
import Grid from '@mui/system/Grid';
|
||
|
|
import styled from '@mui/system/styled';
|
||
|
|
|
||
|
|
const Item = styled('div')(({ theme }) => ({
|
||
|
|
border: '1px solid',
|
||
|
|
borderColor: '#ced7e0',
|
||
|
|
borderRadius: '4px',
|
||
|
|
...theme.applyStyles('dark', {
|
||
|
|
borderColor: '#444d58',
|
||
|
|
}),
|
||
|
|
}));
|
||
|
|
|
||
|
|
export default function NestedGrid() {
|
||
|
|
return (
|
||
|
|
<Box sx={{ flexGrow: 1 }}>
|
||
|
|
<Grid container spacing={2}>
|
||
|
|
<Grid size={{ xs: 12, md: 5, lg: 4 }}>
|
||
|
|
<Item>Email subscribe section</Item>
|
||
|
|
</Grid>
|
||
|
|
<Grid container spacing={4} size={{ xs: 12, md: 7, lg: 8 }}>
|
||
|
|
<Grid size={{ xs: 6, lg: 3 }}>
|
||
|
|
<Item>
|
||
|
|
<Box
|
||
|
|
id="category-a"
|
||
|
|
sx={{ fontSize: '12px', textTransform: 'uppercase' }}
|
||
|
|
>
|
||
|
|
Category A
|
||
|
|
</Box>
|
||
|
|
<Box component="ul" aria-labelledby="category-a" sx={{ pl: 2 }}>
|
||
|
|
<li>Link 1.1</li>
|
||
|
|
<li>Link 1.2</li>
|
||
|
|
<li>Link 1.3</li>
|
||
|
|
</Box>
|
||
|
|
</Item>
|
||
|
|
</Grid>
|
||
|
|
<Grid size={{ xs: 6, lg: 3 }}>
|
||
|
|
<Item>
|
||
|
|
<Box
|
||
|
|
id="category-b"
|
||
|
|
sx={{ fontSize: '12px', textTransform: 'uppercase' }}
|
||
|
|
>
|
||
|
|
Category B
|
||
|
|
</Box>
|
||
|
|
<Box component="ul" aria-labelledby="category-b" sx={{ pl: 2 }}>
|
||
|
|
<li>Link 2.1</li>
|
||
|
|
<li>Link 2.2</li>
|
||
|
|
<li>Link 2.3</li>
|
||
|
|
</Box>
|
||
|
|
</Item>
|
||
|
|
</Grid>
|
||
|
|
<Grid size={{ xs: 6, lg: 3 }}>
|
||
|
|
<Item>
|
||
|
|
<Box
|
||
|
|
id="category-c"
|
||
|
|
sx={{ fontSize: '12px', textTransform: 'uppercase' }}
|
||
|
|
>
|
||
|
|
Category C
|
||
|
|
</Box>
|
||
|
|
<Box component="ul" aria-labelledby="category-c" sx={{ pl: 2 }}>
|
||
|
|
<li>Link 3.1</li>
|
||
|
|
<li>Link 3.2</li>
|
||
|
|
<li>Link 3.3</li>
|
||
|
|
</Box>
|
||
|
|
</Item>
|
||
|
|
</Grid>
|
||
|
|
<Grid size={{ xs: 6, lg: 3 }}>
|
||
|
|
<Item>
|
||
|
|
<Box
|
||
|
|
id="category-d"
|
||
|
|
sx={{ fontSize: '12px', textTransform: 'uppercase' }}
|
||
|
|
>
|
||
|
|
Category D
|
||
|
|
</Box>
|
||
|
|
<Box component="ul" aria-labelledby="category-d" sx={{ pl: 2 }}>
|
||
|
|
<li>Link 4.1</li>
|
||
|
|
<li>Link 4.2</li>
|
||
|
|
<li>Link 4.3</li>
|
||
|
|
</Box>
|
||
|
|
</Item>
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|
||
|
|
<Grid
|
||
|
|
container
|
||
|
|
justifyContent="space-between"
|
||
|
|
alignItems="center"
|
||
|
|
flexDirection={{ xs: 'column', sm: 'row' }}
|
||
|
|
sx={{ fontSize: '12px' }}
|
||
|
|
size={12}
|
||
|
|
>
|
||
|
|
<Grid sx={{ order: { xs: 2, sm: 1 } }}>
|
||
|
|
<Item>© Copyright</Item>
|
||
|
|
</Grid>
|
||
|
|
<Grid container columnSpacing={1} sx={{ order: { xs: 1, sm: 2 } }}>
|
||
|
|
<Grid>
|
||
|
|
<Item>Link A</Item>
|
||
|
|
</Grid>
|
||
|
|
<Grid>
|
||
|
|
<Item>Link B</Item>
|
||
|
|
</Grid>
|
||
|
|
<Grid>
|
||
|
|
<Item>Link C</Item>
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|
||
|
|
</Box>
|
||
|
|
);
|
||
|
|
}
|