This commit is contained in:
2023-06-21 13:27:52 +01:00
commit 9ca496b1f9
36 changed files with 10610 additions and 0 deletions

25
src/pages/layout.tsx Normal file
View File

@ -0,0 +1,25 @@
import { Icon } from "element/icon";
import "./layout.css";
import { Outlet, useNavigate } from "react-router-dom";
export function LayoutPage() {
const navigate = useNavigate();
return <>
<header>
<div onClick={() => navigate("/")}>
S
</div>
<div>
<input type="text" placeholder="Search" />
<Icon name="search" size={15} />
</div>
<div>
<button type="button" className="btn btn-border">
Login
<Icon name="login" />
</button>
</div>
</header>
<Outlet />
</>
}