I am trying to add a marketing website and a product dashboard on the same domain.
- Marketing Website ("/", "/demo", "/technology", "/contact-us")
- It should show Navbar + Footer (no Sidebar).
- It should be Accessible to everyone (logged in or not).
- Login Page ("/login")
- Acts as the bridge between marketing and dashboard.
- No Navbar, Footer, or Sidebar.
- Dashboard Interface (with its internal routes)
- Only accessible to logged-in users.
- Shows Sidebar (no Navbar or Footer).
- Different sidebar nav-links based on Admin or Client role.
Earlier I had just a Homepage ("/") , Login Page("/login"), and Dashboard (+ all its internal routes).
Earlier Code was:
App.js: https://codefile.io/f/tr2Gy4tjEJ
Sidebar.js: https://codefile.io/f/f7WhG8ix0s