feat: Ajout de React pour le front, début de refonte du front

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-02-12 16:12:01 +01:00
parent 73774f84ff
commit 666636e5bf
35 changed files with 2863 additions and 164 deletions

View File

@@ -0,0 +1,26 @@
import React, { useState } from 'react';
import { Header } from '../Header';
import { Sidebar } from '../Sidebar';
export function Layout({ children, onMangaClick, onAddMangaClick }) {
const [isSidebarOpen, setIsSidebarOpen] = useState(false);
return (
<div className="min-h-screen bg-gray-50">
<Header
onMenuClick={() => setIsSidebarOpen(!isSidebarOpen)}
onMangaClick={onMangaClick}
onAddMangaClick={onAddMangaClick}
/>
<Sidebar
isOpen={isSidebarOpen}
onClose={() => setIsSidebarOpen(false)}
onAddMangaClick={onAddMangaClick}
/>
<main className="pt-16 md:ml-60">
{children}
</main>
</div>
);
}