diff --git a/src/App.css b/src/App.css deleted file mode 100644 index 8a49fa1..0000000 --- a/src/App.css +++ /dev/null @@ -1,10 +0,0 @@ -#root { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - -@theme { - -} diff --git a/src/App.tsx b/src/App.tsx index 798648b..8dc0a71 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,3 @@ -import "@/App.css"; import { BrowserRouter, Route, Routes } from "react-router"; import NavBar from "./components/nav/NavBar"; import AdminPage from "./pages/protected/AdminPage"; @@ -77,18 +76,26 @@ const protectedRoutes: { path: string; element: React.ReactElement; }[] = [ export default function App(){ return ( -
- - {/* Nav Bar */} - + + {/* Nav Bar */} + - {/* Routing */} - - {/* Public Routes */} + {/* Routing */} + + {/* Public Routes */} + { + publicRoutes.map((route) => ( + + )) + } + {/* Protected Routes */} + }> { - publicRoutes.map((route) => ( + protectedRoutes.map((route) => ( )) } - {/* Protected Routes */} - }> - { - protectedRoutes.map((route) => ( - - )) - } - - - -
+ + + ); } diff --git a/src/components/nav/NavBar.tsx b/src/components/nav/NavBar.tsx index 7c67572..20f5da2 100644 --- a/src/components/nav/NavBar.tsx +++ b/src/components/nav/NavBar.tsx @@ -11,12 +11,12 @@ export default function NavBar(){ return (