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
+131 -121
+131 -121
View File
@@ -271,53 +271,53 @@
<img alt="" class="text-indigo-700 h-5 w-5" src="svg/icon_search.svg"> <img alt="" class="text-indigo-700 h-5 w-5" src="svg/icon_search.svg">
</button> </button>
<div class="z-10 origin-top-right absolute w-full pt-2" id="example-collapse-dropdown"> <div class="z-10 origin-top-right absolute w-full pt-2" id="example-collapse-dropdown">
<!-- <div class="bg-white rounded-lg py-1">--> <!-- <div class="bg-white rounded-lg py-1">-->
<!-- <a href="#"--> <!-- <a href="#"-->
<!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">--> <!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">-->
<!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"--> <!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"-->
<!-- fill="currentColor">--> <!-- fill="currentColor">-->
<!-- <path fill-rule="evenodd"--> <!-- <path fill-rule="evenodd"-->
<!-- d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"--> <!-- d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"-->
<!-- clip-rule="evenodd"/>--> <!-- clip-rule="evenodd"/>-->
<!-- </svg>--> <!-- </svg>-->
<!-- Incub8 Space, Bacoor, Kawit, Cavite</a>--> <!-- Incub8 Space, Bacoor, Kawit, Cavite</a>-->
<!-- <a href="#"--> <!-- <a href="#"-->
<!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">--> <!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">-->
<!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"--> <!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"-->
<!-- fill="currentColor">--> <!-- fill="currentColor">-->
<!-- <path fill-rule="evenodd"--> <!-- <path fill-rule="evenodd"-->
<!-- d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"--> <!-- d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"-->
<!-- clip-rule="evenodd"/>--> <!-- clip-rule="evenodd"/>-->
<!-- </svg>--> <!-- </svg>-->
<!-- Incub8 Space, Bacoor, Kawit, Cavite</a>--> <!-- Incub8 Space, Bacoor, Kawit, Cavite</a>-->
<!-- <a href="#"--> <!-- <a href="#"-->
<!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">--> <!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">-->
<!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"--> <!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"-->
<!-- fill="currentColor">--> <!-- fill="currentColor">-->
<!-- <path fill-rule="evenodd"--> <!-- <path fill-rule="evenodd"-->
<!-- d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"--> <!-- d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"-->
<!-- clip-rule="evenodd"/>--> <!-- clip-rule="evenodd"/>-->
<!-- </svg>--> <!-- </svg>-->
<!-- Incub8 Space, Bacoor, Kawit, Cavite</a>--> <!-- Incub8 Space, Bacoor, Kawit, Cavite</a>-->
<!-- <a href="#"--> <!-- <a href="#"-->
<!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">--> <!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">-->
<!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"--> <!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"-->
<!-- fill="currentColor">--> <!-- fill="currentColor">-->
<!-- <path fill-rule="evenodd"--> <!-- <path fill-rule="evenodd"-->
<!-- d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"--> <!-- d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"-->
<!-- clip-rule="evenodd"/>--> <!-- clip-rule="evenodd"/>-->
<!-- </svg>--> <!-- </svg>-->
<!-- Incub8 Space, Bacoor, Kawit, Cavite</a>--> <!-- Incub8 Space, Bacoor, Kawit, Cavite</a>-->
<!-- <a href="#"--> <!-- <a href="#"-->
<!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">--> <!-- class="flex items-center px-2 text-md leading-5 hover:bg-green-300 text-gray-900 hover:text-white focus:outline-none">-->
<!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"--> <!-- <svg class="h-7 w-5 mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"-->
<!-- fill="currentColor">--> <!-- fill="currentColor">-->
<!-- <path fill-rule="evenodd"--> <!-- <path fill-rule="evenodd"-->
<!-- d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"--> <!-- d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"-->
<!-- clip-rule="evenodd"/>--> <!-- clip-rule="evenodd"/>-->
<!-- </svg>--> <!-- </svg>-->
<!-- Incub8 Space, Bacoor, Kawit, Cavite</a>--> <!-- Incub8 Space, Bacoor, Kawit, Cavite</a>-->
<!-- </div>--> <!-- </div>-->
</div> </div>
</li> </li>
</ul> </ul>
@@ -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>