mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-18 08:00:14 +01:00
Use Vite build tool
This commit is contained in:
parent
57b4862a5b
commit
5645cd23fe
40 changed files with 3513 additions and 2715 deletions
21
web/src/components/Header.tsx
Normal file
21
web/src/components/Header.tsx
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue