This commit is contained in:
mota
2025-11-18 09:09:09 +09:00
parent 4f7b98dffb
commit 4dc8304a1d
22 changed files with 1497 additions and 107 deletions

View File

@@ -7,7 +7,7 @@ import MainLogoSvg from "./svgs/mainlogosvg";
import ChevronDownSvg from "./svgs/chevrondownsvg";
const NAV_ITEMS = [
{ label: "교육 과정 목록", href: "/menu" },
{ label: "교육 과정 목록", href: "/course-list" },
{ label: "학습 자료실", href: "/resources" },
{ label: "공지사항", href: "/notices" },
];
@@ -52,14 +52,12 @@ export default function NavBar() {
</Link>
<nav className="flex h-full items-center">
{NAV_ITEMS.map((item) => {
const isActive = pathname === item.href;
return (
<Link
key={item.href}
href={item.href}
className={[
"px-4 py-2 text-[16px] font-semibold",
isActive ? "text-white" : "text-white/80 hover:text-white",
"px-4 py-2 text-[16px] font-semibold text-white",
].join(" ")}
>
{item.label}
@@ -69,7 +67,7 @@ export default function NavBar() {
</nav>
</div>
<div className="relative flex items-center gap-2">
<Link href="/my-courses" className="px-4 py-2 text-[16px] font-semibold text-white hover:text-white">
<Link href="/menu/courses" className="px-4 py-2 text-[16px] font-semibold text-white">
</Link>
<button