aboutsummaryrefslogtreecommitdiff
path: root/src/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/App.tsx b/src/App.tsx
new file mode 100644
index 0000000..c6e88bd
--- /dev/null
+++ b/src/App.tsx
@@ -0,0 +1,31 @@
+import { Routes, Route } from 'react-router-dom';
+import Navbar from './components/Navbar';
+import GearPage from './pages/Gear';
+import HomePage from './pages/Home';
+import ProjectsPage from './pages/Projects';
+import HomelabPage from './pages/Homelab';
+import Footer from './components/Footer';
+import PrintingPage from './pages/Printing';
+import NotFoundPage from './pages/404Page';
+
+function App() {
+
+ return (
+ <>
+ <Navbar />
+ <section className="max-w-xl mx-auto py-5 px-4">
+ <Routes>
+ <Route path="/" element={<HomePage />} />
+ <Route path="/gear" element={<GearPage />} />
+ <Route path='/projects' element={<ProjectsPage />} />
+ <Route path='/homelab' element={<HomelabPage />} />
+ <Route path='/printing' element={<PrintingPage />} />
+ <Route path='*' element={<NotFoundPage />} />
+ </Routes>
+ </section>
+ <Footer />
+ </>
+ );
+}
+
+export default App