techiqbal's picture
https://mohantylabpsu.org/ recreate navbar and footer
2c7757d verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MohantyLab | PSU</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
.nav-link::after {
content: '';
display: block;
width: 0;
height: 2px;
background: #3b82f6;
transition: width 0.3s;
}
.nav-link:hover::after {
width: 100%;
}
.footer-link:hover {
color: #93c5fd;
transform: translateX(5px);
transition: all 0.3s ease;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Modern Navbar -->
<nav class="bg-white shadow-lg sticky top-0 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-20 items-center">
<!-- Logo -->
<div class="flex-shrink-0 flex items-center">
<div class="flex items-center space-x-2">
<i data-feather="cpu" class="text-blue-600 w-8 h-8"></i>
<span class="text-xl font-bold text-gray-900">Mohanty<span class="text-blue-600">Lab</span></span>
<span class="text-sm text-gray-500">| PSU</span>
</div>
</div>
<!-- Desktop Menu -->
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
<a href="/" class="nav-link text-gray-900 hover:text-blue-600 px-3 py-2 font-medium">Home</a>
<a href="/research" class="nav-link text-gray-900 hover:text-blue-600 px-3 py-2 font-medium">Research</a>
<a href="/publications" class="nav-link text-gray-900 hover:text-blue-600 px-3 py-2 font-medium">Publications</a>
<a href="/people" class="nav-link text-gray-900 hover:text-blue-600 px-3 py-2 font-medium">People</a>
<a href="/resources" class="nav-link text-gray-900 hover:text-blue-600 px-3 py-2 font-medium">Resources</a>
<a href="/contact" class="nav-link text-gray-900 hover:text-blue-600 px-3 py-2 font-medium">Contact</a>
<a href="/join" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md font-medium transition duration-300 shadow-md hover:shadow-lg">Join Us</a>
</div>
<!-- Mobile menu button -->
<div class="md:hidden flex items-center">
<button type="button" class="mobile-menu-button inline-flex items-center justify-center p-2 rounded-md text-gray-500 hover:text-gray-700 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-600">
<i data-feather="menu" class="w-6 h-6"></i>
</button>
</div>
</div>
</div>
<!-- Mobile Menu -->
<div class="mobile-menu hidden md:hidden">
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3 bg-white shadow-md">
<a href="/" class="block px-3 py-2 text-base font-medium text-gray-900 hover:text-blue-600">Home</a>
<a href="/research" class="block px-3 py-2 text-base font-medium text-gray-900 hover:text-blue-600">Research</a>
<a href="/publications" class="block px-3 py-2 text-base font-medium text-gray-900 hover:text-blue-600">Publications</a>
<a href="/people" class="block px-3 py-2 text-base font-medium text-gray-900 hover:text-blue-600">People</a>
<a href="/resources" class="block px-3 py-2 text-base font-medium text-gray-900 hover:text-blue-600">Resources</a>
<a href="/contact" class="block px-3 py-2 text-base font-medium text-gray-900 hover:text-blue-600">Contact</a>
<a href="/join" class="block mt-4 w-full text-center bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md font-medium transition duration-300">Join Us</a>
</div>
</div>
</nav>
<!-- Footer -->
<footer class="bg-gray-900 text-white pt-16 pb-8">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<!-- About Column -->
<div>
<h3 class="text-xl font-bold mb-4">Mohanty Lab</h3>
<p class="text-gray-400 mb-4">Exploring quantum frontiers at Portland State University</p>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white transition duration-300">
<i data-feather="twitter" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition duration-300">
<i data-feather="linkedin" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition duration-300">
<i data-feather="github" class="w-5 h-5"></i>
</a>
</div>
</div>
<!-- Research Column -->
<div>
<h3 class="text-lg font-semibold mb-4">Research</h3>
<ul class="space-y-2">
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Quantum Computing</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Nanoelectronics</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Quantum Materials</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Sensors</a></li>
</ul>
</div>
<!-- Quick Links Column -->
<div>
<h3 class="text-lg font-semibold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="#" class="footer-link text-gray-400 hover:text-white">PSU Home</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Physics Department</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Directions</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Careers</a></li>
</ul>
</div>
<!-- Contact Column -->
<div>
<h3 class="text-lg font-semibold mb-4">Contact</h3>
<address class="not-italic text-gray-400 space-y-2">
<p>Science Building 1</p>
<p>1719 SW 10th Ave</p>
<p>Portland, OR 97201</p>
<p>Email: lab@mohantylabpsu.org</p>
<p>Phone: (503) 725-XXXX</p>
</address>
</div>
</div>
<div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-500 text-sm">
<p>© 2023 Mohanty Research Group. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Mobile menu toggle
const mobileMenuButton = document.querySelector('.mobile-menu-button');
const mobileMenu = document.querySelector('.mobile-menu');
mobileMenuButton.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
const icon = mobileMenuButton.querySelector('i');
if (mobileMenu.classList.contains('hidden')) {
feather.replace();
} else {
icon.setAttribute('data-feather', 'x');
feather.replace();
}
});
</script>
</body>
</html>