From 38b02c186f8fb3364152b29a4a63c7414ba4b450 Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Mon, 11 Aug 2025 12:33:59 +0200 Subject: [PATCH] created react structure --- frontend/src/App.tsx | 11 +++++++---- frontend/src/components/Header.tsx | 11 +++++++++++ frontend/src/layout/Layout.tsx | 18 ++++++++++++++++++ 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 frontend/src/components/Header.tsx create mode 100644 frontend/src/layout/Layout.tsx diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 1653cd7..1316a02 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,11 +1,14 @@ -import './App.css' +import "./App.css"; +import Layout from "./layout/Layout"; function App() { return ( <> - + +

Hello World

+
- ) + ); } -export default App +export default App; diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx new file mode 100644 index 0000000..20f4c90 --- /dev/null +++ b/frontend/src/components/Header.tsx @@ -0,0 +1,11 @@ +import React from "react"; + +const Header: React.FC = () => { + return ( +
+

Header

+
+ ); +}; + +export default Header; diff --git a/frontend/src/layout/Layout.tsx b/frontend/src/layout/Layout.tsx new file mode 100644 index 0000000..7467f20 --- /dev/null +++ b/frontend/src/layout/Layout.tsx @@ -0,0 +1,18 @@ +import React from "react"; +import Header from "../components/Header"; + +type LayoutProps = { + children: React.ReactNode; +}; + +const Layout: React.FC = ({ children }) => { + return ( + <> +
+
{children}
+ + + ); +}; + +export default Layout;