diff --git a/website/src/pages/404.tsx b/website/src/pages/404.tsx
index 0af430b0..cd43916d 100644
--- a/website/src/pages/404.tsx
+++ b/website/src/pages/404.tsx
@@ -1,4 +1,4 @@
-import { Box, Button, Center, Link, Text } from "@chakra-ui/react";
+import { Box, Button, Center, Link, Text, useColorMode } from "@chakra-ui/react";
import { AlertTriangle } from "lucide-react";
import Head from "next/head";
import { EmptyState } from "src/components/EmptyState";
@@ -6,19 +6,21 @@ import { getTransparentHeaderLayout } from "src/components/Layout";
export { getDefaultStaticProps as getStaticProps } from "src/lib/default_static_props";
function Error() {
+ const { colorMode } = useColorMode();
+ const titleColor = colorMode === "light" ? "blue.500" : "blue.300";
return (
<>
404 - Open Assistant
-
+
If you were trying to contribute data but ended up here, please file a bug.
}
+ leftIcon={}
variant="solid"
size="xs"
>
diff --git a/website/src/pages/500.tsx b/website/src/pages/500.tsx
index cb326168..1ca7d11e 100644
--- a/website/src/pages/500.tsx
+++ b/website/src/pages/500.tsx
@@ -1,4 +1,4 @@
-import { Box, Button, Center, Link, Text } from "@chakra-ui/react";
+import { Box, Button, Center, Link, Text, useColorMode } from "@chakra-ui/react";
import { AlertTriangle } from "lucide-react";
import Head from "next/head";
import { EmptyState } from "src/components/EmptyState";
@@ -6,19 +6,22 @@ import { getTransparentHeaderLayout } from "src/components/Layout";
export { getDefaultStaticProps as getStaticProps } from "src/lib/default_static_props";
function ServerError() {
+ const { colorMode } = useColorMode();
+ const backgroundColor = colorMode === "light" ? "white" : "gray.700";
+ const titleColor = colorMode === "light" ? "blue.500" : "blue.300";
return (
<>
500 - Open Assistant
-
+
If you were trying to contribute data but ended up here, please file a bug.
}
+ leftIcon={}
variant="solid"
size="xs"
>