init project

This commit is contained in:
Konstantin Osipov
2025-02-22 22:37:46 +03:00
commit 26f8fb5ada
16 changed files with 3158 additions and 0 deletions

19
src/components/Layout.jsx Normal file
View 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>
)
}