fix: constrain nav and footer content to max-w-[1200px] like main content
Nav keeps full-width background; inner content wrapped in max-w-[1200px] mx-auto px-7 container to align with page content width. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -40,9 +40,10 @@ export function Nav() {
|
||||
return (
|
||||
<>
|
||||
<nav
|
||||
className="fixed top-0 left-0 right-0 z-50 h-[60px] flex items-center px-5"
|
||||
className="fixed top-0 left-0 right-0 z-50 h-[60px]"
|
||||
style={{ background: 'rgba(4,13,8,0.97)', backdropFilter: 'blur(18px)', borderBottom: '1px solid rgba(34,197,94,0.18)' }}
|
||||
>
|
||||
<div className="max-w-[1200px] mx-auto px-7 h-full flex items-center">
|
||||
{/* Logo */}
|
||||
<Link href="/" className="flex items-center gap-2.5 flex-shrink-0 cursor-pointer select-none">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
@@ -85,6 +86,7 @@ export function Nav() {
|
||||
<span className={`block w-5 h-[2px] bg-[#22c55e] rounded-full transition-all ${open ? 'opacity-0' : ''}`} />
|
||||
<span className={`block w-5 h-[2px] bg-[#22c55e] rounded-full transition-all origin-center ${open ? '-rotate-45 -translate-y-[7px]' : ''}`} />
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{/* Mobile menu overlay */}
|
||||
|
||||
Reference in New Issue
Block a user