File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
import type { GetStaticProps } from "next"
2
2
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
3
- import { Box , Flex , Heading , Text } from "@chakra-ui/react"
4
3
5
4
import { BasePageProps , Lang } from "@/lib/types"
6
5
7
6
import InlineLink from "@/components/Link"
8
- import MainArticle from "@/components/MainArticle"
9
7
import Translation from "@/components/Translation"
10
8
11
9
import { existsNamespace } from "@/lib/utils/existsNamespace"
@@ -35,20 +33,20 @@ export const getStaticProps = (async ({ locale }) => {
35
33
} ) satisfies GetStaticProps < BasePageProps >
36
34
37
35
const NotFoundPage = ( ) => (
38
- < Flex flexDir = "column" align = "center" w = "full" mt = { 16 } mb = { 0 } mx = "auto ">
39
- < Box as = { MainArticle } py = { 4 } px = { 8 } w = "full ">
40
- < Heading as = "h1" size = "2xl" my = { 8 } >
36
+ < div className = "mx-auto mb-0 mt-16 flex w-full flex-col items-center ">
37
+ < div className = "w-full px-8 py-4 ">
38
+ < h1 className = "my-8 text-4xl font-bold" >
41
39
< Translation id = "we-couldnt-find-that-page" />
42
- </ Heading >
43
- < Text mb = { 8 } >
40
+ </ h1 >
41
+ < p className = "mb-8" >
44
42
< Translation id = "try-using-search" /> { " " }
45
43
< InlineLink href = "/" >
46
44
< Translation id = "return-home" />
47
45
</ InlineLink >
48
46
.
49
- </ Text >
50
- </ Box >
51
- </ Flex >
47
+ </ p >
48
+ </ div >
49
+ </ div >
52
50
)
53
51
54
52
export default NotFoundPage
You can’t perform that action at this time.
0 commit comments