@@ -19,6 +19,8 @@ import Typography from 'material-ui/Typography';
19
19
import ContentCopyIcon from 'material-ui-icons/ContentCopy' ;
20
20
21
21
import MoreHoriz from 'material-ui-icons/MoreHoriz' ;
22
+ import CallToAction from 'material-ui-icons/CallToAction' ;
23
+ import Replay from 'material-ui-icons/Replay' ;
22
24
23
25
import Tag from 'src/components/Tag' ;
24
26
import RegionIndicator from './RegionIndicator' ;
@@ -49,11 +51,13 @@ const distroIcons = {
49
51
type CSSClasses =
50
52
'cardSection'
51
53
| 'distroIcon'
52
- | 'ipAddress '
54
+ | 'rightMargin '
53
55
| 'regionIndicator'
54
56
| 'flagImg'
55
57
| 'cardActions'
56
- | 'button' ;
58
+ | 'button'
59
+ | 'consoleButton'
60
+ | 'rebootButton' ;
57
61
58
62
const styles : StyleRulesCallback < CSSClasses > = ( theme : Theme ) => ( {
59
63
cardSection : {
@@ -63,7 +67,7 @@ const styles: StyleRulesCallback<CSSClasses> = (theme: Theme) => ({
63
67
marginTop : theme . spacing . unit ,
64
68
width : theme . spacing . unit * 3 ,
65
69
} ,
66
- ipAddress : {
70
+ rightMargin : {
67
71
marginRight : theme . spacing . unit ,
68
72
} ,
69
73
regionIndicator : {
@@ -73,12 +77,22 @@ const styles: StyleRulesCallback<CSSClasses> = (theme: Theme) => ({
73
77
marginRight : theme . spacing . unit ,
74
78
} ,
75
79
cardActions : {
80
+ backgroundColor : '#f9f9f9' ,
76
81
padding : 0 ,
77
82
} ,
78
83
button : {
79
84
height : '100%' ,
80
85
margin : 0 ,
81
86
} ,
87
+ consoleButton : {
88
+ width : '60%' ,
89
+ borderColor : 'rgba(0, 0, 0, 0.12)' ,
90
+ border : '1px solid' ,
91
+ borderWidth : '0 1px 0 0' ,
92
+ } ,
93
+ rebootButton : {
94
+ width : '40%' ,
95
+ } ,
82
96
} ) ;
83
97
84
98
interface Props {
@@ -130,7 +144,7 @@ class LinodeCard extends React.Component<Props & WithStyles<CSSClasses> > {
130
144
< div className = { classes . cardSection } >
131
145
< div >
132
146
< Typography variant = "body2" >
133
- < span className = { classes . ipAddress } > { linode . ipv4 [ 0 ] } </ span >
147
+ < span className = { classes . rightMargin } > { linode . ipv4 [ 0 ] } </ span >
134
148
< ContentCopyIcon
135
149
className = "copyIcon"
136
150
onClick = { ( ) => copy ( linode . ipv4 [ 0 ] ) }
@@ -139,7 +153,7 @@ class LinodeCard extends React.Component<Props & WithStyles<CSSClasses> > {
139
153
</ div >
140
154
< div >
141
155
< Typography >
142
- < span className = { classes . ipAddress } > { linode . ipv6 } </ span >
156
+ < span className = { classes . rightMargin } > { linode . ipv6 } </ span >
143
157
< ContentCopyIcon
144
158
className = "copyIcon"
145
159
onClick = { ( ) => copy ( linode . ipv6 ) }
@@ -151,11 +165,14 @@ class LinodeCard extends React.Component<Props & WithStyles<CSSClasses> > {
151
165
< RegionIndicator region = { linode . region } />
152
166
</ div >
153
167
</ CardContent >
168
+ < Divider />
154
169
< CardActions className = { classes . cardActions } >
155
- < Button className = { classes . button } >
170
+ < Button className = { `${ classes . button } ${ classes . consoleButton } ` } >
171
+ < CallToAction className = { classes . rightMargin } />
156
172
Launch Console
157
173
</ Button >
158
- < Button className = { classes . button } >
174
+ < Button className = { `${ classes . button } ${ classes . rebootButton } ` } >
175
+ < Replay className = { classes . rightMargin } />
159
176
Reboot
160
177
</ Button >
161
178
</ CardActions >
0 commit comments