init project
This commit is contained in:
19
src/components/Layout.jsx
Normal file
19
src/components/Layout.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import "./Layout.css"
|
||||
|
||||
export const Layout = ({ children }) => {
|
||||
return (
|
||||
<div className="layout">
|
||||
<header className="header">
|
||||
<h1 className="header__logo">Сервис</h1>
|
||||
<nav className="header__menu">
|
||||
<a href="/">Список заказов</a>
|
||||
<a href="/add">Добавить заказ</a>
|
||||
<a href="/logout">Выйти</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main className="main-content">
|
||||
{children()}
|
||||
</main>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user