[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';
|
---|
| 9 |
|
---|
| 10 | export const Container = styled.div`
|
---|
| 11 | display: flex;
|
---|
| 12 | flex-direction: row;
|
---|
| 13 | height: 100%;
|
---|
| 14 | flex: 1;
|
---|
| 15 | `;
|
---|
| 16 |
|
---|
| 17 | export const Header = styled.div`
|
---|
| 18 | display: flex;
|
---|
| 19 | width: 100%;
|
---|
| 20 | flex-direction: row;
|
---|
| 21 | justify-content: space-between;
|
---|
| 22 | padding: 10px 30px;
|
---|
| 23 | `;
|
---|
| 24 |
|
---|
| 25 | export const DividerUnderHeader = styled(Divider).attrs({
|
---|
| 26 | variant: 'middle',
|
---|
| 27 | sx: {
|
---|
| 28 | margin: '0 25px',
|
---|
| 29 | borderWidth: '2px',
|
---|
| 30 | borderBottomWidth: 'thin',
|
---|
| 31 | },
|
---|
| 32 | })``;
|
---|
| 33 |
|
---|
| 34 | export const TitleAndLogoWrapper = styled.div`
|
---|
| 35 | display: flex;
|
---|
| 36 | flex-direction: row;
|
---|
| 37 | `;
|
---|
| 38 |
|
---|
| 39 | export const HeaderTitle = styled(Typography).attrs({
|
---|
| 40 | variant: 'h1',
|
---|
| 41 | fontWeight: 600,
|
---|
| 42 | })`
|
---|
| 43 | color: ${(props) => props.theme.palette.primary.main};
|
---|
| 44 | font-size: 2.5rem;
|
---|
| 45 | display: flex;
|
---|
| 46 | `;
|
---|
| 47 |
|
---|
| 48 | export const Logo = styled.img`
|
---|
| 49 | width: 100%;
|
---|
| 50 | height: 100%;
|
---|
| 51 | `;
|
---|
| 52 |
|
---|
| 53 | export const LogoWrapper = styled.div`
|
---|
| 54 | height: 100%;
|
---|
| 55 | width: 50px;
|
---|
| 56 | `;
|
---|
| 57 |
|
---|
| 58 | export const UserNameAndLogoutWrapper = styled.div`
|
---|
| 59 | display: flex;
|
---|
| 60 | flex-direction: row;
|
---|
| 61 | align-items: center;
|
---|
| 62 | `;
|
---|
| 63 |
|
---|
| 64 | export const UserName = styled(Typography).attrs({
|
---|
| 65 | variant: 'h3',
|
---|
| 66 | })`
|
---|
| 67 | margin-left: 10px;
|
---|
| 68 | margin-right: 20px;
|
---|
| 69 | font-size: 1.5rem;
|
---|
| 70 | font-weight: 600;
|
---|
| 71 | color: ${(props) => props.theme.palette.primary.main};
|
---|
| 72 | `;
|
---|
| 73 |
|
---|
| 74 | export const LogoutIcon = styled(Logout).attrs((props) => ({
|
---|
| 75 | sx: {
|
---|
| 76 | fontSize: 30,
|
---|
| 77 | color: `${props.theme.palette.error.light}`,
|
---|
| 78 | },
|
---|
| 79 | }))``;
|
---|
| 80 |
|
---|
| 81 | export const HeaderAndMainSectionWrapper = styled.div`
|
---|
| 82 | display: flex;
|
---|
| 83 | flex-direction: column;
|
---|
| 84 | height: 100%;
|
---|
| 85 | width: 100%;
|
---|
| 86 | background-color: ${(props) => props.theme.palette.background.whiteSmoke};
|
---|
| 87 | `;
|
---|
| 88 |
|
---|
| 89 | export const SideMenu = styled.div`
|
---|
| 90 | flex-direction: column;
|
---|
| 91 | height: 100%;
|
---|
| 92 | width: 70px;
|
---|
| 93 | padding: 20px 10px 0 10px;
|
---|
| 94 | border-right: 1px solid grey;
|
---|
| 95 | background-color: ${(props) => props.theme.palette.primary.main};
|
---|
| 96 | `;
|
---|
| 97 |
|
---|
| 98 | export const DashboardIcon = styled(Dashboard).attrs((props) => ({
|
---|
| 99 | sx: {
|
---|
| 100 | fontSize: 35,
|
---|
| 101 | color: props.theme.palette.background.white,
|
---|
| 102 | },
|
---|
| 103 | }))`
|
---|
| 104 | margin-bottom: 15px;
|
---|
| 105 | `;
|
---|
| 106 |
|
---|
| 107 | export const SupervisorAccountIcon = styled(SupervisorAccount).attrs(
|
---|
| 108 | (props) => ({
|
---|
| 109 | sx: {
|
---|
| 110 | fontSize: 35,
|
---|
| 111 | color: props.theme.palette.background.white,
|
---|
| 112 | },
|
---|
| 113 | })
|
---|
| 114 | )``;
|
---|
| 115 |
|
---|
| 116 | export const UserIcon = styled(AccountCircleIcon).attrs((props) => ({
|
---|
| 117 | sx: {
|
---|
| 118 | fontSize: 30,
|
---|
| 119 | color: `${props.theme.palette.primary.main}`,
|
---|
| 120 | },
|
---|
| 121 | }))``;
|
---|
| 122 |
|
---|
| 123 | export const MainSection = styled.div`
|
---|
| 124 | width: 100%;
|
---|
| 125 | height: 100%;
|
---|
| 126 | padding: 20px 0px;
|
---|
| 127 | display: flex;
|
---|
| 128 | flex-direction: column;
|
---|
| 129 | `;
|
---|