Selaa lähdekoodia

etapa 1 front ent :art:

amenpunk 3 vuotta sitten
vanhempi
commit
19decbe3d4
2 muutettua tiedostoa jossa 38 lisäystä ja 10 poistoa
  1. 15 1
      psicoadmin/src/App.css
  2. 23 9
      psicoadmin/src/Components/Dashboard.js

+ 15 - 1
psicoadmin/src/App.css

@@ -45,7 +45,21 @@
45 45
 .Mui-selected > .MuiListItemIcon-root{
46 46
     color : #FFF !important;
47 47
 }
48
-
49 48
 .MuiBadge-badge{
50 49
     background-color : #fd4b4b !important;
51 50
 }
51
+
52
+.MuiToolbar-root{
53
+    border-bottom: 1px solid #fd4b4b !important;
54
+}
55
+
56
+.MuiListSubheader-root{
57
+    padding-left : 15px !important;
58
+    color : #cbcbcb !important;
59
+    font-weight : bold !important;
60
+    padding-bottom : 0px !important;
61
+    margin-bottom : 0px !important;
62
+    line-height: 30px !important;
63
+    font-size : 12px !important;
64
+}
65
+

+ 23 - 9
psicoadmin/src/Components/Dashboard.js

@@ -14,6 +14,8 @@ import Container from '@mui/material/Container';
14 14
 import Avatar from '@mui/material/Avatar';
15 15
 
16 16
 import MenuIcon from '@mui/icons-material/Menu';
17
+import FullscreenIcon from '@mui/icons-material/Fullscreen';
18
+
17 19
 import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
18 20
 import NotificationsIcon from '@mui/icons-material/Notifications';
19 21
 import { MainListItems, secondaryListItems } from './listItems';
@@ -103,14 +105,31 @@ function DashboardContent() {
103 105
             <Box sx={{ display: 'flex' }}>
104 106
                 <CssBaseline />
105 107
                 <AppBar style={{ backgroundColor : '#fff' }} position="absolute" open={open}>
106
-                    <Toolbar sx={{ pr: '24px' }} >
108
+                    <Toolbar sx={{ pr: '24px' ,  borderBottom : "1px solid #ec5e69"}} >
107 109
 
108 110
                         <IconButton style={{ color : '#212529' }} edge="start" color="inherit" aria-label="open drawer" onClick={toggleDrawer} sx={{ marginRight: '36px', ...(open && { display: 'none' }), }} >
109 111
                             <MenuIcon />
110 112
                         </IconButton>
111 113
 
112 114
                         <Typography component="h1" variant="h6" color="inherit" noWrap sx={{ flexGrow: 1 }} >
113
-                           revelation come
115
+
116
+                        <IconButton onClick={toggleDrawer}>
117
+                            {
118
+                                open ? 
119
+                                    (
120
+                                    <React.Fragment>
121
+                                        <MenuIcon />
122
+                                        <FullscreenIcon style={{ marginLeft : 15 }}/>
123
+                                    </React.Fragment>
124
+                                    )
125
+                                : undefined
126
+
127
+                            }
128
+                        </IconButton>
129
+
130
+
131
+
132
+
114 133
                         </Typography>
115 134
 
116 135
 
@@ -169,23 +188,18 @@ function DashboardContent() {
169 188
                         sx={{
170 189
                             display: 'flex',
171 190
                             alignItems: 'center',
172
-                            justifyContent: 'flex-end',
191
+                            justifyContent: 'flex-start',
173 192
                             px: [1],
174 193
                             
175 194
                         }} >
176 195
 
177
-                            <div className="sidebar-header">
196
+                        <div style={{ flat : 'righ' }} className="sidebar-header">
178 197
                                 <div className="width_img">
179 198
                                     <img src={Logo} alt=""/>
180 199
                                 </div>
181 200
                             </div>
182 201
 
183 202
 
184
-                        <IconButton onClick={toggleDrawer}>
185
-                            <ChevronLeftIcon />
186
-                        </IconButton>
187
-
188
-
189 203
 
190 204
 
191 205
                     </Toolbar>