diff --git a/public/icon.svg b/public/icon.svg new file mode 100644 index 0000000..d9b4d36 --- /dev/null +++ b/public/icon.svg @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 825896c..8971b6d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -16,10 +16,10 @@ export const metadata: Metadata = { title: "Tia - Baby Tracking", description: "Your baby tracking companion", manifest: "/manifest.json", - icons: [ - { url: "/icon-192.png", sizes: "192x192", type: "image/png" }, - { url: "/icon-512.png", sizes: "512x512", type: "image/png" }, - ], + icons: { + icon: "/icon.svg", + apple: "/icon.svg", + }, }; export default function RootLayout({ diff --git a/src/app/menu/page.tsx b/src/app/menu/page.tsx new file mode 100644 index 0000000..1dbac2f --- /dev/null +++ b/src/app/menu/page.tsx @@ -0,0 +1,82 @@ +"use client"; + +import { useState, useEffect } from "react"; +import Link from "next/link"; +import { useRouter } from "next/navigation"; + +export default function MenuPage() { + const router = useRouter(); + const [darkMode, setDarkMode] = useState(false); + + useEffect(() => { + const saved = localStorage.getItem("tia_theme"); + if (saved === "dark") { + setDarkMode(true); + } + }, []); + + const toggleDarkMode = () => { + const next = !darkMode; + setDarkMode(next); + localStorage.setItem("tia_theme", next ? "dark" : "light"); + if (next) { + document.documentElement.classList.add("dark"); + } else { + document.documentElement.classList.remove("dark"); + } + }; + + const menuItems = [ + { icon: "🏠", label: "Home", href: "/" }, + { icon: "📊", label: "Activity", href: "/activity" }, + { icon: "📈", label: "Growth", href: "/growth" }, + { icon: "💊", label: "Medical", href: "/medical" }, + { icon: "📸", label: "Memories", href: "/memories" }, + { icon: "🤖", label: "AI Chat", href: "/ai" }, + ]; + + return ( +