@@ -23,12 +23,14 @@ import SearchIcon from '@material-ui/icons/Search';
23
23
import DashboardIcon from '@material-ui/icons/Dashboard' ;
24
24
import NotificationsIcon from '@material-ui/icons/Notifications' ;
25
25
import PersonIcon from '@material-ui/icons/Person' ;
26
+ import UpdateIcon from '@material-ui/icons/Update' ;
26
27
27
28
// MODALS
28
29
import AddModal from '../modals/AddModal' ;
29
30
import ServicesModal from '../modals/ServicesModal' ;
30
31
31
32
// STYLESHEETS
33
+ // import '../stylesheets/Occupied.scss';
32
34
import '../stylesheets/Occupied.scss' ;
33
35
34
36
// DASHBOARD CONTEXT
@@ -75,54 +77,55 @@ const Occupied = React.memo(() => {
75
77
} ;
76
78
77
79
const useStyles = makeStyles < Theme , StyleProps > ( theme => ( {
78
- // "+" Card Only
80
+ // ALL CARDS
79
81
paper : {
82
+ display : 'flex' ,
83
+ flexDirection : 'column' ,
84
+ alignContent : 'center' ,
85
+ alignItems : 'center' ,
86
+ position : 'relative' ,
87
+ overflow : 'visible' ,
80
88
height : 280 ,
81
89
width : 280 ,
82
90
textAlign : 'center' ,
83
- color : '#3788fc ' ,
91
+ color : '#888888 ' ,
84
92
whiteSpace : 'nowrap' ,
85
93
backgroundColor : '#ffffff' ,
86
94
borderRadius : 3 ,
87
95
border : '0' ,
88
96
boxShadow : '0 6px 6px 0 rgba(153, 153, 153, 0.14), 0 6px 6px -2px rgba(153, 153, 153, 0.2), 0 6px 8px 0 rgba(153, 153, 153, 0.12)' ,
89
97
'&:hover, &.Mui-focusVisible' : {
90
98
backgroundColor : `#3788fc` ,
91
- color : '#fff ' ,
92
- fontWeight : 300 ,
99
+ color : '#ffffff ' ,
100
+ fontWeight : 600 ,
93
101
} ,
94
102
} ,
95
103
iconbutton : {
96
104
boxShadow : 'none' ,
97
105
color : 'none' ,
98
- '&:hover, &.Mui-focusVisible' : {
99
- backgroundColor : `#3788fc` ,
100
- color : '#fff' ,
101
- }
106
+ visibility : 'hidden' ,
102
107
} ,
103
108
btnStyle : {
104
109
position : 'absolute' ,
105
110
top : - 10 ,
106
- left : - 10 ,
111
+ left : - 72 ,
107
112
margin : '0' ,
108
113
color : '#eeeeee' ,
109
114
borderRadius : '0' ,
110
115
backgroundColor : 'none' ,
111
- '&:hover' : {
112
- backgroundColor : 'none'
113
- }
116
+ visibility : 'visible' ,
114
117
} ,
115
118
icon : {
116
119
width : '75px' ,
117
120
height : '75px' ,
118
121
boxShadow : 'none' ,
119
122
} ,
120
- // EACH CARD CONTENT
123
+ // ALL CARDS: CONTENT
121
124
fontStyles : {
122
- fontSize : '16px ' ,
125
+ fontSize : '18px ' ,
123
126
fontFamily : 'Roboto' ,
124
- fontWeight : 100 ,
125
- color : '#444d56'
127
+ fontWeight : 300 ,
128
+ color : '#444d56' ,
126
129
}
127
130
} ) ) ;
128
131
@@ -146,9 +149,20 @@ const Occupied = React.memo(() => {
146
149
< SearchIcon className = "icon" id = "searchIcon" />
147
150
</ button >
148
151
</ form >
149
- < DashboardIcon className = "sideIcon" id = "dashboardIcon" />
150
- < NotificationsIcon className = "sideIcon" id = "notificationsIcon" />
151
- < PersonIcon className = "sideIcon" id = "personIcon" />
152
+ < div className = "dashboardIconArea" >
153
+ < span className = "dashboardTooltip" > You have { applications . length } active databases</ span >
154
+ < DashboardIcon className = "navIcon" id = "dashboardIcon" />
155
+ </ div >
156
+
157
+ < div className = "notificationsIconArea" >
158
+ < span className = "notificationsTooltip" > You have no new alerts</ span >
159
+ < NotificationsIcon className = "navIcon" id = "notificationsIcon" />
160
+ </ div >
161
+
162
+ < div className = "personIconArea" >
163
+ < span className = "personTooltip" > You are not logged in</ span >
164
+ < PersonIcon className = "navIcon" id = "personIcon" />
165
+ </ div >
152
166
</ section >
153
167
</ header >
154
168
@@ -166,21 +180,41 @@ const Occupied = React.memo(() => {
166
180
variant = "outlined"
167
181
onClick = { event => handleClick ( event , app [ 0 ] , i ) }
168
182
>
169
- < CardHeader
170
- avatar = {
171
- < IconButton
172
- ref = { element => ( delRef . current [ i ] = element ) }
173
- className = { classes . iconbutton }
174
- aria-label = "Delete"
175
- onClick = { event => confirmDelete ( event , app [ 0 ] , i ) }
176
- >
177
- < HighlightOffIcon className = { classes . btnStyle } id = "deleteIcon" />
178
- </ IconButton >
179
- }
180
- > </ CardHeader >
183
+
184
+ < div className = "databaseIconContainer" >
185
+ < div className = "databaseIconHeader" >
186
+ < img className = "databaseIcon" src = "../assets/mongo-icon-white.png" alt = "MongoDB" > </ img >
187
+ </ div >
188
+ </ div >
189
+
190
+ < CardHeader
191
+ avatar = {
192
+ < IconButton
193
+ id = "iconButton"
194
+ ref = { element => ( delRef . current [ i ] = element ) }
195
+ className = { classes . iconbutton }
196
+ aria-label = "Delete"
197
+ onClick = { event => confirmDelete ( event , app [ 0 ] , i ) }
198
+ >
199
+ < HighlightOffIcon
200
+ className = { classes . btnStyle }
201
+ id = "deleteIcon"
202
+ ref = { element => ( delRef . current [ i ] = element ) }
203
+ />
204
+ </ IconButton >
205
+ }
206
+ >
207
+ </ CardHeader >
181
208
< CardContent >
209
+ < p id = "databaseName" > Database Name:</ p >
182
210
< Typography className = { classes . fontStyles } > { app [ 0 ] } </ Typography >
183
211
</ CardContent >
212
+ < hr className = "cardLine" />
213
+
214
+ < div className = "cardFooter" >
215
+ < UpdateIcon className = "cardFooterIcon" />
216
+ < em > < p id = "cardFooterText" > Just updated</ p > </ em >
217
+ </ div >
184
218
</ Card >
185
219
</ div >
186
220
) ) }
0 commit comments