diff --git a/apps/frontend/src/App.tsx b/apps/frontend/src/App.tsx index cbd279e..b369bc4 100644 --- a/apps/frontend/src/App.tsx +++ b/apps/frontend/src/App.tsx @@ -1,7 +1,8 @@ import { OverviewPage } from "./pages/Overview"; import { MatchPage } from "./pages/MatchDetails"; import { SettingsPage } from "./pages/Settings"; -import { type ParentProps, onMount, onCleanup, createSignal } from "solid-js"; +import { BottomNav } from "./components/BottomNav"; +import { type ParentProps, onMount, onCleanup, createSignal, Show } from "solid-js"; function Layout(props: ParentProps) { return ( @@ -68,15 +69,18 @@ function App() { return (
- - - - - - - - - +
+ + + + + + + + + +
+
); } diff --git a/apps/frontend/src/components/BottomNav.tsx b/apps/frontend/src/components/BottomNav.tsx new file mode 100644 index 0000000..ff360e5 --- /dev/null +++ b/apps/frontend/src/components/BottomNav.tsx @@ -0,0 +1,76 @@ +interface BottomNavProps { + currentPath: () => string; +} + +function HomeIcon() { + return ( + + + + + ); +} + +function GearIcon() { + return ( + + + + + ); +} + +export function BottomNav(props: BottomNavProps) { + const path = () => props.currentPath(); + + const isHome = () => path() === "/"; + const isSettings = () => + path().startsWith("/einstellungen") || path().startsWith("/settings"); + + return ( + + ); +} diff --git a/apps/frontend/src/pages/Overview.tsx b/apps/frontend/src/pages/Overview.tsx index 86c5c25..9123357 100644 --- a/apps/frontend/src/pages/Overview.tsx +++ b/apps/frontend/src/pages/Overview.tsx @@ -215,28 +215,6 @@ export function OverviewPage() { month: "long", })} - - -