diff --git a/src/pages/Error.tsx b/src/pages/Error.tsx new file mode 100644 index 0000000..a9bbf61 --- /dev/null +++ b/src/pages/Error.tsx @@ -0,0 +1,63 @@ +import { XButton } from '@/components/common/XButton'; +import styled from '@emotion/styled'; +import { useNavigate } from 'react-router-dom'; + +export const Error = () => { + const link = useNavigate(); + + return ( + + 404 + +
+ 잘못된 접근 경로입니다 + { + link('/'); + }} + > + 메인 화면으로 + +
+
+
+ ); +}; + +const Wrapper = styled.div` + padding-top: 80px; + width: 100%; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; + position: relative; + overflow: hidden; +`; + +const Container = styled.div` + position: absolute; + width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; +`; + +const Center = styled.div` + font-size: 48px; + font-weight: 700; + display: flex; + flex-direction: column; + align-items: center; + gap: 40px; +`; + +const ErrorCode = styled.div` + font-size: 700px; + font-weight: 900; + color: rgba(0, 0, 0, 0.1); +`;