Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit 349803e

Browse files
authored
πŸ’„ μ—λŸ¬ νŽ˜μ΄μ§€ μΉœμ ˆν•˜κ²Œ μˆ˜μ •ν•˜κΈ° (#391)
1 parent c64d172 commit 349803e

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

β€Žapp/[locale]/error.tsxβ€Ž

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@
22

33
import PageLayout from '@/components/layout/pageLayout/PageLayout';
44

5-
export default function Error({
5+
export default function ErrorPage({
66
error,
77
reset,
88
}: {
99
error: Error & { digest?: string };
1010
reset: () => void;
1111
}) {
1212
return (
13-
<PageLayout titleType="big">
14-
<p className="mb-4">
15-
{error.digest}: {error.message}
16-
</p>
17-
<button className="underline" onClick={() => reset()}>
18-
μƒˆλ‘œκ³ μΉ¨
19-
</button>
13+
<PageLayout titleType="big" hideNavbar={true}>
14+
<div className="flex flex-col items-start justify-center p-4 text-center">
15+
<h2 className="mb-4 text-2xl font-bold">λΆˆνŽΈμ„ λ“œλ € μ£„μ†‘ν•©λ‹ˆλ‹€.</h2>
16+
<p className="mb-6">μ—λŸ¬κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.</p>
17+
<p className="mb-6">μƒˆλ‘œκ³ μΉ¨μ„ μ‹œλ„ν•˜κ±°λ‚˜, λ„€νŠΈμ›Œν¬ 연결을 ν™•μΈν•΄μ£Όμ„Έμš”.</p>
18+
<button type="button" className="underline" onClick={reset}>
19+
μƒˆλ‘œκ³ μΉ¨
20+
</button>
21+
<p className="text-gray-500 mt-4 text-sm">
22+
{process.env.NODE_ENV === 'development' && error.digest && `Error code: ${error.digest}`}
23+
</p>
24+
</div>
2025
</PageLayout>
2126
);
2227
}

0 commit comments

Comments
Β (0)