@@ -23,12 +23,14 @@ import SearchIcon from '@material-ui/icons/Search';
2323import DashboardIcon from '@material-ui/icons/Dashboard' ;
2424import NotificationsIcon from '@material-ui/icons/Notifications' ;
2525import PersonIcon from '@material-ui/icons/Person' ;
26+ import UpdateIcon from '@material-ui/icons/Update' ;
2627
2728// MODALS
2829import AddModal from '../modals/AddModal' ;
2930import ServicesModal from '../modals/ServicesModal' ;
3031
3132// STYLESHEETS
33+ // import '../stylesheets/Occupied.scss';
3234import '../stylesheets/Occupied.scss' ;
3335
3436// DASHBOARD CONTEXT
@@ -75,54 +77,55 @@ const Occupied = React.memo(() => {
7577 } ;
7678
7779 const useStyles = makeStyles < Theme , StyleProps > ( theme => ( {
78- // "+" Card Only
80+ // ALL CARDS
7981 paper : {
82+ display : 'flex' ,
83+ flexDirection : 'column' ,
84+ alignContent : 'center' ,
85+ alignItems : 'center' ,
86+ position : 'relative' ,
87+ overflow : 'visible' ,
8088 height : 280 ,
8189 width : 280 ,
8290 textAlign : 'center' ,
83- color : '#3788fc ' ,
91+ color : '#888888 ' ,
8492 whiteSpace : 'nowrap' ,
8593 backgroundColor : '#ffffff' ,
8694 borderRadius : 3 ,
8795 border : '0' ,
8896 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)' ,
8997 '&:hover, &.Mui-focusVisible' : {
9098 backgroundColor : `#3788fc` ,
91- color : '#fff ' ,
92- fontWeight : 300 ,
99+ color : '#ffffff ' ,
100+ fontWeight : 600 ,
93101 } ,
94102 } ,
95103 iconbutton : {
96104 boxShadow : 'none' ,
97105 color : 'none' ,
98- '&:hover, &.Mui-focusVisible' : {
99- backgroundColor : `#3788fc` ,
100- color : '#fff' ,
101- }
106+ visibility : 'hidden' ,
102107 } ,
103108 btnStyle : {
104109 position : 'absolute' ,
105110 top : - 10 ,
106- left : - 10 ,
111+ left : - 72 ,
107112 margin : '0' ,
108113 color : '#eeeeee' ,
109114 borderRadius : '0' ,
110115 backgroundColor : 'none' ,
111- '&:hover' : {
112- backgroundColor : 'none'
113- }
116+ visibility : 'visible' ,
114117 } ,
115118 icon : {
116119 width : '75px' ,
117120 height : '75px' ,
118121 boxShadow : 'none' ,
119122 } ,
120- // EACH CARD CONTENT
123+ // ALL CARDS: CONTENT
121124 fontStyles : {
122- fontSize : '16px ' ,
125+ fontSize : '18px ' ,
123126 fontFamily : 'Roboto' ,
124- fontWeight : 100 ,
125- color : '#444d56'
127+ fontWeight : 300 ,
128+ color : '#444d56' ,
126129 }
127130 } ) ) ;
128131
@@ -146,9 +149,20 @@ const Occupied = React.memo(() => {
146149 < SearchIcon className = "icon" id = "searchIcon" />
147150 </ button >
148151 </ 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 >
152166 </ section >
153167 </ header >
154168
@@ -166,21 +180,41 @@ const Occupied = React.memo(() => {
166180 variant = "outlined"
167181 onClick = { event => handleClick ( event , app [ 0 ] , i ) }
168182 >
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 >
181208 < CardContent >
209+ < p id = "databaseName" > Database Name:</ p >
182210 < Typography className = { classes . fontStyles } > { app [ 0 ] } </ Typography >
183211 </ 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 >
184218 </ Card >
185219 </ div >
186220 ) ) }
0 commit comments