From e8baee6dece04118a13d86c108f66784fa5384d4 Mon Sep 17 00:00:00 2001
From: Martin <901824+martinstark@users.noreply.github.com>
Date: Tue, 30 Apr 2024 10:43:54 +0200
Subject: [PATCH] feat: add page not found
---
src/App.tsx | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/src/App.tsx b/src/App.tsx
index 32f743ad..3c1d0ecf 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -9,9 +9,14 @@ import { GlobalStateContext } from "./global-state/context-provider.tsx";
import { Header } from "./components/header.tsx";
import { ErrorBanner } from "./components/error";
import { useFetchDevices } from "./use-fetch-devices.ts";
-import { FlexContainer } from "./components/generic-components.ts";
+import {
+ DisplayContainer,
+ FlexContainer,
+} from "./components/generic-components.ts";
import { DisplayWarning } from "./components/display-box.tsx";
import { ManageProductions } from "./components/manage-productions/manage-productions.tsx";
+import { DisplayContainerHeader } from "./components/landing-page/display-container-header.tsx";
+import { NavigateToRootButton } from "./components/navigate-to-root-button/navigate-to-root-button.tsx";
const DisplayBoxPositioningContainer = styled(FlexContainer)`
justify-content: center;
@@ -19,6 +24,24 @@ const DisplayBoxPositioningContainer = styled(FlexContainer)`
padding-top: 12rem;
`;
+const ButtonWrapper = styled.div`
+ margin: 0 2rem 2rem;
+ display: inline-block;
+`;
+
+const NotFound = () => {
+ return (
+
+
+
+
+
+ Page not found.
+
+
+ );
+};
+
const App = () => {
const { denied, permission } = useDevicePermissions();
const initializedGlobalState = useInitializeGlobalStateReducer();
@@ -71,6 +94,7 @@ const App = () => {
element={}
errorElement={}
/>
+ } />
)}