added changes dropdown

This commit is contained in:
unknown committed 2020-10-24 01:24:34 +08:00
1 parent 6275302483
commit 9b0bf25c12
1 file changed
+84 -74
+84 -74
View File
@@ -349,92 +349,98 @@
</button> </button>
</div> </div>
<div class="relative"> <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 Nearby
<img alt="" class=" absolute top-0 right-0 m-4" src="svg/icon_dropdown.svg"> <img alt="" class=" absolute top-0 right-0 m-4" src="svg/icon_dropdown.svg">
</button> </button>
<!-- <div class="z-10 origin-top-right absolute w-full ">--> <div class="z-10 origin-top-right absolute w-full " id="example-collapse-dropdown1">
<!-- <div class="bg-white rounded-b-lg py-3">--> <div class="bg-white rounded-lg py-3">
<!-- <p class="pl-3 font-extrabold">Geolocation</p>--> <p class="pl-3 font-extrabold">Geolocation</p>
<!-- <div class="pt-1 px-3">--> <div class="pt-1 px-3">
<!-- <a href="#"--> <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>--> 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="#"--> <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>--> 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>--> </div>
<!-- <p class="pl-3 font-extrabold">City</p>--> <p class="pl-3 font-extrabold">City</p>
<!-- <div class="px-3">--> <div class="px-3">
<!-- <a href="#"--> <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--> 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>--> 1</a>
<!-- <a href="#"--> <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--> 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>--> 1</a>
<!-- <a href="#"--> <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--> 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>--> 1</a>
<!-- </div>--> </div>
<!-- </div>--> </div>
<!-- </div>--> </div>
</div> </div>
<div class="relative"> <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 Open Now
<img alt="" class=" absolute top-0 right-0 m-4" src="svg/icon_dropdown.svg"> <img alt="" class=" absolute top-0 right-0 m-4" src="svg/icon_dropdown.svg">
</button> </button>
<!-- <div class="z-10 origin-top-right absolute w-full ">--> <div class="z-10 origin-top-right absolute w-full" id="example-collapse-dropdown2">
<!-- <div class="bg-white rounded-b-lg py-3">--> <div class="bg-white rounded-lg py-3">
<!-- <p class="pl-3 font-extrabold">Availability</p>--> <p class="pl-3 font-extrabold">Availability</p>
<!-- <div class="pt-1 px-3">--> <div class="pt-1 px-3">
<!-- <a href="#"--> <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--> 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>--> Now</a>
<!-- <a href="#"--> <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--> 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>--> Always</a>
<!-- </div>--> </div>
<!-- <p class="pl-3 font-extrabold">By Hour</p>--> <p class="pl-3 font-extrabold">By Hour</p>
<!-- <div class="px-3">--> <div class="px-3">
<!-- <a href="#"--> <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--> 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--> Hour from now
<!-- </a>--> </a>
<!-- <a href="#"--> <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--> 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--> Hour from now
<!-- </a>--> </a>
<!-- <a href="#"--> <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>--> 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
<!-- <a href="#"--> Hour from now</a>
<!-- 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="#"
<!-- <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
<!-- 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>--> Hour from now</a>
<!-- </div>--> <a href="#"
<!-- </div>--> 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
<!-- </div>--> Hour from now</a>
</div>
</div>
</div>
</div> </div>
<div class="relative md:row-start-2 lg:row-start-2 xl:row-start-1 xl:col-start-3"> <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 Daily
<img alt="" class=" absolute top-0 right-0 m-4" src="svg/icon_dropdown.svg"> <img alt="" class=" absolute top-0 right-0 m-4" src="svg/icon_dropdown.svg">
</button> </button>
<!-- <div class="z-10 origin-top-right absolute w-full ">--> <div class="z-10 origin-top-right absolute w-full" id="example-collapse-dropdown3">
<!-- <div class="bg-white rounded-b-lg py-3">--> <div class="bg-white rounded-lg py-3">
<!-- <p class="pl-3 font-extrabold">Rate</p>--> <p class="pl-3 font-extrabold">Rate</p>
<!-- <div class="pt-1 px-3">--> <div class="pt-1 px-3">
<!-- <a href="#"--> <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>--> 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="#"--> <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>--> 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="#"--> <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>--> 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="#"--> <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>--> 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="#"--> <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>--> 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>--> </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"> <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> <p class="font-extrabold text-gray-700">TYPE</p>
@@ -515,7 +521,6 @@
</div> </div>
</div> </div>
</div> </div>
</nav> </nav>
<main> <main>
<section class="bg-gray-100 shadow-md"> <section class="bg-gray-100 shadow-md">
@@ -989,5 +994,10 @@
document.getElementById(collapseID).classList.toggle("hidden"); document.getElementById(collapseID).classList.toggle("hidden");
document.getElementById(collapseID).classList.toggle("block"); document.getElementById(collapseID).classList.toggle("block");
} }
function toggleDropdown(collapseID) {
document.getElementById(collapseID).classList.toggle("hidden");
document.getElementById(collapseID).classList.toggle("block");
}
</script> </script>
</html> </html>