|
1 | | -import { useForceDarkTheme } from "@/components/theme-provider"; |
2 | | -import { Box, Flex } from "@chakra-ui/react"; |
3 | | -import { ChakraNextImage } from "components/Image"; |
4 | | -import { Aurora } from "components/homepage/Aurora"; |
5 | | -import { HomepageSection } from "components/product-pages/homepage/HomepageSection"; |
6 | 1 | import { PageId } from "page-id"; |
7 | | -import { Heading, Text, TrackedLink } from "tw-components"; |
8 | 2 | import type { ThirdwebNextPage } from "utils/types"; |
9 | | -import NotFound from "../../public/assets/landingpage/not-found.png"; |
| 3 | +import { NotFoundPage } from "../components/not-found-page"; |
10 | 4 |
|
11 | 5 | const PageNotFound: ThirdwebNextPage = () => { |
12 | | - useForceDarkTheme(); |
13 | | - return ( |
14 | | - <Flex |
15 | | - sx={{ |
16 | | - // overwrite the theme colors because the home page is *always* in "dark mode" |
17 | | - "--chakra-colors-heading": "#F2F2F7", |
18 | | - "--chakra-colors-paragraph": "#AEAEB2", |
19 | | - "--chakra-colors-borderColor": "rgba(255,255,255,0.1)", |
20 | | - }} |
21 | | - justify="center" |
22 | | - flexDir="column" |
23 | | - as="main" |
24 | | - bg="#000" |
25 | | - justifyContent="center" |
26 | | - alignItems="center" |
27 | | - h="100vh" |
28 | | - overflow="hidden" |
29 | | - > |
30 | | - <HomepageSection> |
31 | | - <Aurora |
32 | | - pos={{ left: "50%", top: "50%" }} |
33 | | - size={{ width: "2400px", height: "2400px" }} |
34 | | - color="hsl(289deg 78% 30% / 35%)" |
35 | | - /> |
36 | | - |
37 | | - <div className="mb-6 flex items-center justify-center"> |
38 | | - <div className="relative mb-6 flex items-center justify-center p-2"> |
39 | | - <Box |
40 | | - position="absolute" |
41 | | - bgGradient="linear(to-r, #F213A4, #040BBF)" |
42 | | - top={0} |
43 | | - left={0} |
44 | | - bottom={0} |
45 | | - right={0} |
46 | | - borderRadius="3xl" |
47 | | - overflow="visible" |
48 | | - filter="blur(15px)" |
49 | | - /> |
50 | | - |
51 | | - <ChakraNextImage |
52 | | - alt="" |
53 | | - boxSize={{ base: 24, md: 32 }} |
54 | | - placeholder="empty" |
55 | | - src={NotFound} |
56 | | - /> |
57 | | - </div> |
58 | | - </div> |
59 | | - <Heading textAlign="center" size="display.md"> |
60 | | - Uh oh. |
61 | | - <br /> |
62 | | - Looks like web3 |
63 | | - <br /> |
64 | | - can't be found here. |
65 | | - </Heading> |
66 | | - <Text size="body.2xl" textAlign="center" mt={3}> |
67 | | - Try our{" "} |
68 | | - <TrackedLink |
69 | | - category="page-not-found" |
70 | | - label="homepage" |
71 | | - href="/" |
72 | | - color="blue.500" |
73 | | - > |
74 | | - homepage |
75 | | - </TrackedLink> |
76 | | - ,{" "} |
77 | | - <TrackedLink |
78 | | - category="page-not-found" |
79 | | - label="homepage" |
80 | | - href="/team" |
81 | | - color="blue.500" |
82 | | - > |
83 | | - dashboard |
84 | | - </TrackedLink>{" "} |
85 | | - or{" "} |
86 | | - <TrackedLink |
87 | | - category="page-not-found" |
88 | | - label="portal" |
89 | | - href="https://portal.thirdweb.com" |
90 | | - color="blue.500" |
91 | | - > |
92 | | - developer portal |
93 | | - </TrackedLink>{" "} |
94 | | - instead. |
95 | | - </Text> |
96 | | - </HomepageSection> |
97 | | - </Flex> |
98 | | - ); |
| 6 | + return <NotFoundPage />; |
99 | 7 | }; |
100 | 8 |
|
101 | 9 | PageNotFound.pageId = PageId.PageNotFound; |
|
0 commit comments