add more pages - Follow Up Deployment
Browse files- index.html +55 -18
index.html
CHANGED
|
@@ -64,21 +64,33 @@
|
|
| 64 |
|
| 65 |
<nav class="hidden md:block">
|
| 66 |
<ul class="flex space-x-8">
|
| 67 |
-
<li><a href="
|
| 68 |
Home
|
| 69 |
<span class="absolute left-0 -bottom-1 w-0 h-0.5 bg-indigo-600 transition-all group-hover:w-full"></span>
|
| 70 |
</a></li>
|
| 71 |
-
<li><a href="
|
| 72 |
Jobs
|
| 73 |
<span class="absolute left-0 -bottom-1 w-0 h-0.5 bg-indigo-600 transition-all group-hover:w-full"></span>
|
| 74 |
</a></li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
<li><a href="#" class="px-6 py-2 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition font-medium shadow-md">
|
| 76 |
Find a Job
|
| 77 |
</a></li>
|
| 78 |
</ul>
|
| 79 |
</nav>
|
| 80 |
|
| 81 |
-
<button class="md:hidden text-gray-700 focus:outline-none">
|
| 82 |
<ion-icon name="menu-outline" class="text-2xl"></ion-icon>
|
| 83 |
</button>
|
| 84 |
</div>
|
|
@@ -771,32 +783,57 @@
|
|
| 771 |
}, 5000);
|
| 772 |
}
|
| 773 |
|
| 774 |
-
// Mobile menu
|
| 775 |
-
const mobileMenuButton = document.
|
|
|
|
|
|
|
| 776 |
const mobileMenu = document.createElement('div');
|
| 777 |
-
mobileMenu.
|
|
|
|
| 778 |
mobileMenu.innerHTML = `
|
| 779 |
<div class="absolute top-4 right-4">
|
| 780 |
-
<button class="text-gray-700 focus:outline-none
|
| 781 |
<ion-icon name="close-outline" class="text-3xl"></ion-icon>
|
| 782 |
</button>
|
| 783 |
</div>
|
| 784 |
-
<ul class="text-center space-y-8">
|
| 785 |
-
<li><a href="
|
| 786 |
-
<li><a href="
|
| 787 |
-
<li><a href="
|
|
|
|
|
|
|
|
|
|
| 788 |
</ul>
|
| 789 |
`;
|
| 790 |
document.body.appendChild(mobileMenu);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 791 |
|
| 792 |
-
|
| 793 |
-
mobileMenu.classList.remove('hidden');
|
| 794 |
-
document.body.style.overflow = 'hidden';
|
| 795 |
-
});
|
| 796 |
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
|
| 800 |
});
|
| 801 |
|
| 802 |
// Smooth scrolling for anchor links
|
|
|
|
| 64 |
|
| 65 |
<nav class="hidden md:block">
|
| 66 |
<ul class="flex space-x-8">
|
| 67 |
+
<li><a href="index.html" class="text-gray-600 hover:text-indigo-600 transition font-medium relative group">
|
| 68 |
Home
|
| 69 |
<span class="absolute left-0 -bottom-1 w-0 h-0.5 bg-indigo-600 transition-all group-hover:w-full"></span>
|
| 70 |
</a></li>
|
| 71 |
+
<li><a href="jobs.html" class="text-gray-600 hover:text-indigo-600 transition font-medium relative group">
|
| 72 |
Jobs
|
| 73 |
<span class="absolute left-0 -bottom-1 w-0 h-0.5 bg-indigo-600 transition-all group-hover:w-full"></span>
|
| 74 |
</a></li>
|
| 75 |
+
<li><a href="companies.html" class="text-gray-600 hover:text-indigo-600 transition font-medium relative group">
|
| 76 |
+
Companies
|
| 77 |
+
<span class="absolute left-0 -bottom-1 w-0 h-0.5 bg-indigo-600 transition-all group-hover:w-full"></span>
|
| 78 |
+
</a></li>
|
| 79 |
+
<li><a href="about.html" class="text-gray-600 hover:text-indigo-600 transition font-medium relative group">
|
| 80 |
+
About
|
| 81 |
+
<span class="absolute left-0 -bottom-1 w-0 h-0.5 bg-indigo-600 transition-all group-hover:w-full"></span>
|
| 82 |
+
</a></li>
|
| 83 |
+
<li><a href="contact.html" class="text-gray-600 hover:text-indigo-600 transition font-medium relative group">
|
| 84 |
+
Contact
|
| 85 |
+
<span class="absolute left-0 -bottom-1 w-0 h-0.5 bg-indigo-600 transition-all group-hover:w-full"></span>
|
| 86 |
+
</a></li>
|
| 87 |
<li><a href="#" class="px-6 py-2 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition font-medium shadow-md">
|
| 88 |
Find a Job
|
| 89 |
</a></li>
|
| 90 |
</ul>
|
| 91 |
</nav>
|
| 92 |
|
| 93 |
+
<button class="md:hidden text-gray-700 focus:outline-none" id="mobile-menu-button">
|
| 94 |
<ion-icon name="menu-outline" class="text-2xl"></ion-icon>
|
| 95 |
</button>
|
| 96 |
</div>
|
|
|
|
| 783 |
}, 5000);
|
| 784 |
}
|
| 785 |
|
| 786 |
+
// Mobile menu functionality
|
| 787 |
+
const mobileMenuButton = document.getElementById('mobile-menu-button');
|
| 788 |
+
|
| 789 |
+
// Create mobile menu overlay
|
| 790 |
const mobileMenu = document.createElement('div');
|
| 791 |
+
mobileMenu.id = 'mobile-menu';
|
| 792 |
+
mobileMenu.className = 'hidden fixed inset-0 bg-white z-50 flex flex-col items-center justify-center';
|
| 793 |
mobileMenu.innerHTML = `
|
| 794 |
<div class="absolute top-4 right-4">
|
| 795 |
+
<button id="close-mobile-menu" class="text-gray-700 focus:outline-none">
|
| 796 |
<ion-icon name="close-outline" class="text-3xl"></ion-icon>
|
| 797 |
</button>
|
| 798 |
</div>
|
| 799 |
+
<ul class="text-center space-y-8 px-4">
|
| 800 |
+
<li><a href="index.html" class="text-2xl font-medium text-gray-700 hover:text-indigo-600 transition-colors">Home</a></li>
|
| 801 |
+
<li><a href="jobs.html" class="text-2xl font-medium text-gray-700 hover:text-indigo-600 transition-colors">Jobs</a></li>
|
| 802 |
+
<li><a href="companies.html" class="text-2xl font-medium text-gray-700 hover:text-indigo-600 transition-colors">Companies</a></li>
|
| 803 |
+
<li><a href="about.html" class="text-2xl font-medium text-gray-700 hover:text-indigo-600 transition-colors">About</a></li>
|
| 804 |
+
<li><a href="contact.html" class="text-2xl font-medium text-gray-700 hover:text-indigo-600 transition-colors">Contact</a></li>
|
| 805 |
+
<li><a href="jobs.html" class="text-2xl font-medium px-8 py-3 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition inline-block">Find a Job</a></li>
|
| 806 |
</ul>
|
| 807 |
`;
|
| 808 |
document.body.appendChild(mobileMenu);
|
| 809 |
+
|
| 810 |
+
// Toggle menu function
|
| 811 |
+
function toggleMobileMenu(show) {
|
| 812 |
+
const mobileMenu = document.getElementById('mobile-menu');
|
| 813 |
+
if (show) {
|
| 814 |
+
mobileMenu.classList.remove('hidden');
|
| 815 |
+
document.body.style.overflow = 'hidden';
|
| 816 |
+
|
| 817 |
+
// Animate menu appearance
|
| 818 |
+
gsap.from(mobileMenu, {
|
| 819 |
+
opacity: 0,
|
| 820 |
+
duration: 0.2,
|
| 821 |
+
ease: "power2.out"
|
| 822 |
+
});
|
| 823 |
+
} else {
|
| 824 |
+
mobileMenu.classList.add('hidden');
|
| 825 |
+
document.body.style.overflow = 'auto';
|
| 826 |
+
}
|
| 827 |
+
}
|
| 828 |
+
|
| 829 |
+
// Event listeners
|
| 830 |
+
mobileMenuButton.addEventListener('click', () => toggleMobileMenu(true));
|
| 831 |
|
| 832 |
+
document.getElementById('close-mobile-menu').addEventListener('click', () => toggleMobileMenu(false));
|
|
|
|
|
|
|
|
|
|
| 833 |
|
| 834 |
+
// Close when clicking on a link
|
| 835 |
+
mobileMenu.querySelectorAll('a').forEach(link => {
|
| 836 |
+
link.addEventListener('click', () => toggleMobileMenu(false));
|
| 837 |
});
|
| 838 |
|
| 839 |
// Smooth scrolling for anchor links
|