Skip to content

Commit cddc067

Browse files
SystemThreatclaude
andcommitted
Fix mobile menu: solid background, styled Connect button, proper z-index
- Move mobile menu to end of body for correct stacking order - Add body.menu-open class to hide page layers behind menu - Style Connect button in mobile menu with green border - Reduce menu gap and add overflow-y for smaller screens Co-Authored-By: systemthreat <systemthreat@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d45f963 commit cddc067

File tree

2 files changed

+71
-22
lines changed

2 files changed

+71
-22
lines changed

index.html

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,22 +1364,6 @@ <h2>14. Contact</h2>
13641364
<div class="grid-overlay"></div>
13651365
<div class="vignette"></div>
13661366

1367-
<!-- ============================================
1368-
MOBILE MENU
1369-
============================================ -->
1370-
<div class="mobile-menu" id="mobileMenu">
1371-
<button class="mobile-menu-close" onclick="closeMobileMenu()">
1372-
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 6L6 18M6 6l12 12"/></svg>
1373-
</button>
1374-
<a href="whoami.html">WhoAmI</a>
1375-
<a href="#loselijo" onclick="closeMobileMenu()">Los Elijo</a>
1376-
<a href="#products" onclick="closeMobileMenu()">Products</a>
1377-
<a href="#credentials" onclick="closeMobileMenu()">Credentials</a>
1378-
<a href="contact.html">Contact</a>
1379-
<a href="careers.html">Careers</a>
1380-
<a href="https://app.skyknet.com" class="connect-btn" onclick="closeMobileMenu()">Connect</a>
1381-
</div>
1382-
13831367
<!-- ============================================
13841368
MAIN CONTENT
13851369
============================================ -->
@@ -2267,8 +2251,8 @@ <h2 class="cta-title reveal">
22672251
if (e.key === 'Escape') { document.querySelectorAll('.modal-overlay.visible').forEach(m => m.classList.remove('visible')); document.body.style.overflow = ''; }
22682252
});
22692253

2270-
function openMobileMenu() { document.getElementById('mobileMenu').classList.add('visible'); document.body.style.overflow = 'hidden'; playClickSound(); }
2271-
function closeMobileMenu() { document.getElementById('mobileMenu').classList.remove('visible'); document.body.style.overflow = ''; playClickSound(); }
2254+
function openMobileMenu() { document.getElementById('mobileMenu').classList.add('visible'); document.body.classList.add('menu-open'); document.body.style.overflow = 'hidden'; playClickSound(); }
2255+
function closeMobileMenu() { document.getElementById('mobileMenu').classList.remove('visible'); document.body.classList.remove('menu-open'); document.body.style.overflow = ''; playClickSound(); }
22722256
</script>
22732257

22742258
<!-- ============================================
@@ -2437,5 +2421,19 @@ <h2 class="cta-title reveal">
24372421
});
24382422
});
24392423
</script>
2424+
2425+
<!-- Mobile Menu (last in body to ensure it paints above all layers) -->
2426+
<div class="mobile-menu" id="mobileMenu">
2427+
<button class="mobile-menu-close" onclick="closeMobileMenu()">
2428+
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 6L6 18M6 6l12 12"/></svg>
2429+
</button>
2430+
<a href="whoami.html">WhoAmI</a>
2431+
<a href="#loselijo" onclick="closeMobileMenu()">Los Elijo</a>
2432+
<a href="#products" onclick="closeMobileMenu()">Products</a>
2433+
<a href="#credentials" onclick="closeMobileMenu()">Credentials</a>
2434+
<a href="contact.html">Contact</a>
2435+
<a href="careers.html">Careers</a>
2436+
<a href="https://app.skyknet.com" class="connect-btn" onclick="closeMobileMenu()">Connect</a>
2437+
</div>
24402438
</body>
24412439
</html>

nav.css

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
font-weight: 700;
5454
letter-spacing: 0.3em;
5555
color: var(--cyan);
56+
white-space: nowrap;
5657
}
5758

5859
.logo-text-sub {
@@ -66,7 +67,7 @@
6667

6768
.nav-links {
6869
display: flex;
69-
gap: 64px;
70+
gap: 32px;
7071
list-style: none;
7172
}
7273

@@ -142,12 +143,18 @@
142143
display: none;
143144
position: fixed;
144145
inset: 0;
145-
z-index: 9999;
146-
background: rgba(0, 0, 0, 0.97);
146+
z-index: 99999;
147+
background: #000000;
147148
flex-direction: column;
148149
align-items: center;
149150
justify-content: center;
150-
gap: 40px;
151+
gap: 28px;
152+
padding: 80px 24px 40px;
153+
opacity: 0;
154+
visibility: hidden;
155+
transition: opacity 0.3s, visibility 0.3s;
156+
isolation: isolate;
157+
overflow-y: auto;
151158
}
152159

153160
.mobile-menu a {
@@ -164,6 +171,20 @@
164171
color: var(--cyan, #00ff00);
165172
}
166173

174+
.mobile-menu .connect-btn {
175+
font-size: 14px;
176+
color: var(--cyan, #00ff00);
177+
border: 1px solid var(--cyan, #00ff00);
178+
padding: 14px 36px;
179+
margin-top: 20px;
180+
transition: background 0.3s, color 0.3s;
181+
}
182+
183+
.mobile-menu .connect-btn:hover {
184+
background: var(--cyan, #00ff00);
185+
color: #000;
186+
}
187+
167188
.mobile-menu-close {
168189
position: absolute;
169190
top: 32px;
@@ -184,6 +205,35 @@
184205
visibility: visible;
185206
}
186207

208+
/* Hide page layers when mobile menu is open */
209+
body.menu-open #webgl,
210+
body.menu-open .overlay,
211+
body.menu-open .vignette,
212+
body.menu-open .grid-overlay,
213+
body.menu-open .content {
214+
visibility: hidden;
215+
}
216+
217+
/* Connect Button */
218+
.connect-btn {
219+
font-family: 'Space Mono', monospace;
220+
font-size: 10px;
221+
font-weight: 700;
222+
letter-spacing: 0.3em;
223+
text-transform: uppercase;
224+
color: var(--cyan, #00ff00);
225+
text-decoration: none;
226+
border: 1px solid var(--cyan, #00ff00);
227+
padding: 10px 24px;
228+
transition: background 0.3s, color 0.3s;
229+
white-space: nowrap;
230+
}
231+
232+
.connect-btn:hover {
233+
background: var(--cyan, #00ff00);
234+
color: #000;
235+
}
236+
187237
/* Responsive */
188238
@media (max-width: 1024px) {
189239
.nav { padding: 24px 32px; }
@@ -192,6 +242,7 @@
192242
@media (max-width: 768px) {
193243
.nav { padding: 12px 16px; }
194244
.nav-links { display: none; }
245+
.connect-btn.desktop { display: none; }
195246
.mobile-menu-btn { display: flex; }
196247
.mobile-menu { display: flex; }
197248
}

0 commit comments

Comments
 (0)