Skip to content

Commit

Permalink
#100 style: error page
Browse files Browse the repository at this point in the history
  • Loading branch information
hwanheejung committed Aug 26, 2024
1 parent c620177 commit 828b3bb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
16 changes: 16 additions & 0 deletions public/icons/error.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions src/app/(board)/board/[boardId]/_components/ShareBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ const ShareBtn = () => {
<Modal.BottomModal icon={<TwoPolaroidsIcon className="scale-[2]" />}>
<Modal.Close />
<Modal.Title>보드를 친구에게 공유해보세요!</Modal.Title>

<div className="mt-[21px] h-px w-full bg-gray-200" />

<Section title="링크 공유">
<Section.Item
icon={<CopyIcon className="-rotate-45" />}
Expand Down
13 changes: 12 additions & 1 deletion src/app/error.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
'use client'

import Button from '@/components/Button'
import { useRouter } from 'next/navigation'
import ErrorIcon from 'public/icons/error.svg'

const ErrorPage = () => {
const router = useRouter()
return (
<div className="flex h-dvh flex-col items-center justify-center">
<h1>오류가 발생했어요.</h1>
<ErrorIcon />
<h1 className="mb-3 text-xl font-semiBold">오류가 발생했어요.</h1>
<p className="text-xs">사용에 불편을 드려 죄송합니다.</p>
<p className="pb-8 text-xs">
(이 화면을 덜 보시도록 폴라보팀은 매일 노력하고있어요..!)
</p>
<Button onClick={() => router.replace('/')}>홈으로 돌아가기</Button>
</div>
)
}
Expand Down

0 comments on commit 828b3bb

Please sign in to comment.