mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
fca1071941
## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
29 lines
571 B
TypeScript
29 lines
571 B
TypeScript
import { Box } from '@mantine/core'
|
|
import { ReactNode } from 'react'
|
|
|
|
type Props = {
|
|
children: ReactNode
|
|
}
|
|
|
|
const Grid = (props: Props) => {
|
|
return (
|
|
<Box
|
|
sx={{
|
|
display: 'grid',
|
|
gridTemplateColumns: 'repeat(2, minmax(200px, 1fr))',
|
|
gridGap: '1rem',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
'@media (max-width: 800px)': {
|
|
gridTemplateColumns: 'repeat(1, minmax(200px, 1fr))',
|
|
gridGap: '0.2rem',
|
|
},
|
|
}}
|
|
>
|
|
{props.children}
|
|
</Box>
|
|
)
|
|
}
|
|
|
|
export default Grid
|