forked from mehtaAnsh/BlockChainVoting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeader.js
30 lines (29 loc) · 800 Bytes
/
Header.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React from 'react';
import { Menu } from 'semantic-ui-react';
import Cookies from 'js-cookie';
export default props => {
return (
<div className="header">
<style jsx>{`
.header {
z-index: 10;
}
`}</style>
<Menu secondary style={{ maxHeight: '50px' }}>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css" />
<Menu.Item
name="BlockVotes"
style={{ verticalAlign: 'middle', fontSize: '40px', paddingLeft: '42%', paddingTop: '4%' }}
/>
<Menu.Menu position="right">
<Menu.Item icon="user" />
<Menu.Item style={{ paddingRight: '10px' }}>
{Cookies.get('company_email') || Cookies.get('voter_email')}
</Menu.Item>
</Menu.Menu>
</Menu>
<hr />
{props.children}
</div>
);
};