(FEAT): Created the other pages, empty for now.

This commit is contained in:
Hayden Hargreaves 2025-10-29 21:27:47 -07:00
parent 8655df8f6b
commit 426c8534f0
8 changed files with 46 additions and 6 deletions

View File

@ -4,6 +4,10 @@ import WebLayout from "./layouts/WebLayout";
import NotFound from './pages/NotFound'; import NotFound from './pages/NotFound';
import ROUTE_CONSTANTS from './types/routes'; 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() { function App() {
return ( return (
@ -13,6 +17,11 @@ function App() {
<Route path="/v2/web" element={<WebLayout />}> <Route path="/v2/web" element={<WebLayout />}>
<Route index element={<Navigate to={ROUTE_CONSTANTS.Home} replace />} /> <Route index element={<Navigate to={ROUTE_CONSTANTS.Home} replace />} />
<Route path="home" element={<Home />} /> <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 path="recipe/:id" element={<Home />} /> */}
</Route> </Route>

View File

@ -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" 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> ></path>
</svg> </svg>
<svg <svg
className={`${displayHamburgerMenu ? "hidden" : "flex"} size-5`} className={`${displayHamburgerMenu ? "hidden" : "flex"} size-5`}
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"> xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
<path <path

View File

@ -6,8 +6,12 @@ export default function WebLayout() {
return ( return (
<> <>
<Navigation /> <div className="bg-gray-100 min-h-[100vh]">
<Outlet /> <Navigation />
<div className="pt-0 md:pt-14">
<Outlet />
</div>
</div>
</> </>
); );

8
web/src/pages/Create.tsx Normal file
View File

@ -0,0 +1,8 @@
export default function Create() {
return (
<>
<p>Create</p>
</>
);
}

View File

@ -0,0 +1,7 @@
export default function Favorites() {
return (
<>
<p>Favorites</p>
</>
);
}

View File

@ -1,9 +1,7 @@
export default function Home() { export default function Home() {
return ( return (
<> <>
<p className="text-red-500">Hello world </p> <p>Home</p>
</> </>
); );
} }

View File

@ -0,0 +1,7 @@
export default function Profile() {
return (
<>
<p>Profile</p>
</>
);
}

View File

@ -0,0 +1,7 @@
export default function ShoppingList() {
return (
<>
<p>ShoppingList</p>
</>
);
}