diff --git a/app/myinfo/page.tsx b/app/myinfo/page.tsx new file mode 100644 index 0000000..14a571d --- /dev/null +++ b/app/myinfo/page.tsx @@ -0,0 +1,237 @@ +"use client"; + +import { useEffect, useState } from 'react'; +import { useRouter } from 'next/navigation'; +import LoginPage from '../login/page'; + +const imgImage2 = "http://localhost:3845/assets/89fda8e949171025b1232bae70fc9d442e4e70c8.png"; +const imgLine2 = "http://localhost:3845/assets/6ee8cf4ebb6bc2adb14aab8c9940b3002c20af35.svg"; + +export default function MyLecturePage() { + const router = useRouter(); + const [isLoggedIn, setIsLoggedIn] = useState(false); + const [isLoading, setIsLoading] = useState(true); + + useEffect(() => { + // 로그인 상태 확인 + const loginStatus = localStorage.getItem('isLoggedIn') === 'true'; + setIsLoggedIn(loginStatus); + setIsLoading(false); + }, []); + + if (isLoading) { + return null; // 로딩 중 + } + + // 로그인되지 않았으면 로그인 페이지 표시 + if (!isLoggedIn) { + return ; + } + + return ( +
+ {/* 헤더 */} +
+
+ {/* 로고 */} +
+
+ +
+
+ {/* 메뉴 */} +
+
+
+

+ 교육 과정 목록 +

+
+
+
+
+

+ 학습 자료실 +

+
+
+
+
+

+ 공지사항 +

+
+
+
+
+ {/* 사용자 메뉴 */} +
+
+

+ 내 강좌실 +

+
+ +
+
+ + {/* 구분선 */} +
+
+ +
+
+ + {/* 사이드바 */} +
+
+ + + + +
+
+ + {/* 메인 콘텐츠 - 내 정보 수정 */} +
+
+
+

내 정보 수정

+
+
+
+ {/* 아이디 */} +
+
+

+ 아이디 +

+
+
+

+ qwer1234@naver.com +

+
+
+
+
+ {/* 비밀번호 변경 */} +
+
+

+ 비밀번호 변경 +

+
+ +
+
+
+ {/* 회원 탈퇴 */} +
+
+

+ 회원 탈퇴 +

+
+ +
+
+
+
+
+ + {/* 푸터 */} +
+
+ {/* 로고 */} +
+
+ +
+
+ {/* 푸터 정보 */} +
+
+
+

+ 이용 약관 +

+
+
+

+ 개인정보처리방침 +

+
+
+

+ 고객센터 +

+
+
+
+

+ (12345) 서울특별시 광진구 구의동 123-12(구의타워1) +

+

+ 문의: 1234-1234 (평일 09:00 ~ 18:00) +

+

+ 이메일: qwer1234@go.or.kr +

+
+
+
+
+
+ ); +} + diff --git a/app/mylecture/page.tsx b/app/mylecture/page.tsx deleted file mode 100644 index e69de29..0000000 diff --git a/app/page.tsx b/app/page.tsx index 1ca812d..50ea634 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -104,7 +104,10 @@ export default function HomePage() { {/* 사용자 메뉴 */}
-