2 Commits

Author SHA1 Message Date
913aace27f Added Layout and Header component 2025-08-18 16:08:18 +02:00
430f407104 Added docs 2025-08-18 16:08:05 +02:00
4 changed files with 43 additions and 0 deletions

View File

0
Docs/README.md Normal file
View File

View File

@@ -0,0 +1,11 @@
import React from "react";
const Header: React.FC = () => {
return (
<header>
<h1>Header</h1>
</header>
);
};
export default Header;

View File

@@ -0,0 +1,32 @@
import React from "react";
import Header from "../components/Header";
import "../App.css";
import { ToastContainer } from "react-toastify";
type LayoutProps = {
children: React.ReactNode;
};
const Layout: React.FC<LayoutProps> = ({ children }) => {
return (
<>
<Header />
<main>{children}</main>
<footer></footer>
<ToastContainer
position="top-right"
autoClose={5000}
hideProgressBar={false}
newestOnTop
closeOnClick
rtl={false}
pauseOnFocusLoss={false}
draggable
pauseOnHover
theme="light"
/>
</>
);
};
export default Layout;