From f8d0c68f8484161b7691c8defc43696d64458040 Mon Sep 17 00:00:00 2001 From: RaymondVerhoef Date: Sun, 10 May 2026 11:00:39 +0200 Subject: [PATCH] feat: initialize main application routing and responsive navigation layout with authentication guards --- src/App.jsx | 55 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 806a950..5b00847 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,15 +1,16 @@ import React from 'react' import { Routes, Route, Navigate, Link } from 'react-router-dom' +import { BookOpen, CheckSquare, LayoutDashboard, Trophy, Settings, LogOut } from 'lucide-react' import { useApp } from './store/AppContext' import Login from './pages/Login' import Dashboard from './pages/Dashboard' // Placeholder components for routing structure -const Admin = () =>

Admin

Kennisbeheer and Source Upload.

-const Testen = () =>

Weektest

Start your weekly test here.

-const Leren = () =>

Leren

Start your weekly learning session.

-const Leaderboard = () =>

Leaderboard

See who is on top!

+const Admin = () =>

Admin

Kennisbeheer and Source Upload.

+const Testen = () =>

Weektest

Start your weekly test here.

+const Leren = () =>

Leren

Start your weekly learning session.

+const Leaderboard = () =>

Leaderboard

See who is on top!

// Protected Route Wrapper const ProtectedRoute = ({ children, requireAdmin }) => { @@ -26,31 +27,51 @@ const ProtectedRoute = ({ children, requireAdmin }) => { } return ( -
- {/* Navigation Bar */} +
+ {/* Top Navigation Bar */} + + {/* Mobile Bottom Navigation */} + +
{children}