aboutsummaryrefslogtreecommitdiff
path: root/src/app.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.tsx')
-rw-r--r--src/app.tsx23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/app.tsx b/src/app.tsx
new file mode 100644
index 0000000..771b84a
--- /dev/null
+++ b/src/app.tsx
@@ -0,0 +1,23 @@
+import './app.css'
+import { Navbar } from './components/navbar'
+import Contact from './pages/contact';
+import Games from './pages/games';
+import Home from './pages/home'
+import { Router, Route } from 'preact-router';
+import Projects from './pages/projects';
+
+export function App() {
+ return (
+ <>
+ <Navbar />
+ <div id="app-main">
+ <Router>
+ <Route path="/" component={Home} />
+ <Route path="/contact" component={Contact} />
+ <Route path="/games" component={Games} />
+ <Route path="/projects" component={Projects} />
+ </Router>
+ </div>
+ </>
+ )
+}