Skip to content

Commit a5a9f6e

Browse files
committed
feat: adding custom 404 page
1 parent 28082da commit a5a9f6e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

app/not-found.tsx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
"use client";
2+
import { Box, Flex, Center, Image, Text, Button } from "@chakra-ui/react";
3+
import { motion } from "framer-motion";
4+
5+
export default function NotFound() {
6+
return (
7+
<>
8+
<Center w={"full"} position={"absolute"} mt={"1em"}>
9+
<Flex justifyContent={"center"} alignItems={"center"}>
10+
<Image src={"/assets/LogoMaxima.png"} boxSize={["3em", "4em"]} alt={"MAXIMA Logo"} />
11+
</Flex>
12+
</Center>
13+
<Center w={"full"} h={"100vh"} position={"absolute"} top={"0"} bottom={"0"} left={"0"} right={"0"} justifyContent={"center"} alignItems={"center"}>
14+
<Box>
15+
<Center>
16+
<Text align={"center"} fontWeight={"bold"} fontSize={"9xl"}>
17+
404
18+
</Text>
19+
</Center>
20+
<Center w={"full"}>
21+
<Text w={"75%"} align={"center"} fontWeight={"normal"} fontSize={["sm", "lg"]} color={"#6B6773"}>
22+
Halaman yang kamu cari mungkin sudah dihapus, dipindahkan, atau bahkan tidak pernah ada, seperti dirimu dibenaknya 😢
23+
</Text>
24+
</Center>
25+
<Center w={"full"} mt={["1em", "0em"]}>
26+
<Button as={motion.a} href={"/"} whileHover={{ scale: 1.1 }} whileTap={{ scale: 0.9 }} mt={"1em"} colorScheme={"blue"} variant={"outline"}>
27+
Kembali ke Beranda
28+
</Button>
29+
</Center>
30+
</Box>
31+
</Center>
32+
</>
33+
);
34+
}

0 commit comments

Comments
 (0)