Skip to content

Commit 375e930

Browse files
committed
Fix issue #13946
Shifted 404.tsx page from chakra ui to shadcn/tailwind css
1 parent eef455a commit 375e930

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/pages/404.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import type { GetStaticProps } from "next"
22
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
3-
import { Box, Flex, Heading, Text } from "@chakra-ui/react"
43

54
import { BasePageProps, Lang } from "@/lib/types"
65

76
import InlineLink from "@/components/Link"
8-
import MainArticle from "@/components/MainArticle"
97
import Translation from "@/components/Translation"
108

119
import { existsNamespace } from "@/lib/utils/existsNamespace"
@@ -35,20 +33,20 @@ export const getStaticProps = (async ({ locale }) => {
3533
}) satisfies GetStaticProps<BasePageProps>
3634

3735
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">
4139
<Translation id="we-couldnt-find-that-page" />
42-
</Heading>
43-
<Text mb={8}>
40+
</h1>
41+
<p className="mb-8">
4442
<Translation id="try-using-search" />{" "}
4543
<InlineLink href="/">
4644
<Translation id="return-home" />
4745
</InlineLink>
4846
.
49-
</Text>
50-
</Box>
51-
</Flex>
47+
</p>
48+
</div>
49+
</div>
5250
)
5351

5452
export default NotFoundPage

0 commit comments

Comments
 (0)