Skip to content

Commit 0f82695

Browse files
committed
Revert "github pages grr cloudflare pages better"
This reverts commit 39b7da1.
1 parent 39b7da1 commit 0f82695

4 files changed

Lines changed: 2 additions & 78 deletions

File tree

404.html

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { Outlet } from "react-router-dom";
2+
import SetColor from "./components/SetColor";
23
import SwitcherLink from "./components/SwitcherLink";
34

45
export default function Layout() {
56
return (
67
<body className="antialiased flex flex-col min-h-screen align-middle">
78
<div className="flex flex-col min-h-dvh">
9+
<SetColor />
810
<header className="backdrop-blur-3xl border-b sticky top-0 min-w-full z-100">
911
<nav className="flex gap-10 h-10 justify-center">
1012
<SwitcherLink to="" name="Home"></SwitcherLink>

src/main.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
import { StrictMode } from "react";
22
import { createRoot } from "react-dom/client";
33
import { createBrowserRouter, RouterProvider } from "react-router-dom";
4-
import SetColor from "./components/SetColor";
54
import "./index.css";
65
import Layout from "./layout";
76
import Home from "./pages";
87
import About from "./pages/about";
98
import ActualAbout from "./pages/aboutActual";
10-
import ErrorPage from "./pages/error";
119
import Games from "./pages/games";
1210

1311
const routes = [
1412
{
1513
path: "/",
1614
element: <Layout />,
17-
errorElement: <ErrorPage />,
1815
children: [
1916
{
2017
index: true,
@@ -41,7 +38,6 @@ const router = createBrowserRouter(routes, {
4138

4239
createRoot(document.getElementById("root")!).render(
4340
<StrictMode>
44-
<SetColor />
4541
<RouterProvider router={router} />
4642
</StrictMode>,
4743
);

src/pages/error.tsx

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)