feat: complete ANL lab web application with lossless data migration and SSG routes
This commit is contained in:
@@ -6,7 +6,7 @@ import { useState } from "react";
|
||||
|
||||
// CUSTOMIZATION HOOK: edit nav labels / routes here.
|
||||
const navItems = [
|
||||
{ href: "/intro", ko: "연구실 소개", en: "Intro", no: "01" },
|
||||
{ href: "/", ko: "홈", en: "Home", no: "01" },
|
||||
{ href: "/members", ko: "구성원", en: "Members", no: "02" },
|
||||
{ href: "/publications", ko: "논문", en: "Publications", no: "03" },
|
||||
{ href: "/lectures", ko: "강의", en: "Lectures", no: "04" },
|
||||
@@ -18,7 +18,7 @@ export default function Header() {
|
||||
const pathname = usePathname();
|
||||
|
||||
const isActive = (href: string) =>
|
||||
pathname === href || pathname.startsWith(`${href}/`);
|
||||
href === "/" ? pathname === "/" : pathname === href || pathname.startsWith(`${href}/`);
|
||||
|
||||
return (
|
||||
<header className="sticky top-0 z-50 border-b border-ink bg-ivory/85 backdrop-blur">
|
||||
@@ -37,7 +37,7 @@ export default function Header() {
|
||||
<div className="container-content flex h-[4.25rem] items-center justify-between">
|
||||
{/* Brand */}
|
||||
<Link
|
||||
href="/intro"
|
||||
href="/"
|
||||
className="group flex flex-col leading-none"
|
||||
onClick={() => setOpen(false)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user