Skip to content

Commit

Permalink
res
Browse files Browse the repository at this point in the history
  • Loading branch information
bushido2014 committed Jan 2, 2024
1 parent b731e85 commit a59f4d6
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion docs/tailwind-nft-landing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,38 @@
</nav>
</div>
</header>

<div
x-data="slideout()"
x-cloak
@open-menu.window="open = $event.detail.open"
@keydown.window.tab="usedKeyboard = true"
@keydown.escape="open = false"
x-init="init()">
<div
x-show.transition.opacity.duration.500="open"
@click="open = false"
class="fixed inset-0 bg-black bg-opacity-25"></div>
<div
class="fixed transition duration-300 right-0 top-0 transform w-full max-w-xs h-screen bg-gray-100 overflow-hidden"
:class="{'translate-x-full': !open}">
<button
@click="open = false"
x-ref="closeButton"
:class="{'focus:outline-none': !usedKeyboard}"
class="fixed top-0 right-0 mr-4 mt-2 z-50">
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
<div class="p-16 px-6 absolute top-0 h-full overflow-y-scroll">
<ul class="menu flex-col">
<li><a href="#">Home</a></li>
<li><a href="#">Pages</a></li>
<li><a href="#">Explore</a></li>
<li><a href="#">Resources</a></li>
<li><a href="#">Create</a></li>
</ul>
</div>
</div>
</div>
<div class="hero relative py-16">
<div class="container pt-24">
<div class="text-center">
Expand Down

0 comments on commit a59f4d6

Please sign in to comment.