Skip to content

Commit 525a97f

Browse files
authored
Merge pull request #14560 from HiberNuts/404.tsx
Fix issue #13946 Migrated 404.tsx page to shadcn/tailwind
2 parents 5821b37 + 0461501 commit 525a97f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/pages/404.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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

@@ -35,20 +34,20 @@ export const getStaticProps = (async ({ locale }) => {
3534
}) satisfies GetStaticProps<BasePageProps>
3635

3736
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}>
37+
<div className="mx-auto mb-0 mt-16 flex w-full flex-col items-center">
38+
<MainArticle className="my-8 w-full space-y-8 px-8 py-4">
39+
<h1>
4140
<Translation id="we-couldnt-find-that-page" />
42-
</Heading>
43-
<Text mb={8}>
41+
</h1>
42+
<p>
4443
<Translation id="try-using-search" />{" "}
4544
<InlineLink href="/">
4645
<Translation id="return-home" />
4746
</InlineLink>
4847
.
49-
</Text>
50-
</Box>
51-
</Flex>
48+
</p>
49+
</MainArticle>
50+
</div>
5251
)
5352

5453
export default NotFoundPage

0 commit comments

Comments
 (0)