diff --git a/apps/dashboard/src/app/not-found.tsx b/apps/dashboard/src/app/not-found.tsx new file mode 100644 index 00000000000..31dafe0b578 --- /dev/null +++ b/apps/dashboard/src/app/not-found.tsx @@ -0,0 +1,5 @@ +import { NotFoundPage } from "../components/not-found-page"; + +export default function NotFound() { + return ; +} diff --git a/apps/dashboard/src/components/not-found-page.tsx b/apps/dashboard/src/components/not-found-page.tsx new file mode 100644 index 00000000000..04274b92d84 --- /dev/null +++ b/apps/dashboard/src/components/not-found-page.tsx @@ -0,0 +1,86 @@ +import { TrackedLinkTW } from "@/components/ui/tracked-link"; + +export function NotFoundPage() { + return ( +
+
+
+
+ 404 +
+ +
+ +

+ Uh oh. + Looks like web3 + can't be found here. +

+ +
+ +
+

+ Try our{" "} + + homepage + + ,{" "} + + dashboard + {" "} + or{" "} + + developer portal + {" "} + instead +

+
+ + +
+
+
+ ); +} + +type AuroraProps = { + size: { width: string; height: string }; + pos: { top: string; left: string }; + color: string; +}; + +const Aurora: React.FC = ({ color, pos, size }) => { + return ( +
+ ); +}; diff --git a/apps/dashboard/src/pages/404.tsx b/apps/dashboard/src/pages/404.tsx index 1798495d465..bbd6f5e05e9 100644 --- a/apps/dashboard/src/pages/404.tsx +++ b/apps/dashboard/src/pages/404.tsx @@ -1,101 +1,9 @@ -import { useForceDarkTheme } from "@/components/theme-provider"; -import { Box, Flex } from "@chakra-ui/react"; -import { ChakraNextImage } from "components/Image"; -import { Aurora } from "components/homepage/Aurora"; -import { HomepageSection } from "components/product-pages/homepage/HomepageSection"; import { PageId } from "page-id"; -import { Heading, Text, TrackedLink } from "tw-components"; import type { ThirdwebNextPage } from "utils/types"; -import NotFound from "../../public/assets/landingpage/not-found.png"; +import { NotFoundPage } from "../components/not-found-page"; const PageNotFound: ThirdwebNextPage = () => { - useForceDarkTheme(); - return ( - - - - -
-
- - - -
-
- - Uh oh. -
- Looks like web3 -
- can't be found here. -
- - Try our{" "} - - homepage - - ,{" "} - - dashboard - {" "} - or{" "} - - developer portal - {" "} - instead. - -
-
- ); + return ; }; PageNotFound.pageId = PageId.PageNotFound;