@@ -4,6 +4,7 @@ import SidebarItem from '../sidebar-item/sidebar-item';
4
4
import * as api from "./api" ;
5
5
import VoteButton from './button/button' ;
6
6
import Influence from './influence.jsx' ;
7
+ import GithubMark from '../../assets/github-mark-32.png' ;
7
8
8
9
function updateByProperty ( array , property , propertyValue , update ) {
9
10
return array . map ( item => {
@@ -178,15 +179,19 @@ export default class VoteApp extends React.Component {
178
179
return (
179
180
< div className = "vote-app" >
180
181
< div className = "vote-app__influence" >
181
- < div className = "vote-app__influence-descriptions" >
182
- < Influence className = "vote-app__influence-section" type = "normal" />
183
- < Influence className = "vote-app__influence-section" type = "golden" />
184
- </ div >
185
182
< div className = "vote-app__influence-disclaimer" >
186
183
DISCLAIMER: Since this feature is its Alpha stages, the formula for calculating influence may change.
187
184
</ div >
185
+ < div className = "vote-app__top" >
186
+ < div className = "vote-app__influence-description" >
187
+ < Influence className = "vote-app__influence-section" type = "normal" />
188
+ < Influence className = "vote-app__influence-section" type = "golden" />
189
+ </ div >
190
+ < div className = "vote-app__user-section" >
191
+ { this . renderSelf ( ) }
192
+ </ div >
193
+ </ div >
188
194
</ div >
189
- { this . renderSelf ( ) }
190
195
{ listInfo && < div >
191
196
{ voteAppToken && < button className = "vote-app__update-button" disabled = { inProgress } onClick = { ( ) => {
192
197
this . updateSelf ( ) ;
@@ -266,9 +271,9 @@ export default class VoteApp extends React.Component {
266
271
if ( isFetchingSelf ) {
267
272
return < div className = "vote-app__self-info" > Loading user info...</ div > ;
268
273
}
269
- return < div className = "vote-app__self-info" > You are not logged in. < button onClick = { ( ) => {
274
+ return < div className = "vote-app__login-button" > < button onClick = { ( ) => {
270
275
api . startLogin ( window . location + "" ) ;
271
- } } > Login with Github</ button > </ div > ;
276
+ } } > Login with Github < img src = { GithubMark } /> </ button > </ div > ;
272
277
} else {
273
278
return < div className = "vote-app__self-info" >
274
279
You are logged in as { selfInfo . login } . < button onClick = { ( ) => {
0 commit comments