source: sources/client/src/components/Sidedrawer/styles.js@ bc20307

Last change on this file since bc20307 was bc20307, checked in by Tasevski2 <39170279+Tasevski2@…>, 2 years ago

Push before video

  • Property mode set to 100644
File size: 3.4 KB
Line 
1import styled from 'styled-components';
2import { Divider } from '@mui/material';
3import CloseI from '@mui/icons-material/Close';
4import backgroundImage from '../../resources/login_background.jpg';
5import Box from '@mui/material/Box';
6import AccountCircleIcon from '@mui/icons-material/AccountCircle';
7import Dashboard from '@mui/icons-material/Dashboard';
8import Logout from '@mui/icons-material/Logout';
9import SupervisorAccount from '@mui/icons-material/SupervisorAccount';
10import MapOutlinedIcon from '@mui/icons-material/MapOutlined';
11import DirectionsCarIcon from '@mui/icons-material/DirectionsCarFilledOutlined';
12import TimerOutlinedIcon from '@mui/icons-material/TimerOutlined';
13import PersonOutlinedIcon from '@mui/icons-material/PersonOutlineOutlined';
14import LoginOutlinedIcon from '@mui/icons-material/LoginOutlined';
15import AppRegistrationIcon from '@mui/icons-material/AppRegistration';
16
17export 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
62export 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
72export 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
83export const CloseIcon = styled(CloseI).attrs((props) => ({
84 sx: {
85 fontSize: 50,
86 color: `${props.theme.palette.error.main}`,
87 },
88}))``;
89
90export const DashboardIcon = styled(Dashboard).attrs((props) => ({
91 sx: {
92 fontSize: 35,
93 },
94}))`
95 margin-bottom: 15px;
96`;
97
98export const CarIcon = styled(DirectionsCarIcon).attrs((props) => ({
99 sx: {
100 fontSize: 35,
101 },
102}))``;
103
104export const ProfileIcon = styled(PersonOutlinedIcon).attrs((props) => ({
105 sx: {
106 fontSize: 35,
107 },
108}))``;
109
110export const TimerIcon = styled(TimerOutlinedIcon).attrs((props) => ({
111 sx: {
112 fontSize: 35,
113 },
114}))``;
115
116export const MapIcon = styled(MapOutlinedIcon).attrs((props) => ({
117 sx: {
118 fontSize: 35,
119 },
120}))``;
121
122export const SupervisorAccountIcon = styled(SupervisorAccount).attrs(
123 (props) => ({
124 sx: {
125 fontSize: 35,
126 },
127 })
128)``;
129
130export const UserIcon = styled(AccountCircleIcon).attrs((props) => ({
131 sx: {
132 fontSize: 30,
133 },
134}))``;
135
136export const LoginIcon = styled(LoginOutlinedIcon).attrs((props) => ({
137 sx: {
138 fontSize: 30,
139 },
140}))``;
141
142export const RegistrationIcon = styled(AppRegistrationIcon).attrs((props) => ({
143 sx: {
144 fontSize: 30,
145 color: props.theme.palette.background.whiteSmoke,
146 },
147}))``;
148
149export const LogoutIcon = styled(Logout).attrs((props) => ({
150 sx: {
151 fontSize: 30,
152 color: `${props.theme.palette.error.main}`,
153 },
154}))``;
Note: See TracBrowser for help on using the repository browser.