added changes dropdown
This commit is contained in:
1 parent
6275302483
commit
9b0bf25c12
1 file changed
+84
-74
+84
-74
@@ -349,92 +349,98 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="relative">
|
||||
<button class="relative w-full h-12 bg-white rounded-lg focus:outline-none appearance-none">
|
||||
<button class="relative w-full h-12 bg-white rounded-lg focus:outline-none appearance-none"
|
||||
onclick="toggleDropdown('example-collapse-dropdown1')">
|
||||
Nearby
|
||||
<img alt="" class=" absolute top-0 right-0 m-4" src="svg/icon_dropdown.svg">
|
||||
</button>
|
||||
<!-- <div class="z-10 origin-top-right absolute w-full ">-->
|
||||
<!-- <div class="bg-white rounded-b-lg py-3">-->
|
||||
<!-- <p class="pl-3 font-extrabold">Geolocation</p>-->
|
||||
<!-- <div class="pt-1 px-3">-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Nearby</a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Anywhere</a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <p class="pl-3 font-extrabold">City</p>-->
|
||||
<!-- <div class="px-3">-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Option-->
|
||||
<!-- 1</a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Option-->
|
||||
<!-- 1</a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Option-->
|
||||
<!-- 1</a>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="z-10 origin-top-right absolute w-full " id="example-collapse-dropdown1">
|
||||
<div class="bg-white rounded-lg py-3">
|
||||
<p class="pl-3 font-extrabold">Geolocation</p>
|
||||
<div class="pt-1 px-3">
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Nearby</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Anywhere</a>
|
||||
</div>
|
||||
<p class="pl-3 font-extrabold">City</p>
|
||||
<div class="px-3">
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Option
|
||||
1</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Option
|
||||
1</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Option
|
||||
1</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="relative">
|
||||
<button class="relative w-full h-12 bg-white rounded-lg focus:outline-none appearance-none">
|
||||
<button class="relative w-full h-12 bg-white rounded-lg focus:outline-none appearance-none"
|
||||
onclick="toggleDropdown('example-collapse-dropdown2')">
|
||||
Open Now
|
||||
<img alt="" class=" absolute top-0 right-0 m-4" src="svg/icon_dropdown.svg">
|
||||
</button>
|
||||
<!-- <div class="z-10 origin-top-right absolute w-full ">-->
|
||||
<!-- <div class="bg-white rounded-b-lg py-3">-->
|
||||
<!-- <p class="pl-3 font-extrabold">Availability</p>-->
|
||||
<!-- <div class="pt-1 px-3">-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open-->
|
||||
<!-- Now</a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open-->
|
||||
<!-- Always</a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <p class="pl-3 font-extrabold">By Hour</p>-->
|
||||
<!-- <div class="px-3">-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">1-->
|
||||
<!-- Hour from now-->
|
||||
<!-- </a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">2-->
|
||||
<!-- Hour from now-->
|
||||
<!-- </a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">3 Hour from now</a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">4 Hour from now</a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">5 Hour from now</a>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="z-10 origin-top-right absolute w-full" id="example-collapse-dropdown2">
|
||||
<div class="bg-white rounded-lg py-3">
|
||||
<p class="pl-3 font-extrabold">Availability</p>
|
||||
<div class="pt-1 px-3">
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open
|
||||
Now</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open
|
||||
Always</a>
|
||||
</div>
|
||||
<p class="pl-3 font-extrabold">By Hour</p>
|
||||
<div class="px-3">
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">1
|
||||
Hour from now
|
||||
</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">2
|
||||
Hour from now
|
||||
</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">3
|
||||
Hour from now</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">4
|
||||
Hour from now</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">5
|
||||
Hour from now</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="relative md:row-start-2 lg:row-start-2 xl:row-start-1 xl:col-start-3">
|
||||
<button class="relative w-full h-12 bg-white rounded-lg focus:outline-none appearance-none">
|
||||
<button class="relative w-full h-12 bg-white rounded-lg focus:outline-none appearance-none"
|
||||
onclick="toggleDropdown('example-collapse-dropdown3')">
|
||||
Daily
|
||||
<img alt="" class=" absolute top-0 right-0 m-4" src="svg/icon_dropdown.svg">
|
||||
</button>
|
||||
<!-- <div class="z-10 origin-top-right absolute w-full ">-->
|
||||
<!-- <div class="bg-white rounded-b-lg py-3">-->
|
||||
<!-- <p class="pl-3 font-extrabold">Rate</p>-->
|
||||
<!-- <div class="pt-1 px-3">-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Hourly</a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Daily</a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Weekly</a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Monthly</a>-->
|
||||
<!-- <a href="#"-->
|
||||
<!-- class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Yearly</a>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="z-10 origin-top-right absolute w-full" id="example-collapse-dropdown3">
|
||||
<div class="bg-white rounded-lg py-3">
|
||||
<p class="pl-3 font-extrabold">Rate</p>
|
||||
<div class="pt-1 px-3">
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Hourly</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Daily</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Weekly</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Monthly</a>
|
||||
<a href="#"
|
||||
class="block px-5 py-2 my-2 text-md leading-5 hover:bg-green-300 hover:text-white focus:outline-none focus:bg-gray-100 focus:text-gray-900">Yearly</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-1 sm:col-span-2 md:gap-y-0 md:col-span-3 md:row-start-3 xl:col-span-2 xl:row-start-2 xl:col-start-1">
|
||||
<p class="font-extrabold text-gray-700">TYPE</p>
|
||||
@@ -515,7 +521,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
<main>
|
||||
<section class="bg-gray-100 shadow-md">
|
||||
@@ -989,5 +994,10 @@
|
||||
document.getElementById(collapseID).classList.toggle("hidden");
|
||||
document.getElementById(collapseID).classList.toggle("block");
|
||||
}
|
||||
|
||||
function toggleDropdown(collapseID) {
|
||||
document.getElementById(collapseID).classList.toggle("hidden");
|
||||
document.getElementById(collapseID).classList.toggle("block");
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
Reference in new issue
Block a user