From 11effd63ef451e03fd1eace50df0bdff55296ebe Mon Sep 17 00:00:00 2001 From: Kwon DaeGeun Date: Sun, 1 Mar 2026 11:59:04 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20ibk=20=EC=9D=80=ED=96=89=20?= =?UTF-8?q?=EC=A0=90=EA=B2=80=20=EC=9D=B4=ED=9B=84=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=A1=A4=EB=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/LoginPage.tsx | 169 ++++++++++++++-------------------------- 1 file changed, 57 insertions(+), 112 deletions(-) diff --git a/src/pages/LoginPage.tsx b/src/pages/LoginPage.tsx index 44b843e..17a3f89 100644 --- a/src/pages/LoginPage.tsx +++ b/src/pages/LoginPage.tsx @@ -1,13 +1,5 @@ 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"; @@ -16,125 +8,78 @@ 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 ; } return ( - <> - - - - 시스템 점검 안내 - - IBK 기업은행 시스템 점검으로 인해 -
- 3월 1일 0시 ~ 12시 - 까지 -
- 회원 가입이 불가능합니다. -
-
- 점검 종료 후 이용해주시기 바랍니다. -
-
-
-
- -
-
-
- Aegis Logo -

- Aegis 회원 가입 -

-

- 단국대학교 구글 계정으로 로그인해주세요 -

-
- {!isMaintenance && ( - - )} - +
+
+
+ Aegis Logo +

+ Aegis 회원 가입 +

+

+ 단국대학교 구글 계정으로 로그인해주세요 +

-
+ +
+ +
+ - +
); }; From 80ef6548784fa73a9ec983956aac25b2aa731d15 Mon Sep 17 00:00:00 2001 From: Kwon DaeGeun Date: Sun, 1 Mar 2026 12:12:38 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=EB=A7=9E=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8A=94=20=EC=95=A1=EC=85=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/LoginPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/LoginPage.tsx b/src/pages/LoginPage.tsx index 17a3f89..c17da6a 100644 --- a/src/pages/LoginPage.tsx +++ b/src/pages/LoginPage.tsx @@ -47,7 +47,7 @@ const LoginPage = () => { onClick={() => { Analytics.safeTrack("Go_Homepage_Click", { category: "Auth", - method: "Email", + method: "Homepage", }); }} className="w-full"