fix: TopNav 모바일 오버레이 body scroll lock + 푸터 연도 2026 통일

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-15 02:25:38 +09:00
parent a9b53a3327
commit 6d0c3c4bcf
2 changed files with 9 additions and 1 deletions

View File

@@ -67,7 +67,7 @@ export default function DashboardShell({ children }: { children: React.ReactNode
<a href="/legal/privacy" className="text-slate-400 hover:text-[#1a56db] transition underline underline-offset-2"></a> <a href="/legal/privacy" className="text-slate-400 hover:text-[#1a56db] transition underline underline-offset-2"></a>
<a href="/legal/refund" className="text-slate-400 hover:text-[#1a56db] transition underline underline-offset-2"> </a> <a href="/legal/refund" className="text-slate-400 hover:text-[#1a56db] transition underline underline-offset-2"> </a>
</div> </div>
<p className="mt-2 text-slate-400">© 2025 . All rights reserved.</p> <p className="mt-2 text-slate-400">© 2026 . All rights reserved.</p>
</div> </div>
</footer> </footer>
</main> </main>

View File

@@ -26,6 +26,14 @@ export default function TopNav() {
useEffect(() => { setOpen(false); }, [pathname]); useEffect(() => { setOpen(false); }, [pathname]);
useEffect(() => {
if (open) {
const prev = document.body.style.overflow;
document.body.style.overflow = 'hidden';
return () => { document.body.style.overflow = prev; };
}
}, [open]);
const isActive = (href: string) => const isActive = (href: string) =>
href === '/' ? pathname === '/' : pathname.startsWith(href); href === '/' ? pathname === '/' : pathname.startsWith(href);