diff --git a/src/pages/LoginPage.tsx b/src/pages/LoginPage.tsx
index 17a3f89..44b843e 100644
--- a/src/pages/LoginPage.tsx
+++ b/src/pages/LoginPage.tsx
@@ -1,5 +1,13 @@
import { ExternalLinkIcon } from "lucide-react";
+import { useEffect, useState } from "react";
import { Button } from "@/components/ui/button";
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogHeader,
+ DialogTitle,
+} from "@/components/ui/dialog";
import { useExternalBrowser } from "@/hooks/useExternalBrowser";
import { Analytics } from "@/service/analytics";
import BrowserRedirectPage from "./BrowserRedirectPage";
@@ -8,78 +16,125 @@ const GOOGLE_LOGIN_URL = `${import.meta.env.VITE_API_URL}/oauth2/authorization/g
const AEGIS_HOMEPAGE_URL = "https://dkuaegis.org/";
const GMAIL_GUIDE_URL = "https://sites.google.com/dankook.ac.kr/help";
+// IBK 기업은행 점검 시간 체크 함수
+const isMaintenanceTime = (): boolean => {
+ const now = new Date();
+ const month = now.getMonth() + 1; // 0-based이므로 +1
+ const date = now.getDate();
+ const hours = now.getHours();
+
+ // 3월 1일 0시~12시 (0시부터 11시 59분까지)
+ return month === 3 && date === 1 && hours >= 0 && hours < 12;
+};
+
const LoginPage = () => {
const { isKakaoInApp } = useExternalBrowser();
+ const [showMaintenanceModal, setShowMaintenanceModal] = useState(false);
+ const [isMaintenance, setIsMaintenance] = useState(false);
+
+ useEffect(() => {
+ const maintenance = isMaintenanceTime();
+ setIsMaintenance(maintenance);
+ if (maintenance) {
+ setShowMaintenanceModal(true);
+ }
+ }, []);
if (isKakaoInApp) {
return
- - 단국대학교 구글 계정으로 로그인해주세요 -
+ <> + + +
+ + 단국대학교 구글 계정으로 로그인해주세요 +
+