diff --git a/src/App.js b/src/App.js index 57301fb..92d82c1 100644 --- a/src/App.js +++ b/src/App.js @@ -16,6 +16,7 @@ import Pie from './scenes/Pie'; import FAQ from './scenes/FAQ'; import Geography from './scenes/Geography'; import Calendar from './scenes/Calendar'; +import Login from './scenes/Login'; function App() { const [theme, coloMode] = useMode(); @@ -39,6 +40,7 @@ function App() { } /> } /> } /> + } /> diff --git a/src/scenes/Login/index.jsx b/src/scenes/Login/index.jsx new file mode 100644 index 0000000..925aa53 --- /dev/null +++ b/src/scenes/Login/index.jsx @@ -0,0 +1,90 @@ +import { Box, Button, TextField } from '@mui/material'; +import useMediaQuery from '@mui/material/useMediaQuery'; +import { Formik } from 'formik'; +import * as yup from 'yup'; +import Header from '../../components/Shared/Header/Header'; + +const initialValues = { + email: '', + password: '', +}; + +const userSchema = yup.object().shape({ + email: yup.string().email('Invalid Email').required('Required'), + password: yup.string().required('Required'), +}); + +const Login = () => { + const isNonMobile = useMediaQuery('(min-width: 600px)'); + + const handleFormSubmit = (values) => { + console.log(values); + }; + + return ( + +
+ + + {({ + values, errors, touched, handleBlur, handleChange, handleSubmit, handleReset, + }) => ( +
+ + + + + + + +
+ )} +
+ + ); +}; + +export default Login; diff --git a/src/scenes/global/Sidebar/Sidebar.jsx b/src/scenes/global/Sidebar/Sidebar.jsx index ef3b8c3..cddcad0 100644 --- a/src/scenes/global/Sidebar/Sidebar.jsx +++ b/src/scenes/global/Sidebar/Sidebar.jsx @@ -16,6 +16,7 @@ import PieChartOutlinedIcon from '@mui/icons-material/PieChartOutline'; import TimeLineOutlinedIcon from '@mui/icons-material/TimelineOutlined'; import MenuOutlinedIcon from '@mui/icons-material/MenuOutlined'; import MapOutlinedIcon from '@mui/icons-material/MapOutlined'; +import LoginIcon from '@mui/icons-material/Login'; import PropTypes from 'prop-types'; import user from '../../../assets/users/user.png'; import { tokens } from '../../../theme'; @@ -184,6 +185,13 @@ const Sidebar = () => { selected={selected} setSelected={setSelected} /> + } + selected={selected} + setSelected={setSelected} + />