From 6b068ccd9156de8515203d0000c3a2a8ecb9c5fb Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Fri, 12 Jan 2024 23:24:47 +0100 Subject: luax: just reluax --- front/src/app.tsx | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 front/src/app.tsx (limited to 'front/src/app.tsx') diff --git a/front/src/app.tsx b/front/src/app.tsx deleted file mode 100644 index ba081c9..0000000 --- a/front/src/app.tsx +++ /dev/null @@ -1,37 +0,0 @@ -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, CustomHistory } from 'preact-router'; -import Projects from './pages/projects'; -import { HashHistory, createHashHistory } from 'history'; -import { AnimatedBg } from './components/animated_bg'; - -const hashHistoryAdapter = (hashHistory: HashHistory): CustomHistory => { - return { - listen: (callback) => hashHistory.listen(({ location }) => callback(location)), - location: hashHistory.location, - push: hashHistory.push, - replace: hashHistory.replace - }; -}; -export function App() { - const history = hashHistoryAdapter(createHashHistory()); - - return ( - <> - -
-
- - - - - - - -
- - ) -} -- cgit v1.3.1