Adjust the mobile also
Browse files- index.html +34 -7
- style.css +31 -4
index.html
CHANGED
|
@@ -214,11 +214,10 @@
|
|
| 214 |
|
| 215 |
<a href="https://www.vlcsolutions.com/contactus.html" class="bg-[#002060] hover:bg-[#001a50] text-white px-4 py-2 rounded-md text-sm font-medium">Let’s Connect</a>
|
| 216 |
</nav>
|
| 217 |
-
|
| 218 |
-
<button id="mobile-menu-button" class="md:hidden inline-flex items-center p-2 rounded-md text-gray-500 hover:bg-gray-100" aria-label="Open menu">
|
| 219 |
<i data-feather="menu" aria-hidden="true"></i>
|
| 220 |
</button>
|
| 221 |
-
|
| 222 |
</div>
|
| 223 |
</header>
|
| 224 |
<!-- Hero / Banner (right-aligned text) -->
|
|
@@ -641,15 +640,43 @@ Request Demo
|
|
| 641 |
if (window.feather) {
|
| 642 |
feather.replace();
|
| 643 |
}
|
| 644 |
-
|
| 645 |
-
// Mobile menu placeholder
|
| 646 |
const mobileBtn = document.getElementById('mobile-menu-button');
|
|
|
|
|
|
|
| 647 |
if (mobileBtn) {
|
| 648 |
mobileBtn.addEventListener('click', () => {
|
| 649 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 650 |
});
|
| 651 |
}
|
| 652 |
-
|
| 653 |
|
| 654 |
// Refresh AOS on resize (guard if AOS present)
|
| 655 |
window.addEventListener('resize', function() {
|
|
|
|
| 214 |
|
| 215 |
<a href="https://www.vlcsolutions.com/contactus.html" class="bg-[#002060] hover:bg-[#001a50] text-white px-4 py-2 rounded-md text-sm font-medium">Let’s Connect</a>
|
| 216 |
</nav>
|
| 217 |
+
<button id="mobile-menu-button" class="md:hidden inline-flex items-center p-2 rounded-md text-gray-500 hover:bg-gray-100" aria-label="Open menu" aria-expanded="false">
|
|
|
|
| 218 |
<i data-feather="menu" aria-hidden="true"></i>
|
| 219 |
</button>
|
| 220 |
+
</div>
|
| 221 |
</div>
|
| 222 |
</header>
|
| 223 |
<!-- Hero / Banner (right-aligned text) -->
|
|
|
|
| 640 |
if (window.feather) {
|
| 641 |
feather.replace();
|
| 642 |
}
|
| 643 |
+
// Mobile menu functionality
|
|
|
|
| 644 |
const mobileBtn = document.getElementById('mobile-menu-button');
|
| 645 |
+
const header = document.querySelector('header');
|
| 646 |
+
|
| 647 |
if (mobileBtn) {
|
| 648 |
mobileBtn.addEventListener('click', () => {
|
| 649 |
+
const expanded = mobileBtn.getAttribute('aria-expanded') === 'true';
|
| 650 |
+
mobileBtn.setAttribute('aria-expanded', !expanded);
|
| 651 |
+
|
| 652 |
+
if (!expanded) {
|
| 653 |
+
// Create mobile menu
|
| 654 |
+
const mobileMenu = document.createElement('div');
|
| 655 |
+
mobileMenu.id = 'mobile-menu';
|
| 656 |
+
mobileMenu.className = 'md:hidden absolute top-16 left-0 right-0 bg-white shadow-lg z-40';
|
| 657 |
+
mobileMenu.innerHTML = `
|
| 658 |
+
<div class="px-4 py-3 space-y-2 border-t border-gray-200">
|
| 659 |
+
<a href="https://www.vlcsolutions.com/who-we-serve.html" class="block py-2 px-3 text-gray-700 hover:text-[#8DC63F]">Who We Serve</a>
|
| 660 |
+
<a href="https://www.vlcsolutions.com/solutions.html" class="block py-2 px-3 text-gray-700 hover:text-[#8DC63F]">Solutions</a>
|
| 661 |
+
<a href="https://www.vlcsolutions.com/services.html" class="block py-2 px-3 text-gray-700 hover:text-[#8DC63F]">Services</a>
|
| 662 |
+
<a href="https://www.vlcsolutions.com/industries.html" class="block py-2 px-3 text-gray-700 hover:text-[#8DC63F]">Industries</a>
|
| 663 |
+
<a href="https://www.vlcsolutions.com/products.html" class="block py-2 px-3 text-gray-700 hover:text-[#8DC63F]">Products</a>
|
| 664 |
+
<a href="https://www.vlcsolutions.com/who-we-are.html" class="block py-2 px-3 text-gray-700 hover:text-[#8DC63F]">Who We Are</a>
|
| 665 |
+
<a href="https://www.vlcsolutions.com/contactus.html" class="block py-2 px-3 bg-[#002060] text-white rounded-md text-center">Let's Connect</a>
|
| 666 |
+
</div>
|
| 667 |
+
`;
|
| 668 |
+
header.appendChild(mobileMenu);
|
| 669 |
+
feather.replace();
|
| 670 |
+
} else {
|
| 671 |
+
// Remove mobile menu
|
| 672 |
+
const mobileMenu = document.getElementById('mobile-menu');
|
| 673 |
+
if (mobileMenu) {
|
| 674 |
+
mobileMenu.remove();
|
| 675 |
+
}
|
| 676 |
+
}
|
| 677 |
});
|
| 678 |
}
|
| 679 |
+
});
|
| 680 |
|
| 681 |
// Refresh AOS on resize (guard if AOS present)
|
| 682 |
window.addEventListener('resize', function() {
|
style.css
CHANGED
|
@@ -1,8 +1,35 @@
|
|
| 1 |
-
body {
|
| 2 |
-
padding: 2rem;
|
| 3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
| 4 |
-
}
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
h1 {
|
| 7 |
font-size: 16px;
|
| 8 |
margin-top: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
+
/* Mobile menu styles */
|
| 3 |
+
@media (max-width: 767px) {
|
| 4 |
+
body {
|
| 5 |
+
padding: 0;
|
| 6 |
+
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
#mobile-menu {
|
| 10 |
+
max-height: calc(100vh - 64px);
|
| 11 |
+
overflow-y: auto;
|
| 12 |
+
-webkit-overflow-scrolling: touch;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
#mobile-menu a {
|
| 16 |
+
display: block;
|
| 17 |
+
padding: 12px 16px;
|
| 18 |
+
font-size: 16px;
|
| 19 |
+
border-bottom: 1px solid #f0f0f0;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
#mobile-menu a:last-child {
|
| 23 |
+
margin-top: 16px;
|
| 24 |
+
border-bottom: none;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
header {
|
| 28 |
+
position: sticky;
|
| 29 |
+
top: 0;
|
| 30 |
+
z-index: 50;
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
h1 {
|
| 34 |
font-size: 16px;
|
| 35 |
margin-top: 0;
|