Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR : notfound Page #53

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
design(nofound) : notfound페이지
chhw130 committed Dec 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit daf9f540e07ef9aa5a94c839afa8c733695709c1
9 changes: 4 additions & 5 deletions component/card/ChattingRoom.tsx
Original file line number Diff line number Diff line change
@@ -36,8 +36,8 @@ const ChattingRoom = ({
<>
<Flex
w={"100%"}
bgColor={"#F4F4F4"}
h={"100%"}
bgColor={"#F4F4F4"}
borderRadius={"12px 12px 0 0"}
flexDir={"column"}
>
@@ -68,11 +68,10 @@ const ChattingRoom = ({
<VStack
w={"100%"}
alignItems={"flex-start"}
h={"520px"}
h={"62vh"}
spacing={"16px"}
marginTop={"10px"}
marginBottom={"30px"}
paddingBottom={"50px"}
marginTop={"1vh"}
paddingBottom={"15%"}
overflow={"hidden"}
overflowY={"scroll"}
css={{
50 changes: 50 additions & 0 deletions component/icon/NotFoundIcon.tsx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions component/icon/SaladIcon.tsx
Original file line number Diff line number Diff line change
@@ -74,8 +74,8 @@ const SaladIcon = () => {
<path
d="M14.9844 16.7344C15.7809 17.0865 17.4808 17.649 19.6599 17.649C21.8401 17.649 22.4375 15.8558 25.6021 15.9953C28.1334 16.1078 30.1021 17.3903 30.4531 17.9303"
stroke="url(#paint12_radial_388_5001)"
stroke-width="0.666667"
stroke-linecap="round"
strokeWidth="0.666667"
strokeLinecap="round"
/>
</g>
<g filter="url(#filter5_f_388_5001)">
62 changes: 61 additions & 1 deletion src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,67 @@
"use client";
import { Button, ButtonGroup, Text, VStack } from "@chakra-ui/react";
import React from "react";
import NotFoundIcon from "../../component/icon/NotFoundIcon";
import { useRouter } from "next/navigation";

const NotFound = () => {
return <div>NotfoundPAge</div>;
const router = useRouter();
return (
<>
<VStack
as={"main"}
flexDir={"column"}
w={"100%"}
pos={"relative"}
maxW={"390px"}
height={"100vh"}
padding={"60px 22px"}
margin={"0 auto"}
justifyContent={"center"}
alignItems={"center"}
bgColor={"#2B2C2C"}
>
<VStack spacing={"20px"}>
<NotFoundIcon />
<Text
color={"#A6A6A6"}
textAlign={"center"}
fontSize={"24px"}
fontWeight={"semibold"}
>
찾을 수 없는 페이지에요
<br />
다시 들어와볼까요?
</Text>
</VStack>
<ButtonGroup
pos={"absolute"}
bottom={"10vh"}
padding={"0 22px"}
gap={"5px"}
>
<Button
w={"166px"}
h={"52px"}
bgColor={"#474747"}
color={"white"}
onClick={() => router.push("/")}
>
메인으로
</Button>
<Button
w={"166px"}
h={"52px"}
bgColor={"#40E98E"}
color={"#2B2C2C"}
onClick={() => router.back()}
>
뒤로가기
</Button>
</ButtonGroup>
</VStack>
</>
);
};

export default NotFound;