gengitkan/client/src/components/Navbar.tsx

36 lines
1.2 KiB
TypeScript
Raw Normal View History

2019-12-01 22:12:13 +01:00
import React from 'react';
2019-12-13 14:21:20 +01:00
import logo from '../resources/logo.svg';
2019-12-01 22:12:13 +01:00
2019-12-05 22:37:09 +01:00
export class Navbar extends React.PureComponent {
2019-12-01 22:12:13 +01:00
render() {
return (
2019-12-05 22:37:09 +01:00
<nav className="navbar" role="navigation" aria-label="main navigation">
2019-12-01 22:12:13 +01:00
<div className="container is-fluid">
<div className="navbar-brand">
<a className="navbar-item" href="#/">
2019-12-13 14:21:20 +01:00
<img src={logo} style={{marginRight:'5px',width:'28px',height:'28px'}} />
2019-12-05 16:15:33 +01:00
<h1 className="is-size-4">GenGitKan</h1>
2019-12-01 22:12:13 +01:00
</a>
<a role="button" className="navbar-burger" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div className="navbar-menu">
<div className="navbar-end">
<div className="navbar-item">
<a className="button is-small" href="#/logout">
<span className="icon">
<i className="fas fa-sign-out-alt"></i>
</span>
<span>Se déconnecter</span>
</a>
</div>
</div>
</div>
</div>
</nav>
);
}
}