diff --git a/ApiCore-Frontend/src/app/(app)/bottom-nav.tsx b/ApiCore-Frontend/src/app/(app)/bottom-nav.tsx new file mode 100644 index 0000000..56483ce --- /dev/null +++ b/ApiCore-Frontend/src/app/(app)/bottom-nav.tsx @@ -0,0 +1,39 @@ +"use client"; + +import Link from "next/link"; +import { usePathname } from "next/navigation"; +import { LayoutDashboard, Layers, ListTodo, Search } from "lucide-react"; +import { cn } from "@/lib/utils"; + +const ITEMS = [ + { label: "Start", href: "/dashboard", icon: LayoutDashboard }, + { label: "Völker", href: "/colonies", icon: Layers }, + { label: "Aufgaben", href: "/tasks", icon: ListTodo }, + { label: "Suche", href: "/search", icon: Search }, +]; + +export function BottomNav() { + const pathname = usePathname(); + + return ( + + ); +} diff --git a/ApiCore-Frontend/src/app/(app)/layout.tsx b/ApiCore-Frontend/src/app/(app)/layout.tsx index 1afd84c..f96422a 100644 --- a/ApiCore-Frontend/src/app/(app)/layout.tsx +++ b/ApiCore-Frontend/src/app/(app)/layout.tsx @@ -5,6 +5,8 @@ import Link from "next/link"; import { useRouter } from "next/navigation"; import { useAuth } from "@/lib/auth/auth-context"; import { Button } from "@/components/ui/button"; +import { BottomNav } from "./bottom-nav"; +import { QuickAddMenu } from "./quick-add-menu"; export default function AppLayout({ children }: { children: ReactNode }) { const router = useRouter(); @@ -22,9 +24,10 @@ export default function AppLayout({ children }: { children: ReactNode }) { return (