kinda working
This commit is contained in:
@@ -1 +1,45 @@
|
||||
<h1 class="text-3xl font-bold underline">Hello, Rails!</h1>
|
||||
<!-- options: #a99dab #dfebde -->
|
||||
<div class="bg-[#a99dab] w-screen h-screen">
|
||||
|
||||
<!--- HERO START --->
|
||||
<div class="hero-bg h-3/4">
|
||||
<!-- Nav START -->
|
||||
<nav class="flex items-center justify-between flex-wrap">
|
||||
<div id="burger-menu" class="block lg:hidden">
|
||||
<button class="flex items-center px-3 py-2 border rounded 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:hidden">
|
||||
<div id="nav-links" class="text-xl max-md:hidden flex flex-col lg:flex-row lg:mr-4">
|
||||
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">Ceremony & Reception</a>
|
||||
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">Accommodations</a>
|
||||
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">Dress</a>
|
||||
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">Registry</a>
|
||||
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white">RSVP</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<!-- Nav END -->
|
||||
|
||||
<div class="w-fit mx-auto py-56 sm:py-24">
|
||||
<h1 class="fleur-de-leah-regular text-darkgreen-600 text-7xl">Jillian & Adam</h1>
|
||||
<div class="mx-auto items-center w-fit">
|
||||
<div class="text-3xl py-4">June 7, 2025</div>
|
||||
</div>
|
||||
<div class="mx-auto items-center w-fit">
|
||||
<div class="text-3xl py-4">207 DAYS TO GO!</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full block flex-grow max-md:hidden lg:flex lg:w-auto lg:justify-center">
|
||||
<div id="nav-links-lg" class="text-xl flex flex-col lg:flex-row lg:mr-4">
|
||||
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">Ceremony & Reception</a>
|
||||
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">Accommodations</a>
|
||||
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">Dress</a>
|
||||
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">Registry</a>
|
||||
<a href="#" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white">RSVP</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--- Hero END -->
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user