From a35d9e3017b9b67b1c4320781b82f5c0a42bf7e1 Mon Sep 17 00:00:00 2001 From: gahusb Date: Sat, 16 May 2026 03:48:23 +0900 Subject: [PATCH] =?UTF-8?q?feat(nav):=20TopNav=20LINKS=205=EA=B0=9C=20?= =?UTF-8?q?=E2=86=92=202=EA=B0=9C=20(Music=20|=20Custom=20Build)=20+=20Try?= =?UTF-8?q?=20now=20=E2=86=92=20/music?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 헤더 안 b 적용. 각 사업부 허브로 진입. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/components/TopNav.tsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/app/components/TopNav.tsx b/app/components/TopNav.tsx index b4c5529..809a9b0 100644 --- a/app/components/TopNav.tsx +++ b/app/components/TopNav.tsx @@ -7,11 +7,8 @@ import { createClient } from '@/lib/supabase/client'; import type { User } from '@supabase/supabase-js'; const LINKS = [ - { href: '/', label: '홈' }, - { href: '/services/music/samples', label: '샘플' }, - { href: '/services/music', label: '팩 상세' }, - { href: '/studio', label: '스튜디오' }, - { href: '/freelance', label: '외주' }, + { href: '/music', label: 'Music' }, + { href: '/work', label: 'Custom Build' }, ]; export default function TopNav() { @@ -63,8 +60,7 @@ export default function TopNav() { const isActive = (href: string) => { if (href === '/') return pathname === '/'; - if (href === '/services/music') return pathname === '/services/music'; - return pathname.startsWith(href); + return pathname === href || pathname.startsWith(href + '/'); }; return ( @@ -147,7 +143,7 @@ export default function TopNav() { 로그인 @@ -230,7 +226,7 @@ export default function TopNav() { 로그인