Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@types/react-lottie": "^1.2.10",
"@types/socket.io-client": "^3.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.3.0",
"react-lottie": "^1.2.7",
"react-router-dom": "^6.27.0",
"socket.io-client": "^4.8.1",
"zustand": "^5.0.1"
Expand Down
1 change: 1 addition & 0 deletions frontend/public/assets/snowman.json

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions frontend/src/pages/ErrorPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import Lottie from "react-lottie";
import snowmanAnimate from "../../public/assets/snowman.json";
import { useNavigate } from "react-router-dom";

const ErrorPage = () => {
const navigate = useNavigate();
return (
<section
className={
"w-full text-center py-20 h-screen flex items-center justify-center"
}
>
<div className={"relative "}>
<div
className={
"flex text-green-100 w-[1024px] relative -mt-32 mx-auto aspect-video -z-10"
}
aria-label={"눈사람"}
>
<span
className={
"text-9xl [text-shadow:_0_2px_2px_rgb(0_0_0_/_40%)] absolute left-80 top-1/2 font-bold"
}
>
4
</span>
<Lottie
options={{
animationData: snowmanAnimate,
loop: true,
autoplay: true,
}}
ariaRole={undefined}
isClickToPauseDisabled={true}
/>
<span
className={
"text-9xl [text-shadow:_0_2px_2px_rgb(0_0_0_/_40%)] absolute right-80 top-1/2 font-bold"
}
>
4
</span>
</div>
<div
className={
"absolute bottom-16 left-1/2 transform -translate-x-1/2 z-20 pointer-events-nones"
}
>
<p className={"font-light text-xl"}>
이런! 요청하신 데이터를 찾을 수 없었어요!
</p>
<button
className={
" bg-green-500 hover:bg-green-600 text-white p-2 rounded-lg mt-4 "
}
onClick={() => navigate("/sessions")}
>
메인 페이지로 이동하기
</button>
</div>
</div>
</section>
);
};

export default ErrorPage;
3 changes: 2 additions & 1 deletion frontend/src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import App from "./App.tsx";
import CreateSessionPage from "./pages/CreateSessionPage.tsx";
import SessionListPage from "./pages/SessionListPage.tsx";
import SessionPage from "./pages/SessionPage";
import ErrorPage from "@/pages/ErrorPage.tsx";

export const routes = [
{
Expand All @@ -25,7 +26,7 @@ export const routes = [
path: "/sessions/create",
},
{
element: <>에러 페이지</>,
element: <ErrorPage />,
path: "/*",
},
];
63 changes: 63 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.