2020-03-19 10:52:13 +00:00
|
|
|
import React from "react";
|
|
|
|
import { Dropdown, Icon, Grid, Divider} from 'semantic-ui-react'
|
2020-03-13 13:43:31 +00:00
|
|
|
import { Segment, Image } from 'semantic-ui-react'
|
|
|
|
|
2020-03-21 15:06:18 +00:00
|
|
|
const AvatarImage = () => (
|
|
|
|
<Image
|
|
|
|
src='avatar3.png'
|
|
|
|
style={{width: '25px', height: 'auto'}}
|
|
|
|
centered
|
2020-03-13 13:43:31 +00:00
|
|
|
/>
|
|
|
|
)
|
|
|
|
|
2020-03-21 15:06:18 +00:00
|
|
|
const IconHomeImage = () => (
|
2020-03-13 13:43:31 +00:00
|
|
|
<Image
|
|
|
|
src='smart-home.png'
|
2020-03-21 15:06:18 +00:00
|
|
|
style={{width: '50px', height: 'auto'}}
|
2020-03-13 13:43:31 +00:00
|
|
|
centered
|
|
|
|
as='a'
|
|
|
|
href='/'
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
|
2020-03-21 15:06:18 +00:00
|
|
|
const TitleImage = () => (
|
|
|
|
<Image src='title7.png' size='medium' centered/>
|
2020-03-13 13:43:31 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-18 11:46:28 +00:00
|
|
|
const GridExampleInverted = (props) => (
|
2020-03-21 15:06:18 +00:00
|
|
|
<Grid columns='equal' divided inverted padded>
|
|
|
|
<Grid.Row color='black' textAlign='center' >
|
|
|
|
<Grid.Column width={3} height={0.5}>
|
2020-03-13 13:43:31 +00:00
|
|
|
<Segment color='black' inverted>
|
2020-03-21 15:06:18 +00:00
|
|
|
<IconHomeImage />
|
2020-03-13 13:43:31 +00:00
|
|
|
</Segment>
|
|
|
|
</Grid.Column>
|
|
|
|
<Grid.Column>
|
|
|
|
<Segment color='black' inverted>
|
2020-03-21 15:06:18 +00:00
|
|
|
<TitleImage />
|
2020-03-13 13:43:31 +00:00
|
|
|
</Segment>
|
|
|
|
</Grid.Column>
|
2020-03-21 15:06:18 +00:00
|
|
|
<Grid.Column width={2} heigth={1}>
|
|
|
|
<AvatarImage />
|
2020-03-13 13:43:31 +00:00
|
|
|
<Divider />
|
|
|
|
<Dropdown item icon='setting' size='huge'>
|
|
|
|
<Dropdown.Menu>
|
|
|
|
<Dropdown.Item>
|
|
|
|
<Icon name='dropdown' />
|
|
|
|
<span className='text'>Settings</span>
|
|
|
|
<Dropdown.Menu>
|
|
|
|
<Dropdown.Item>Document</Dropdown.Item>
|
|
|
|
<Dropdown.Item>Image</Dropdown.Item>
|
|
|
|
</Dropdown.Menu>
|
|
|
|
</Dropdown.Item>
|
|
|
|
<Dropdown.Item>See profile...</Dropdown.Item>
|
|
|
|
<Dropdown.Divider />
|
2020-03-18 11:46:28 +00:00
|
|
|
<Dropdown.Item onClick={props.logout }>Logout</Dropdown.Item>
|
2020-03-13 13:43:31 +00:00
|
|
|
</Dropdown.Menu>
|
|
|
|
</Dropdown>
|
|
|
|
</Grid.Column>
|
|
|
|
</Grid.Row>
|
|
|
|
</Grid>
|
|
|
|
)
|
|
|
|
|
|
|
|
export default class MyHeader extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
2020-03-18 11:46:28 +00:00
|
|
|
<GridExampleInverted logout={this.props.logout} />
|
2020-03-13 13:43:31 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const navbar = {
|
|
|
|
// backgroundColor: "#20222b",
|
|
|
|
// color: "white",
|
|
|
|
// marginBottom: "4.6rem",
|
|
|
|
// padding: "3.2rem 0"
|
|
|
|
// };
|
|
|
|
// const navbar__buttons = {
|
|
|
|
// borderBottom: "1px solid lighten($light-blue, 10%)",
|
|
|
|
// display: "flex",
|
|
|
|
// justifyContent: "space-between",
|
|
|
|
// padding: "3.2rem 1.6rem"
|
|
|
|
// }
|
|
|
|
// const button = {
|
|
|
|
// background: "#8357c5",
|
|
|
|
// border: "none",
|
|
|
|
// borderBottom: "1px solid purple",
|
|
|
|
// color: "white",
|
|
|
|
// fontWeight: "500",
|
|
|
|
// padding: "1.2rem"
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const MenuExampleButtons = () => (
|
|
|
|
// <Menu>
|
|
|
|
// <Menu.Item>
|
|
|
|
// <Button primary>Sign up</Button>
|
|
|
|
// </Menu.Item>
|
|
|
|
|
|
|
|
// <Menu.Item>
|
|
|
|
// <Button>Log-in</Button>
|
|
|
|
// </Menu.Item>
|
|
|
|
// <Menu.Item>
|
|
|
|
// <Button>Log-in</Button>
|
|
|
|
// </Menu.Item>
|
|
|
|
// <Menu.Item>
|
|
|
|
// <Button>Log-in</Button>
|
|
|
|
// </Menu.Item>
|
|
|
|
// </Menu>
|
|
|
|
// )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// class MenuExampleInvertedSegment extends Component {
|
|
|
|
// state = { activeItem: 'home' }
|
|
|
|
|
|
|
|
// handleItemClick = (e, { name }) => this.setState({ activeItem: name })
|
|
|
|
|
|
|
|
// render() {
|
|
|
|
// const { activeItem } = this.state
|
|
|
|
|
|
|
|
// return (
|
|
|
|
// <Segment inverted>
|
|
|
|
// <Menu inverted secondary>
|
|
|
|
// <Menu.Item
|
|
|
|
// name='home'
|
|
|
|
// active={activeItem === 'home'}
|
|
|
|
// onClick={this.handleItemClick}
|
|
|
|
// />
|
|
|
|
// <Menu.Item
|
|
|
|
// name='messages'
|
|
|
|
// active={activeItem === 'messages'}
|
|
|
|
// onClick={this.handleItemClick}
|
|
|
|
// />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <HeaderExampleIconProp />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <Menu.Item />
|
|
|
|
// <Menu.Item
|
|
|
|
// name='messages'
|
|
|
|
// active={activeItem === 'messages'}
|
|
|
|
// onClick={this.handleItemClick}
|
|
|
|
// />
|
|
|
|
// <Dropdown item icon='wrench' simple>
|
|
|
|
// <Dropdown.Menu>
|
|
|
|
// <Dropdown.Item>
|
|
|
|
// <Icon name='dropdown' />
|
|
|
|
// <span className='text'>New</span>
|
|
|
|
|
|
|
|
// <Dropdown.Menu>
|
|
|
|
// <Dropdown.Item>Document</Dropdown.Item>
|
|
|
|
// <Dropdown.Item>Image</Dropdown.Item>
|
|
|
|
// </Dropdown.Menu>
|
|
|
|
// </Dropdown.Item>
|
|
|
|
// <Dropdown.Item>Open</Dropdown.Item>
|
|
|
|
// <Dropdown.Item>Save...</Dropdown.Item>
|
|
|
|
// <Dropdown.Item>Edit Permissions</Dropdown.Item>
|
|
|
|
// <Dropdown.Divider />
|
|
|
|
// <Dropdown.Header>Export</Dropdown.Header>
|
|
|
|
// <Dropdown.Item>Share</Dropdown.Item>
|
|
|
|
// </Dropdown.Menu>
|
|
|
|
// </Dropdown>
|
|
|
|
// <ImageExampleWrapped />
|
|
|
|
// <Menu.Item />
|
|
|
|
// </Menu>
|
|
|
|
// </Segment>
|
|
|
|
// )
|
|
|
|
// }
|
|
|
|
// }
|