- {/* Blur layer */}
-
-
- {/* Back button */}
- {/* skipcq: JS-0394 */}
-
- ← Return to Kenneth's Honors Portfolio
-
-
- {/* 3D graphics element */}
-
-
- {/* Artifact content */}
-
-
- {/* Text */}
-
{artifact.text}
-
-
- {/* Images */}
- {artifact.images &&
}
-
- {/* Embedded items */}
- {artifact.embeds && (
-
- )}
-
- );
-}
diff --git a/src/routes/ErrorPage.tsx b/src/routes/ErrorPage.tsx
deleted file mode 100644
index d03b570..0000000
--- a/src/routes/ErrorPage.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import { ReactElement } from "react";
-import { useRouteError } from "react-router-dom";
-
-interface RouteError {
- statusText?: string;
- message?: string;
-}
-
-/**
- * Error / 404 page, displays error information
- * @param props {fromArtifact: boolean} Whether the error page is being displayed from an artifact page
- * @constructor
- * @returns {ReactElement}
- */
-export default function ErrorPage(props: {
- fromArtifact: boolean;
-}): ReactElement {
- const error = useRouteError() as RouteError;
-
- return (
-
-
Oops!
- {props.fromArtifact ? (
-
It appears this artifact doesn't exist!
- ) : (
-
Sorry, an unexpected error has occurred.
- )}
-
-
Error message for Kenneth to go figure out:
-
{error.statusText || error.message}
-
- );
-}
diff --git a/src/routes/Root.tsx b/src/routes/Root.tsx
deleted file mode 100644
index b1a5a13..0000000
--- a/src/routes/Root.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import { ArtifactData } from "../scripts/interfaces";
-import ComingSoon from "../components/ComingSoon";
-import { ReactElement } from "react";
-import Year from "../components/Year";
-import { useLoaderData } from "react-router-dom";
-
-/**
- * Website root, displays all artifacts and navigation
- * @constructor
- * @returns {ReactElement}
- */
-export default function Root(): ReactElement {
- // Get loader data
- const artifacts = useLoaderData() as ArtifactData[];
-
- // Compute year set (get unique years)
- const years: Set