(FEAT): Created the other pages, empty for now.
This commit is contained in:
parent
8655df8f6b
commit
426c8534f0
@ -4,6 +4,10 @@ import WebLayout from "./layouts/WebLayout";
|
||||
import NotFound from './pages/NotFound';
|
||||
|
||||
import ROUTE_CONSTANTS from './types/routes';
|
||||
import Create from './pages/Create';
|
||||
import Favorites from './pages/Favorites';
|
||||
import Profile from './pages/Profile';
|
||||
import ShoppingList from './pages/ShoppingList';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
@ -13,6 +17,11 @@ function App() {
|
||||
<Route path="/v2/web" element={<WebLayout />}>
|
||||
<Route index element={<Navigate to={ROUTE_CONSTANTS.Home} replace />} />
|
||||
<Route path="home" element={<Home />} />
|
||||
<Route path="favorites" element={<Favorites />} />
|
||||
<Route path="create" element={<Create />} />
|
||||
<Route path="profile" element={<Profile />} />
|
||||
<Route path="list" element={<ShoppingList />} />
|
||||
|
||||
{/* <Route path="recipe/:id" element={<Home />} /> */}
|
||||
|
||||
</Route>
|
||||
|
||||
@ -38,7 +38,7 @@ export default function Navigation() {
|
||||
d="M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"
|
||||
></path>
|
||||
</svg>
|
||||
<svg
|
||||
<svg
|
||||
className={`${displayHamburgerMenu ? "hidden" : "flex"} size-5`}
|
||||
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
||||
<path
|
||||
|
||||
@ -6,8 +6,12 @@ export default function WebLayout() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Navigation />
|
||||
<Outlet />
|
||||
<div className="bg-gray-100 min-h-[100vh]">
|
||||
<Navigation />
|
||||
<div className="pt-0 md:pt-14">
|
||||
<Outlet />
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
|
||||
);
|
||||
|
||||
8
web/src/pages/Create.tsx
Normal file
8
web/src/pages/Create.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
export default function Create() {
|
||||
return (
|
||||
<>
|
||||
<p>Create</p>
|
||||
</>
|
||||
);
|
||||
}
|
||||
7
web/src/pages/Favorites.tsx
Normal file
7
web/src/pages/Favorites.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
export default function Favorites() {
|
||||
return (
|
||||
<>
|
||||
<p>Favorites</p>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@ -1,9 +1,7 @@
|
||||
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<p className="text-red-500">Hello world </p>
|
||||
<p>Home</p>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
7
web/src/pages/Profile.tsx
Normal file
7
web/src/pages/Profile.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
export default function Profile() {
|
||||
return (
|
||||
<>
|
||||
<p>Profile</p>
|
||||
</>
|
||||
);
|
||||
}
|
||||
7
web/src/pages/ShoppingList.tsx
Normal file
7
web/src/pages/ShoppingList.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
export default function ShoppingList() {
|
||||
return (
|
||||
<>
|
||||
<p>ShoppingList</p>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user