diff --git a/src/App.tsx b/src/App.tsx index 341b996..b14ee39 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,9 +1,10 @@ -import { Routes, Route, Link } from 'react-router-dom' +import { Routes, Route } from 'react-router-dom' import MainPage from './pages/index'; import PrivacyPage from './pages/privacy'; import MusicWidget from './pages/music'; import LinksPage from './pages/links'; +import NotFound from './pages/NotFound'; import './assets/main.css' @@ -12,43 +13,9 @@ export default function App() { } /> } /> - 404 Not Found} /> + } /> + } /> + } /> ) -} - -// import ReactDOM from 'react-dom/client' -// import { -// createBrowserRouter, -// RouterProvider -// } from "react-router-dom" -// import './assets/main.css' - -// // pages -// import MainPage from './pages/index'; -// import PrivacyPage from './pages/privacy'; -// import MusicWidget from './pages/music'; -// import LinksPage from './pages/links'; - -// // const router = createBrowserRouter([ -// // { -// // path: '/', -// // element: -// // }, -// // { -// // path: '/privacy', -// // element: -// // }, -// // { -// // path: '/music', -// // element: -// // }, -// // { -// // path: '/links', -// // element: -// // } -// // ]) - -// // ReactDOM.createRoot(document.getElementById('root')!).render( -// // -// // ) +} \ No newline at end of file diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx new file mode 100644 index 0000000..3931630 --- /dev/null +++ b/src/pages/NotFound.tsx @@ -0,0 +1,14 @@ +import Layout from "../components/Layout"; +export default function NotFound() { + return ( + + + + well that sucks + that page doesn't exist. skill issue + history.back()}>go back? + + + + ) +} \ No newline at end of file
that page doesn't exist. skill issue