feat(nav): TopNav LINKS 5개 → 2개 (Music | Custom Build) + Try now → /music

헤더 안 b 적용. 각 사업부 허브로 진입.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-16 03:48:23 +09:00
parent 9fb9ae6a79
commit a35d9e3017

View File

@@ -7,11 +7,8 @@ import { createClient } from '@/lib/supabase/client';
import type { User } from '@supabase/supabase-js'; import type { User } from '@supabase/supabase-js';
const LINKS = [ const LINKS = [
{ href: '/', label: '' }, { href: '/music', label: 'Music' },
{ href: '/services/music/samples', label: '샘플' }, { href: '/work', label: 'Custom Build' },
{ href: '/services/music', label: '팩 상세' },
{ href: '/studio', label: '스튜디오' },
{ href: '/freelance', label: '외주' },
]; ];
export default function TopNav() { export default function TopNav() {
@@ -63,8 +60,7 @@ export default function TopNav() {
const isActive = (href: string) => { const isActive = (href: string) => {
if (href === '/') return pathname === '/'; if (href === '/') return pathname === '/';
if (href === '/services/music') return pathname === '/services/music'; return pathname === href || pathname.startsWith(href + '/');
return pathname.startsWith(href);
}; };
return ( return (
@@ -147,7 +143,7 @@ export default function TopNav() {
</Link> </Link>
<Link <Link
href="/services/music" href="/music"
className="kx-btn-primary hidden sm:inline-flex items-center px-5 py-2 rounded-full text-sm" className="kx-btn-primary hidden sm:inline-flex items-center px-5 py-2 rounded-full text-sm"
style={{ textDecoration: 'none' }} style={{ textDecoration: 'none' }}
> >
@@ -230,7 +226,7 @@ export default function TopNav() {
</Link> </Link>
<Link <Link
href="/services/music" href="/music"
className="kx-btn-primary flex-1 py-3 text-center rounded-full text-sm" className="kx-btn-primary flex-1 py-3 text-center rounded-full text-sm"
style={{ textDecoration: 'none' }} style={{ textDecoration: 'none' }}
> >