kinda working

This commit is contained in:
Adam Mohammed
2024-11-13 09:57:38 -05:00
parent 83a80dcae8
commit c2d17c2188
5 changed files with 90 additions and 26 deletions

View File

@@ -18,25 +18,6 @@
</head>
<body>
<nav class="flex items-center justify-between flex-wrap bg-[#8fbc8f]">
<div class="text-4xl text-amber-100 fleur-de-leah-regular">
Jillian and Adam's Wedding
</div>
<div id="burger-menu" class="block lg:hidden">
<button class="flex items-center px-3 py-2 border rounded text-amber-100 border-amber-100 hover:text-white hover:border-white">
<svg class="fill-current h-3 w-3" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Menu</title><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg>
</button>
</div>
<div class="w-full block flex-grow lg:flex lg:w-auto lg:justify-end">
<div id="nav-links" class="text-md max-sm:hidden flex flex-col lg:flex-row lg:mr-4">
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 text-amber-100 hover:text-white mr-4">Ceremony & Reception</a>
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 text-amber-100 hover:text-white mr-4">Accommodations</a>
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 text-amber-100 hover:text-white mr-4">Dress</a>
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 text-amber-100 hover:text-white mr-4">Registry</a>
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 text-amber-100 hover:text-white">RSVP</a>
</div>
</div>
</nav>
<div id="main-content">
<%= yield %>
</div>
@@ -44,7 +25,7 @@
var burgerMenu = document.getElementById('burger-menu');
var navLinks = document.getElementById('nav-links');
burgerMenu.addEventListener('click', function() {
navLinks.classList.toggle("max-sm:hidden");
navLinks.classList.toggle("max-md:hidden");
});
</script>