diff --git a/src/components/ErrorPage.tsx b/src/components/ErrorPage.tsx new file mode 100644 index 00000000..2bfc4e43 --- /dev/null +++ b/src/components/ErrorPage.tsx @@ -0,0 +1,84 @@ +import React from 'react'; +import Image from 'next/image'; +import { css } from '@/styled-system/css'; + +function ErrorPage() { + const targetDate = '2024-05-16T03:00:00.000Z'; + + const now = new Date().getTime(); + const target = new Date(targetDate).getTime(); + + // 이후가 되면 null 리턴 + if (now > target) return null; + + return ( +
+
+
+ {'crying-face'} +
+
+
서버 점검 안내
+

+ 서버 이전 작업으로 인해, 점검중입니다. +
+ 양해 부탁드립니다. +
+
+ 점검 예정 시간 : ~ 2024년 5월 16일 3시 +

+
+
+
+ ); +} + +export default ErrorPage; + +const containerCss = css({ + position: 'fixed', + top: 0, + left: 0, + right: 0, + bottom: 0, + zIndex: 99999, + background: '#18181D', + maxWidth: '475px', + margin: 'auto', + height: '100%', + overflow: 'hidden', +}); + +const MainWrapperCss = css({ + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + justifyContent: 'center', + + width: '100%', + height: '100vh', + padding: '118px 16px 50px 16px', +}); + +const imageWrapperCss = css({ + marginBottom: '18px', +}); + +const titleWrapperCss = css({ + display: 'flex', + gap: '6px', + flexDirection: 'column', + alignItems: 'center', + marginBottom: '60px', +}); + +const titleCss = css({ + textStyle: 'subtitle2', + color: 'text.primary', +}); + +const subTitleCss = css({ + textStyle: 'body5', + color: 'gray.gray600', + textAlign: 'center', +}); diff --git a/src/pages/_app.page.tsx b/src/pages/_app.page.tsx index dd2ce6e2..a2934d3b 100644 --- a/src/pages/_app.page.tsx +++ b/src/pages/_app.page.tsx @@ -1,5 +1,6 @@ import { Suspense } from 'react'; import type { AppProps } from 'next/app'; +import ErrorPage from '@/components/ErrorPage'; import MonitoringInitializer from '@/components/MonitoringInitializer'; import NotificationSnackBarProvider from '@/components/NotificationSnackBar/NotificationSnackBarProvider'; import SnackBarProvider from '@/components/SnackBar/SnackBarProvider'; @@ -24,6 +25,7 @@ export default function App({ Component, pageProps }: AppProps) {
+