feat: Enhance nav filters with dropdowns and styling updates
This commit is contained in:
1 parent
8ff1604ded
commit
1be179cd13
1 file changed
+29
-23
+29
-23
@@ -19,16 +19,16 @@
|
|||||||
<div class="max-h-60 overflow-y-auto">
|
<div class="max-h-60 overflow-y-auto">
|
||||||
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">Geolocation</p>
|
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">Geolocation</p>
|
||||||
<div class="pt-1 px-3">
|
<div class="pt-1 px-3">
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Nearby</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Nearby</a>
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Anywhere</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Anywhere</a>
|
||||||
</div>
|
</div>
|
||||||
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">City</p>
|
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">City</p>
|
||||||
<div class="px-3 pt-1">
|
<div class="px-3 pt-1">
|
||||||
<input type="text" placeholder="Search city..." class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-indigo-700 focus:border-indigo-700">
|
<input type="text" placeholder="Search city..." class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-indigo-700 focus:border-indigo-700">
|
||||||
<!-- Placeholder for city list (would be populated by JS) -->
|
<!-- Placeholder for city list (would be populated by JS) -->
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Manila</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Manila</a>
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Makati</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Makati</a>
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Quezon City</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Quezon City</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -48,8 +48,8 @@
|
|||||||
<div class="max-h-60 overflow-y-auto">
|
<div class="max-h-60 overflow-y-auto">
|
||||||
<p class="pl-3 pt-1 font-semibold text-gray-700 text-sm">Availability</p>
|
<p class="pl-3 pt-1 font-semibold text-gray-700 text-sm">Availability</p>
|
||||||
<div class="pt-1 px-3">
|
<div class="pt-1 px-3">
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open Now</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open Now</a>
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open Always</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open Always</a>
|
||||||
</div>
|
</div>
|
||||||
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">Future Availability</p>
|
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">Future Availability</p>
|
||||||
<div class="px-3 pt-1">
|
<div class="px-3 pt-1">
|
||||||
@@ -69,11 +69,11 @@
|
|||||||
<!-- Dropdown content for Rates (initially hidden, toggle with JS) -->
|
<!-- Dropdown content for Rates (initially hidden, toggle with JS) -->
|
||||||
<div id="rates-filter-dropdown" class="absolute z-10 mt-1 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 220px;">
|
<div id="rates-filter-dropdown" class="absolute z-10 mt-1 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 220px;">
|
||||||
<div class="py-1 px-2">
|
<div class="py-1 px-2">
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Hourly</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Hourly</a>
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Daily</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Daily</a>
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Weekly</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Weekly</a>
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Monthly</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Monthly</a>
|
||||||
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Annually</a>
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Annually</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -88,23 +88,23 @@
|
|||||||
<div id="spacetype-filter-dropdown" class="absolute z-10 mt-1 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 260px;">
|
<div id="spacetype-filter-dropdown" class="absolute z-10 mt-1 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 260px;">
|
||||||
<div class="py-1 px-2">
|
<div class="py-1 px-2">
|
||||||
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer">
|
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer">
|
||||||
<input type="checkbox" class="h-4 w-4 text-indigo-700 border-gray-300 rounded focus:ring-indigo-700">
|
<input type="checkbox" class="h-4 w-4 text-indigo-700 border-gray-300 rounded-sm focus:ring-indigo-700 checked:border-2 checked:border-indigo-700">
|
||||||
<span class="ml-2">Coworking</span>
|
<span class="ml-2">Coworking</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer">
|
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer">
|
||||||
<input type="checkbox" class="h-4 w-4 text-indigo-700 border-gray-300 rounded focus:ring-indigo-700">
|
<input type="checkbox" class="h-4 w-4 text-indigo-700 border-gray-300 rounded-sm focus:ring-indigo-700 checked:border-2 checked:border-indigo-700">
|
||||||
<span class="ml-2">Room</span>
|
<span class="ml-2">Room</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer">
|
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer">
|
||||||
<input type="checkbox" class="h-4 w-4 text-indigo-700 border-gray-300 rounded focus:ring-indigo-700">
|
<input type="checkbox" class="h-4 w-4 text-indigo-700 border-gray-300 rounded-sm focus:ring-indigo-700 checked:border-2 checked:border-indigo-700">
|
||||||
<span class="ml-2">Conference</span>
|
<span class="ml-2">Conference</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer">
|
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer">
|
||||||
<input type="checkbox" class="h-4 w-4 text-indigo-700 border-gray-300 rounded focus:ring-indigo-700">
|
<input type="checkbox" class="h-4 w-4 text-indigo-700 border-gray-300 rounded-sm focus:ring-indigo-700 checked:border-2 checked:border-indigo-700">
|
||||||
<span class="ml-2">Event Space</span>
|
<span class="ml-2">Event Space</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer">
|
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer">
|
||||||
<input type="checkbox" class="h-4 w-4 text-indigo-700 border-gray-300 rounded focus:ring-indigo-700">
|
<input type="checkbox" class="h-4 w-4 text-indigo-700 border-gray-300 rounded-sm focus:ring-indigo-700 checked:border-2 checked:border-indigo-700">
|
||||||
<span class="ml-2">Virtual Office</span>
|
<span class="ml-2">Virtual Office</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
@@ -148,13 +148,19 @@
|
|||||||
<button class="bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border-2 border-transparent hover:border-indigo-700">
|
<button class="bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border-2 border-transparent hover:border-indigo-700">
|
||||||
Newest
|
Newest
|
||||||
</button>
|
</button>
|
||||||
<button class="bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer inline-flex items-center capitalize border-2 border-transparent hover:border-indigo-700">
|
<div class="relative">
|
||||||
Price
|
<button onclick="toggleDropdown('price-sort-dropdown')" class="bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 capitalize">
|
||||||
<span class="inline-flex flex-col items-center justify-center ml-1.5">
|
<span>Price</span>
|
||||||
<img alt="Sort price up" class="h-2 w-2" src="assets/svg/icon_price_up.svg">
|
<svg class="fill-current h-4 w-4 ml-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
|
||||||
<img alt="Sort price down" class="h-2 w-2" src="assets/svg/icon_price_down.svg">
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
|
<!-- Dropdown content for Price Sort -->
|
||||||
|
<div id="price-sort-dropdown" class="absolute z-10 mt-1 right-0 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 200px;">
|
||||||
|
<div class="py-1 px-2">
|
||||||
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Price: High to Low</a>
|
||||||
|
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Price: Low to High</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- Closing main flex container for filters and sorting -->
|
</div> <!-- Closing main flex container for filters and sorting -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user