Initial commit

This commit is contained in:
vslg
2023-07-31 13:53:07 -03:00
commit 13c83c5c49
18 changed files with 5139 additions and 0 deletions

49
src/layout/UnauthPage.jsx Normal file
View File

@@ -0,0 +1,49 @@
import { Alert, Layout, theme } from "antd";
import PropTypes from 'prop-types';
const { Header, Content } = Layout;
import '../App.css'
import SFooter from "./Footer";
const UnauthPage = ({ content, alert }) => {
const {
token: { colorBgContainer },
} = theme.useToken();
return (
<Layout>
<Header
style={{
display: 'flex',
alignItems: 'center',
}}
>
<div
className="demo-logo"
style={{ margin: '0 30px' }}
>
<h2>Spectrometer</h2>
</div>
</Header>
<Content>
{alert && <Alert type={alert.type} message={alert.msg} banner />}
<div
className="site-layout-content"
style={{
padding: '16px 50px',
background: colorBgContainer,
}}
>
{content}
</div>
</Content>
<SFooter />
</Layout>
);
};
UnauthPage.propTypes = {
content: PropTypes.element.isRequired,
alert: PropTypes.object,
};
export default UnauthPage;