diff options
| author | Stanisław Zagórowski <hasohasacz@gmail.com> | 2023-08-17 13:43:00 +0200 |
|---|---|---|
| committer | Stanisław Zagórowski <hasohasacz@gmail.com> | 2023-08-17 13:43:00 +0200 |
| commit | b7de2208ae48d49b05e13ee848b40308c72a1d77 (patch) | |
| tree | fffdde316e080b9b87374e480c0efe90c9724df3 /src/app.tsx | |
Initial commit
Diffstat (limited to 'src/app.tsx')
| -rw-r--r-- | src/app.tsx | 23 |
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> + </> + ) +} |
