Basic UI elements in place
This commit is contained in:
@@ -3,24 +3,30 @@ import { Login, Logout, ResetPassword, ForgotPassword, ConfirmEmail, ProtectedRo
|
||||
import { Home } from './Home'
|
||||
import { Profile } from './Profile'
|
||||
import { Users } from './Users'
|
||||
import { Column, Row, Image, Text, Icon, Box } from 'ui'
|
||||
import { HeaderButton, Column, Row, Image, Text, Box } from 'ui'
|
||||
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
|
||||
import logoImage from 'images/logo.png'
|
||||
import { versionInfo } from './version'
|
||||
import { sizeInfo } from 'ui/style'
|
||||
|
||||
export class App extends React.Component {
|
||||
render() {
|
||||
const height = sizeInfo.headerHeight - sizeInfo.headerBorderWidth
|
||||
|
||||
return (
|
||||
<Column minHeight='100vh'>
|
||||
<Column.Item>
|
||||
<Box color='#FAFAFA' borderBottom='1px solid #B2B2B2'>
|
||||
<Column.Item height={sizeInfo.headerHeight - sizeInfo.headerBorderWidth}>
|
||||
<Box color='#FAFAFA' borderBottom={`${sizeInfo.headerBorderWidth}px solid #B2B2B2`}>
|
||||
<Row minWidth='100vw'>
|
||||
<Row.Item>
|
||||
<Image source={logoImage} width={50} height={50} margin={5} />
|
||||
<Image source={logoImage}
|
||||
height={height}
|
||||
margin={sizeInfo.headerMargin} />
|
||||
</Row.Item>
|
||||
<Row.Item grow> </Row.Item>
|
||||
<Row.Item>
|
||||
<Icon name='logout' />
|
||||
<HeaderButton icon='profile' size={height} />
|
||||
<HeaderButton icon='logout' size={height} />
|
||||
</Row.Item>
|
||||
</Row>
|
||||
</Box>
|
||||
@@ -43,7 +49,7 @@ export class App extends React.Component {
|
||||
</Column.Item>
|
||||
<Column.Item grow />
|
||||
<Column.Item>
|
||||
<Box color='#FAFAFA' borderTop='1px solid #B2B2B2'>
|
||||
<Box color='#FAFAFA' borderTop={`${sizeInfo.headerBorderWidth}px solid #B2B2B2`}>
|
||||
<Text tone='dimmed' margin={10}>{'v' + versionInfo.version} {versionInfo.copyright}</Text>
|
||||
</Box>
|
||||
</Column.Item>
|
||||
|
||||
Reference in New Issue
Block a user