Use Vite build tool

This commit is contained in:
Anders Roos 2022-11-15 00:06:15 +01:00
parent 57b4862a5b
commit 5645cd23fe
40 changed files with 3513 additions and 2715 deletions

View file

@ -0,0 +1,21 @@
import logo from "../assets/logo.png"
interface HeaderProps {
onLogOut: () => void;
}
const Header = (props: HeaderProps) => (
<nav className="navbar shadow-sm fixed-top navbar-dark bg-secondary px-5">
<img src={logo} className="img-fluid" alt="Watchtower logo" height="30" width="30" />
<a className="navbar-brand mx-0" href="/">
<span>Watchtower</span>
</a>
<div className="d-flex">
<button type="button" className="btn-close btn-close-white" title="Log out" aria-label="Close" onClick={props.onLogOut}></button>
</div>
</nav>
);
export default Header;