1 | import styled from 'styled-components';
|
---|
2 | import { Divider } from '@mui/material';
|
---|
3 | import CloseI from '@mui/icons-material/Close';
|
---|
4 | import backgroundImage from '../../resources/login_background.jpg';
|
---|
5 | import Box from '@mui/material/Box';
|
---|
6 | import AccountCircleIcon from '@mui/icons-material/AccountCircle';
|
---|
7 | import Dashboard from '@mui/icons-material/Dashboard';
|
---|
8 | import Logout from '@mui/icons-material/Logout';
|
---|
9 | import SupervisorAccount from '@mui/icons-material/SupervisorAccount';
|
---|
10 | import MapOutlinedIcon from '@mui/icons-material/MapOutlined';
|
---|
11 | import DirectionsCarIcon from '@mui/icons-material/DirectionsCarFilledOutlined';
|
---|
12 | import TimerOutlinedIcon from '@mui/icons-material/TimerOutlined';
|
---|
13 | import PersonOutlinedIcon from '@mui/icons-material/PersonOutlineOutlined';
|
---|
14 | import LoginOutlinedIcon from '@mui/icons-material/LoginOutlined';
|
---|
15 | import AppRegistrationIcon from '@mui/icons-material/AppRegistration';
|
---|
16 |
|
---|
17 | export const DrawerContainer = styled(Box).attrs((props) => ({
|
---|
18 | sx: {
|
---|
19 | width: '250px',
|
---|
20 | height: '100%',
|
---|
21 | backgroundImage: `url(${backgroundImage})`,
|
---|
22 | },
|
---|
23 | }))`
|
---|
24 | ul:first-of-type {
|
---|
25 | padding-top: 35px;
|
---|
26 | span {
|
---|
27 | font-size: 1.5rem;
|
---|
28 | color: whiteSmoke;
|
---|
29 | font-weight: 600;
|
---|
30 | margin-left: 10px;
|
---|
31 | }
|
---|
32 |
|
---|
33 | svg {
|
---|
34 | margin: 0;
|
---|
35 | color: whiteSmoke;
|
---|
36 | width: 40px;
|
---|
37 | height: 40px;
|
---|
38 | }
|
---|
39 | }
|
---|
40 |
|
---|
41 | ul:last-of-type {
|
---|
42 | position: absolute;
|
---|
43 | bottom: 15px;
|
---|
44 | width: 100%;
|
---|
45 |
|
---|
46 | span {
|
---|
47 | font-size: 1rem;
|
---|
48 | color: whiteSmoke;
|
---|
49 | font-weight: 600;
|
---|
50 | }
|
---|
51 | li:first-of-type svg {
|
---|
52 | color: whiteSmoke;
|
---|
53 | }
|
---|
54 | }
|
---|
55 | #err-color {
|
---|
56 | span {
|
---|
57 | color: ${(props) => props.theme.palette.error.main};
|
---|
58 | }
|
---|
59 | }
|
---|
60 | `;
|
---|
61 |
|
---|
62 | export const DividerUnderListItem = styled(Divider).attrs({
|
---|
63 | variant: 'middle',
|
---|
64 | sx: {
|
---|
65 | margin: '5px 5%',
|
---|
66 | borderWidth: '2px',
|
---|
67 | borderBottomWidth: 'thin',
|
---|
68 | borderColor: 'whiteSmoke',
|
---|
69 | },
|
---|
70 | })``;
|
---|
71 |
|
---|
72 | export const DividerUnderList = styled(Divider).attrs({
|
---|
73 | variant: 'fullWidth',
|
---|
74 | sx: {
|
---|
75 | marginTop: '15px',
|
---|
76 | marginBottom: '25px',
|
---|
77 | borderWidth: '2px',
|
---|
78 | borderBottomWidth: 'thin',
|
---|
79 | borderColor: 'whiteSmoke',
|
---|
80 | },
|
---|
81 | })``;
|
---|
82 |
|
---|
83 | export const CloseIcon = styled(CloseI).attrs((props) => ({
|
---|
84 | sx: {
|
---|
85 | fontSize: 50,
|
---|
86 | color: `${props.theme.palette.error.main}`,
|
---|
87 | },
|
---|
88 | }))``;
|
---|
89 |
|
---|
90 | export const DashboardIcon = styled(Dashboard).attrs((props) => ({
|
---|
91 | sx: {
|
---|
92 | fontSize: 35,
|
---|
93 | },
|
---|
94 | }))`
|
---|
95 | margin-bottom: 15px;
|
---|
96 | `;
|
---|
97 |
|
---|
98 | export const CarIcon = styled(DirectionsCarIcon).attrs((props) => ({
|
---|
99 | sx: {
|
---|
100 | fontSize: 35,
|
---|
101 | },
|
---|
102 | }))``;
|
---|
103 |
|
---|
104 | export const ProfileIcon = styled(PersonOutlinedIcon).attrs((props) => ({
|
---|
105 | sx: {
|
---|
106 | fontSize: 35,
|
---|
107 | },
|
---|
108 | }))``;
|
---|
109 |
|
---|
110 | export const TimerIcon = styled(TimerOutlinedIcon).attrs((props) => ({
|
---|
111 | sx: {
|
---|
112 | fontSize: 35,
|
---|
113 | },
|
---|
114 | }))``;
|
---|
115 |
|
---|
116 | export const MapIcon = styled(MapOutlinedIcon).attrs((props) => ({
|
---|
117 | sx: {
|
---|
118 | fontSize: 35,
|
---|
119 | },
|
---|
120 | }))``;
|
---|
121 |
|
---|
122 | export const SupervisorAccountIcon = styled(SupervisorAccount).attrs(
|
---|
123 | (props) => ({
|
---|
124 | sx: {
|
---|
125 | fontSize: 35,
|
---|
126 | },
|
---|
127 | })
|
---|
128 | )``;
|
---|
129 |
|
---|
130 | export const UserIcon = styled(AccountCircleIcon).attrs((props) => ({
|
---|
131 | sx: {
|
---|
132 | fontSize: 30,
|
---|
133 | },
|
---|
134 | }))``;
|
---|
135 |
|
---|
136 | export const LoginIcon = styled(LoginOutlinedIcon).attrs((props) => ({
|
---|
137 | sx: {
|
---|
138 | fontSize: 30,
|
---|
139 | },
|
---|
140 | }))``;
|
---|
141 |
|
---|
142 | export const RegistrationIcon = styled(AppRegistrationIcon).attrs((props) => ({
|
---|
143 | sx: {
|
---|
144 | fontSize: 30,
|
---|
145 | color: props.theme.palette.background.whiteSmoke,
|
---|
146 | },
|
---|
147 | }))``;
|
---|
148 |
|
---|
149 | export const LogoutIcon = styled(Logout).attrs((props) => ({
|
---|
150 | sx: {
|
---|
151 | fontSize: 30,
|
---|
152 | color: `${props.theme.palette.error.main}`,
|
---|
153 | },
|
---|
154 | }))``;
|
---|