diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index db3e831..bfad0c8 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -3,6 +3,7 @@ import { AuthProvider } from "./context/AuthContext"; import { BrowserRouter as Router, Routes, Route, useLocation, Navigate } from "react-router-dom"; import Navbar from "./components/Navbar"; import Chatbot from "./components/Chatbot"; +import Footer from "./components/Footer"; // Pages import Landing from "./pages/Landing"; @@ -25,6 +26,12 @@ import ForumFeed from "./pages/ForumFeed"; import ForumPostDetail from "./pages/ForumPostDetail.jsx"; import ForumPostCreateEdit from "./pages/ForumPostCreateEdit"; +// Info pages +import About from "./pages/About"; +import Contact from "./pages/Contact"; +import Terms from "./pages/Terms"; +import Privacy from "./pages/Privacy"; + // Placeholder pages function Placeholder({ title }) { return

{title} (Coming Soon)

; @@ -51,10 +58,10 @@ export default function App() { } /> } /> } /> - } /> - } /> - } /> - } /> + } /> + } /> + } /> + } /> } /> } /> } /> @@ -85,6 +92,7 @@ export default function App() { } /> } /> + @@ -96,6 +104,13 @@ function NavbarVisibility() { return ; } +// Show Footer on all pages except login/register +function FooterVisibility() { + const { pathname } = useLocation(); + if (pathname === "/login" || pathname === "/register") return null; + return