zucchetti-sa5/themes/onepirate/modules/views/AppForm.js
Arnaud Fauconnet 328a760eb8 added theme
2022-10-28 11:41:58 +02:00

37 lines
799 B
JavaScript

import * as React from 'react';
import PropTypes from 'prop-types';
import Container from '@mui/material/Container';
import Box from '@mui/material/Box';
import Paper from '../components/Paper';
function AppForm(props) {
const { children } = props;
return (
<Box
sx={{
display: 'flex',
backgroundImage: 'url(/static/onepirate/appCurvyLines.png)',
backgroundRepeat: 'no-repeat',
}}
>
<Container maxWidth="sm">
<Box sx={{ mt: 7, mb: 12 }}>
<Paper
background="light"
sx={{ py: { xs: 4, md: 8 }, px: { xs: 3, md: 6 } }}
>
{children}
</Paper>
</Box>
</Container>
</Box>
);
}
AppForm.propTypes = {
children: PropTypes.node,
};
export default AppForm;