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

Last change on this file since e8b1076 was 3a58bd6, checked in by Viktor <39170279+Tasevski2@…>, 3 years ago

Added Frontend

  • Property mode set to 100644
File size: 2.7 KB
Line 
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';
9
10export const Container = styled.div`
11 display: flex;
12 flex-direction: row;
13 height: 100%;
14 flex: 1;
15`;
16
17export 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
25export const DividerUnderHeader = styled(Divider).attrs({
26 variant: 'middle',
27 sx: {
28 margin: '0 25px',
29 borderWidth: '2px',
30 borderBottomWidth: 'thin',
31 },
32})``;
33
34export const TitleAndLogoWrapper = styled.div`
35 display: flex;
36 flex-direction: row;
37`;
38
39export 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
48export const Logo = styled.img`
49 width: 100%;
50 height: 100%;
51`;
52
53export const LogoWrapper = styled.div`
54 height: 100%;
55 width: 50px;
56`;
57
58export const UserNameAndLogoutWrapper = styled.div`
59 display: flex;
60 flex-direction: row;
61 align-items: center;
62`;
63
64export 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
74export const LogoutIcon = styled(Logout).attrs((props) => ({
75 sx: {
76 fontSize: 30,
77 color: `${props.theme.palette.error.light}`,
78 },
79}))``;
80
81export 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
89export 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
98export 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
107export const SupervisorAccountIcon = styled(SupervisorAccount).attrs(
108 (props) => ({
109 sx: {
110 fontSize: 35,
111 color: props.theme.palette.background.white,
112 },
113 })
114)``;
115
116export const UserIcon = styled(AccountCircleIcon).attrs((props) => ({
117 sx: {
118 fontSize: 30,
119 color: `${props.theme.palette.primary.main}`,
120 },
121}))``;
122
123export const MainSection = styled.div`
124 width: 100%;
125 height: 100%;
126 padding: 20px 0px;
127 display: flex;
128 flex-direction: column;
129`;
Note: See TracBrowser for help on using the repository browser.