source: sources/client/src/screens/AdminHomeScreen/styles.js

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

Push before video

  • Property mode set to 100644
File size: 3.4 KB
RevLine 
[3a58bd6]1import styled from 'styled-components';
2import { Typography } from '@mui/material';
3import { Divider } from '@mui/material';
4
5import Logout from '@mui/icons-material/Logout';
6import Dashboard from '@mui/icons-material/Dashboard';
7import SupervisorAccount from '@mui/icons-material/SupervisorAccount';
8import AccountCircleIcon from '@mui/icons-material/AccountCircle';
[bc20307]9import Box from '@mui/material/Box';
10import MenuIcon from '@mui/icons-material/Menu';
11import CloseI from '@mui/icons-material/Close';
12import { mobile_max_width } from '../../config/utilities';
13import backgroundImage from '../../resources/login_background.jpg';
[3a58bd6]14
15export const Container = styled.div`
16 display: flex;
17 flex-direction: row;
[bc20307]18 min-height: 100vh;
[3a58bd6]19 flex: 1;
20`;
21
22export 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
36export 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
46export const TitleAndLogoWrapper = styled.div`
47 display: flex;
48 flex-direction: row;
49`;
50
51export 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
60export const Logo = styled.img`
61 width: 100%;
62 height: 100%;
63`;
64
65export const LogoWrapper = styled.div`
66 height: 100%;
67 width: 50px;
68`;
69
70export const UserNameAndLogoutWrapper = styled.div`
71 display: flex;
72 flex-direction: row;
73 align-items: center;
74`;
75
76export 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
86export const LogoutIcon = styled(Logout).attrs((props) => ({
87 sx: {
88 fontSize: 30,
[bc20307]89 color: `${props.theme.palette.error.main}`,
[3a58bd6]90 },
91}))``;
92
93export 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
105export 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
115export 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
124export const SupervisorAccountIcon = styled(SupervisorAccount).attrs(
125 (props) => ({
126 sx: {
127 fontSize: 35,
128 color: props.theme.palette.background.white,
129 },
130 })
131)``;
132
133export const UserIcon = styled(AccountCircleIcon).attrs((props) => ({
134 sx: {
135 fontSize: 30,
136 color: `${props.theme.palette.primary.main}`,
137 },
138}))``;
139
140export 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
148export const MenuBurgerIcon = styled(MenuIcon).attrs((props) => ({
149 sx: {
150 fontSize: 50,
151 color: `${props.theme.palette.primary.main}`,
152 },
153}))``;
Note: See TracBrowser for help on using the repository browser.