initial commit
This commit is contained in:
commit
cd234531b9
37 changed files with 5529 additions and 0 deletions
22
frontend/src/App.tsx
Normal file
22
frontend/src/App.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import "./App.css";
|
||||
import Cookbook from "./pages/Cookbook.tsx";
|
||||
import RecipePage from "./pages/RecipePage.tsx";
|
||||
import AddRecipe from "./pages/AddRecipe.tsx";
|
||||
import NavBar from "./components/NavBar.tsx";
|
||||
import { Routes, Route } from "react-router-dom";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<>
|
||||
<NavBar />
|
||||
<main className="main-content">
|
||||
<Routes>
|
||||
<Route path="/" element={<Cookbook />} />
|
||||
<Route path="/recipe/:id" element={<RecipePage />} />
|
||||
<Route path="/add-recipe" element={<AddRecipe />} />
|
||||
</Routes>
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
export default App;
|
Loading…
Add table
Add a link
Reference in a new issue