[3a58bd6] | 1 | import styled from 'styled-components';
|
---|
| 2 | import { Typography } from '@mui/material';
|
---|
| 3 | import { Divider } from '@mui/material';
|
---|
| 4 |
|
---|
| 5 | import Logout from '@mui/icons-material/Logout';
|
---|
| 6 | import Dashboard from '@mui/icons-material/Dashboard';
|
---|
| 7 | import SupervisorAccount from '@mui/icons-material/SupervisorAccount';
|
---|
| 8 | import AccountCircleIcon from '@mui/icons-material/AccountCircle';
|
---|
[bc20307] | 9 | import Box from '@mui/material/Box';
|
---|
| 10 | import MenuIcon from '@mui/icons-material/Menu';
|
---|
| 11 | import CloseI from '@mui/icons-material/Close';
|
---|
| 12 | import { mobile_max_width } from '../../config/utilities';
|
---|
| 13 | import backgroundImage from '../../resources/login_background.jpg';
|
---|
[3a58bd6] | 14 |
|
---|
| 15 | export const Container = styled.div`
|
---|
| 16 | display: flex;
|
---|
| 17 | flex-direction: row;
|
---|
[bc20307] | 18 | min-height: 100vh;
|
---|
[3a58bd6] | 19 | flex: 1;
|
---|
| 20 | `;
|
---|
| 21 |
|
---|
| 22 | export const Header = styled.div`
|
---|
| 23 | display: flex;
|
---|
| 24 | width: 100%;
|
---|
| 25 | flex-direction: row;
|
---|
| 26 | justify-content: space-between;
|
---|
[bc20307] | 27 | padding: 10px 7%;
|
---|
| 28 | position: fixed;
|
---|
| 29 | z-index: 100;
|
---|
| 30 | background-color: ${(props) => props.theme.palette.background.whiteSmoke};
|
---|
| 31 | @media (max-width: ${mobile_max_width}px) {
|
---|
| 32 | padding-left: 15px;
|
---|
| 33 | }
|
---|
[3a58bd6] | 34 | `;
|
---|
| 35 |
|
---|
| 36 | export const DividerUnderHeader = styled(Divider).attrs({
|
---|
| 37 | variant: 'middle',
|
---|
| 38 | sx: {
|
---|
[bc20307] | 39 | margin: '0 5%',
|
---|
| 40 | marginTop: '75px',
|
---|
[3a58bd6] | 41 | borderWidth: '2px',
|
---|
| 42 | borderBottomWidth: 'thin',
|
---|
| 43 | },
|
---|
| 44 | })``;
|
---|
| 45 |
|
---|
| 46 | export const TitleAndLogoWrapper = styled.div`
|
---|
| 47 | display: flex;
|
---|
| 48 | flex-direction: row;
|
---|
| 49 | `;
|
---|
| 50 |
|
---|
| 51 | export const HeaderTitle = styled(Typography).attrs({
|
---|
| 52 | variant: 'h1',
|
---|
| 53 | fontWeight: 600,
|
---|
| 54 | })`
|
---|
| 55 | color: ${(props) => props.theme.palette.primary.main};
|
---|
| 56 | font-size: 2.5rem;
|
---|
| 57 | display: flex;
|
---|
| 58 | `;
|
---|
| 59 |
|
---|
| 60 | export const Logo = styled.img`
|
---|
| 61 | width: 100%;
|
---|
| 62 | height: 100%;
|
---|
| 63 | `;
|
---|
| 64 |
|
---|
| 65 | export const LogoWrapper = styled.div`
|
---|
| 66 | height: 100%;
|
---|
| 67 | width: 50px;
|
---|
| 68 | `;
|
---|
| 69 |
|
---|
| 70 | export const UserNameAndLogoutWrapper = styled.div`
|
---|
| 71 | display: flex;
|
---|
| 72 | flex-direction: row;
|
---|
| 73 | align-items: center;
|
---|
| 74 | `;
|
---|
| 75 |
|
---|
| 76 | export const UserName = styled(Typography).attrs({
|
---|
| 77 | variant: 'h3',
|
---|
| 78 | })`
|
---|
| 79 | margin-left: 10px;
|
---|
| 80 | margin-right: 20px;
|
---|
| 81 | font-size: 1.5rem;
|
---|
| 82 | font-weight: 600;
|
---|
| 83 | color: ${(props) => props.theme.palette.primary.main};
|
---|
| 84 | `;
|
---|
| 85 |
|
---|
| 86 | export const LogoutIcon = styled(Logout).attrs((props) => ({
|
---|
| 87 | sx: {
|
---|
| 88 | fontSize: 30,
|
---|
[bc20307] | 89 | color: `${props.theme.palette.error.main}`,
|
---|
[3a58bd6] | 90 | },
|
---|
| 91 | }))``;
|
---|
| 92 |
|
---|
| 93 | export const HeaderAndMainSectionWrapper = styled.div`
|
---|
| 94 | display: flex;
|
---|
| 95 | flex-direction: column;
|
---|
| 96 | width: 100%;
|
---|
[bc20307] | 97 | padding-left: 70px;
|
---|
[3a58bd6] | 98 | background-color: ${(props) => props.theme.palette.background.whiteSmoke};
|
---|
[bc20307] | 99 |
|
---|
| 100 | @media (max-width: ${mobile_max_width}px) {
|
---|
| 101 | padding-left: 0;
|
---|
| 102 | }
|
---|
[3a58bd6] | 103 | `;
|
---|
| 104 |
|
---|
| 105 | export const SideMenu = styled.div`
|
---|
| 106 | flex-direction: column;
|
---|
| 107 | width: 70px;
|
---|
| 108 | padding: 20px 10px 0 10px;
|
---|
| 109 | border-right: 1px solid grey;
|
---|
[bc20307] | 110 | position: fixed;
|
---|
| 111 | height: 100%;
|
---|
[3a58bd6] | 112 | background-color: ${(props) => props.theme.palette.primary.main};
|
---|
| 113 | `;
|
---|
| 114 |
|
---|
| 115 | export const DashboardIcon = styled(Dashboard).attrs((props) => ({
|
---|
| 116 | sx: {
|
---|
| 117 | fontSize: 35,
|
---|
| 118 | color: props.theme.palette.background.white,
|
---|
| 119 | },
|
---|
| 120 | }))`
|
---|
| 121 | margin-bottom: 15px;
|
---|
| 122 | `;
|
---|
| 123 |
|
---|
| 124 | export const SupervisorAccountIcon = styled(SupervisorAccount).attrs(
|
---|
| 125 | (props) => ({
|
---|
| 126 | sx: {
|
---|
| 127 | fontSize: 35,
|
---|
| 128 | color: props.theme.palette.background.white,
|
---|
| 129 | },
|
---|
| 130 | })
|
---|
| 131 | )``;
|
---|
| 132 |
|
---|
| 133 | export const UserIcon = styled(AccountCircleIcon).attrs((props) => ({
|
---|
| 134 | sx: {
|
---|
| 135 | fontSize: 30,
|
---|
| 136 | color: `${props.theme.palette.primary.main}`,
|
---|
| 137 | },
|
---|
| 138 | }))``;
|
---|
| 139 |
|
---|
| 140 | export const MainSection = styled.div`
|
---|
| 141 | width: 100%;
|
---|
| 142 | height: 100%;
|
---|
[bc20307] | 143 | padding-top: 20px;
|
---|
[3a58bd6] | 144 | display: flex;
|
---|
| 145 | flex-direction: column;
|
---|
| 146 | `;
|
---|
[bc20307] | 147 |
|
---|
| 148 | export const MenuBurgerIcon = styled(MenuIcon).attrs((props) => ({
|
---|
| 149 | sx: {
|
---|
| 150 | fontSize: 50,
|
---|
| 151 | color: `${props.theme.palette.primary.main}`,
|
---|
| 152 | },
|
---|
| 153 | }))``;
|
---|