From 9f86c3ab4b7ff07a67a289b3686124ba2cbf5185 Mon Sep 17 00:00:00 2001 From: martylukyy <35452459+martylukyy@users.noreply.github.com> Date: Sun, 16 Apr 2023 20:25:10 +0200 Subject: [PATCH] feat(web): add not found page (#845) implement not found page when logged in --- web/src/components/alerts/NotFound.tsx | 50 ++++++++++++++++++++++++++ web/src/domain/routes.tsx | 2 ++ 2 files changed, 52 insertions(+) create mode 100644 web/src/components/alerts/NotFound.tsx diff --git a/web/src/components/alerts/NotFound.tsx b/web/src/components/alerts/NotFound.tsx new file mode 100644 index 0000000..d7b8629 --- /dev/null +++ b/web/src/components/alerts/NotFound.tsx @@ -0,0 +1,50 @@ +import { Link } from "react-router-dom"; +import logo from "@/logo.png"; + +export const NotFound = () => { + return ( +
+
Logo
+

+ Oops, looks like there was a little too much brr! +

+

+ In case you think this a bug rather than too much brr, +

+

+ feel free to report this to our + {" "} + + GitHub page + + {" or to "} + + our official Discord channel + + . +

+

+ Otherwise, let us help you to get you back on track for more brr! +

+
+ + + +
+
+ ); +}; diff --git a/web/src/domain/routes.tsx b/web/src/domain/routes.tsx index 370b632..f6c7663 100644 --- a/web/src/domain/routes.tsx +++ b/web/src/domain/routes.tsx @@ -20,6 +20,7 @@ import { ReleaseSettings } from "../screens/settings/index"; import { RegexPlayground } from "../screens/settings/RegexPlayground"; +import { NotFound } from "@/components/alerts/NotFound"; import { baseUrl } from "../utils"; @@ -27,6 +28,7 @@ export const LocalRouter = ({ isLoggedIn }: { isLoggedIn: boolean }) => ( {isLoggedIn ? ( + } /> }> } /> } />