guesstimate/client/src/components/header/index.tsx

32 lines
1.2 KiB
TypeScript
Raw Normal View History

2020-07-09 13:00:42 +02:00
import React, { FunctionComponent } from "react";
2020-04-22 22:07:52 +02:00
import style from "./style.module.css";
2020-04-20 11:14:46 +02:00
2020-04-21 14:10:50 +02:00
export interface HeaderProps {
class?: string
}
2020-07-09 13:00:42 +02:00
const Header: FunctionComponent<HeaderProps> = ({ ...props}) => {
2020-04-20 11:14:46 +02:00
return (
2020-07-09 13:00:42 +02:00
<div className={`container ${style.header} ${props.class ? props.class : ''}`}>
<div className="columns">
<div className="column">
<nav className="navbar" role="navigation" aria-label="main navigation">
<div className="navbar-brand">
<a className="navbar-item" href="/">
<h1 className="title is-size-4"> Guesstimate</h1>
2020-04-20 11:14:46 +02:00
</a>
2020-07-09 13:00:42 +02:00
<a role="button" className="navbar-burger" aria-label="menu" aria-expanded="false">
2020-04-20 11:14:46 +02:00
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
</nav>
</div>
</div>
</div>
);
};
export default Header;