instructor page

This commit is contained in:
2025-11-28 21:54:39 +09:00
parent 5e4337c7e8
commit 32e9fed5cd
3 changed files with 758 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ const NAV_ITEMS = [
];
const INSTRUCTOR_NAV_ITEMS = [
{ label: "강좌 현황", href: "/admin/courses" },
{ label: "강좌 현황", href: "/instructor/courses" },
{ label: "학습 자료실", href: "/admin/resources" },
{ label: "공지사항", href: "/admin/notices" },
];
@@ -28,7 +28,7 @@ export default function NavBar() {
const userButtonRef = useRef<HTMLButtonElement | null>(null);
const hideCenterNav = /^\/[^/]+\/review$/.test(pathname);
const isAdminPage = pathname.startsWith('/admin');
const isInstructorPage = pathname === '/instructor';
const isInstructorPage = pathname.startsWith('/instructor');
// 사용자 정보 가져오기 및 비활성화 계정 체크
useEffect(() => {
@@ -162,6 +162,12 @@ export default function NavBar() {
</Link>
);
})}
<Link
href="/admin"
className={["px-4 py-2 text-[16px] font-semibold text-white"].join(" ")}
>
</Link>
</nav>
)}
{!hideCenterNav && !isAdminPage && !isInstructorPage && (