Refactor navbar and remove legacy API/context

Replaces HomeNav with a new SiteNav and associated CSS module, updating navigation structure and user menu. Removes legacy API client, downloader, user model, and UserContext in favor of a new AuthContext stub for future authentication logic. Also cleans up HeroCarousel and minor CSS fixes.
This commit is contained in:
2025-12-11 02:45:28 +01:00
parent a2bc1e68ee
commit b4e50eda30
15 changed files with 703 additions and 1222 deletions

View File

@@ -3,7 +3,7 @@ import Home from "./pages/home/home";
import HomeLayout from "./layouts/HomeLayout";
import Downloader from "./pages/downloader/Downloader";
import PrivateRoute from "./routes/PrivateRoute";
import { UserContextProvider } from "./context/UserContext";
//import { UserContextProvider } from "./context/UserContext";
// Pages
import PortfolioPage from "./pages/portfolio/PortfolioPage";
@@ -14,7 +14,7 @@ import ScrollToTop from "./components/common/ScrollToTop";
export default function App() {
return (
<Router>
<UserContextProvider>
{/* <UserContextProvider> */}
<ScrollToTop />
<Routes>
{/* Public routes */}
@@ -35,7 +35,7 @@ export default function App() {
</Route>
</Route>
</Routes>
</UserContextProvider>
{/* </UserContextProvider> */}
</Router>
);
}