Initial commit

This commit is contained in:
2026-09-22 16:27:53 +02:00
commit 9b29dc8253
70 changed files with 14726 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
import { Link, Outlet } from 'react-router-dom';
import { useAuth } from '../auth/AuthContext';
export function Layout() {
const { user, logout } = useAuth();
return (
<div className="app-shell">
<header className="topbar">
<Link to="/campaigns" className="topbar-brand">
<span className="die" aria-hidden>
⚄
</span>
The Sunken Reach
</Link>
<nav className="topbar-nav">
{user && (
<div className="topbar-user">
<span>{user.displayName}</span>
<button className="btn btn-ghost" onClick={logout}>
Log out
</button>
</div>
)}
</nav>
</header>
<main className="page">
<Outlet />
</main>
</div>
);
}