Init
This commit is contained in:
25
src/pages/layout.tsx
Normal file
25
src/pages/layout.tsx
Normal 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 />
|
||||
</>
|
||||
}
|
Reference in New Issue
Block a user