feat: Implement advanced filtering and sorting options for listings
This commit is contained in:
1 parent
f70c6ca267
commit
09f105d332
2 files changed
+163
-163
No files matched your search
@@ -0,0 +1,161 @@
|
||||
<!-- Filter Section -->
|
||||
<section class="bg-white py-4 border-b border-gray-200 text-sm">
|
||||
<div class="container mx-auto px-4 sm:px-16 md:px-10 lg:px-12 xl:px-24 xxl:px-32">
|
||||
<div class="flex flex-wrap justify-between items-center gap-4">
|
||||
<!-- Filters Group -->
|
||||
<div class="flex flex-wrap gap-4 items-center">
|
||||
<!-- Geolocation Filter -->
|
||||
<div class="relative">
|
||||
<button onclick="toggleDropdown('location-filter-dropdown')" class="w-full 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">
|
||||
<span>Location</span>
|
||||
<svg class="fill-current h-4 w-4" 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>
|
||||
</button>
|
||||
<!-- Dropdown content for Geolocation (initially hidden, toggle with JS) -->
|
||||
<div id="location-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: 300px;">
|
||||
<div class="py-3">
|
||||
<div class="px-3 pb-2">
|
||||
<input type="text" placeholder="Type something here..." 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">
|
||||
</div>
|
||||
<div class="max-h-60 overflow-y-auto">
|
||||
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">Geolocation</p>
|
||||
<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-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Anywhere</a>
|
||||
</div>
|
||||
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">City</p>
|
||||
<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">
|
||||
<!-- 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-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-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Quezon City</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Availability Filter -->
|
||||
<div class="relative">
|
||||
<button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full 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">
|
||||
<span>Availability</span>
|
||||
<svg class="fill-current h-4 w-4" 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>
|
||||
</button>
|
||||
<!-- Dropdown content for Availability (initially hidden, toggle with JS) -->
|
||||
<div id="availability-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: 300px;">
|
||||
<div class="py-3">
|
||||
<div class="max-h-60 overflow-y-auto">
|
||||
<p class="pl-3 pt-1 font-semibold text-gray-700 text-sm">Availability</p>
|
||||
<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-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open Always</a>
|
||||
</div>
|
||||
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">Future Availability</p>
|
||||
<div class="px-3 pt-1">
|
||||
<input type="text" id="availability-future" placeholder="e.g., 1 hour from now" 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">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Rates Filter -->
|
||||
<div class="relative">
|
||||
<button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full 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">
|
||||
<span>Rates</span>
|
||||
<svg class="fill-current h-4 w-4" 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>
|
||||
</button>
|
||||
<!-- 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 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-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-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-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-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Annually</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Type of Spaces Filter -->
|
||||
<div class="relative">
|
||||
<button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full 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">
|
||||
<span>Space Type</span>
|
||||
<svg class="fill-current h-4 w-4" 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>
|
||||
</button>
|
||||
<!-- Dropdown content for Type of Spaces (initially hidden, toggle with JS) -->
|
||||
<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">
|
||||
<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">
|
||||
<span class="ml-2">Coworking</span>
|
||||
</label>
|
||||
<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">
|
||||
<span class="ml-2">Room</span>
|
||||
</label>
|
||||
<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">
|
||||
<span class="ml-2">Conference</span>
|
||||
</label>
|
||||
<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">
|
||||
<span class="ml-2">Event Space</span>
|
||||
</label>
|
||||
<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">
|
||||
<span class="ml-2">Virtual Office</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Pricing Range Filter -->
|
||||
<div class="relative">
|
||||
<button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full 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">
|
||||
<span>Price Range</span>
|
||||
<svg class="fill-current h-4 w-4" 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>
|
||||
</button>
|
||||
<!-- Dropdown content for Pricing Range (initially hidden, toggle with JS) -->
|
||||
<div id="pricerange-filter-dropdown" class="absolute z-10 mt-1 rounded-base bg-white shadow-lg hidden p-4 ring-1 ring-black ring-opacity-5" style="min-width: 300px;">
|
||||
<div id="slider-distance" slider>
|
||||
<div>
|
||||
<div class="border border-gray-500" inverse-left style="width:10%;"></div>
|
||||
<div class="border border-gray-500" inverse-right style="width:30%;"></div>
|
||||
<div range style="left:10%;right:30%;"></div>
|
||||
<span style="left:10%;" thumb></span>
|
||||
<span style="left:70%;" thumb></span>
|
||||
<div sign style="left:10%;">
|
||||
<span id="lower-value">$100</span>
|
||||
</div>
|
||||
<div sign style="left:70%;">
|
||||
<span id="upper-value">$700</span>
|
||||
</div>
|
||||
</div>
|
||||
<input max="1000" min="0" oninput="this.value=Math.min(this.value,this.parentNode.childNodes[5].value-1); var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min); var children = this.parentNode.childNodes[1].childNodes; children[1].style.width=value+'%'; children[5].style.left=value+'%'; children[7].style.left=value+'%'; children[11].style.left=value+'%'; children[11].childNodes[1].innerHTML='$'+this.value;" step="1" tabindex="0" type="range" value="100"/>
|
||||
<input max="1000" min="0" oninput="this.value=Math.max(this.value,this.parentNode.childNodes[3].value-(-1)); var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min); var children = this.parentNode.childNodes[1].childNodes; children[3].style.width=(100-value)+'%'; children[5].style.right=(100-value)+'%'; children[9].style.left=value+'%'; children[13].style.left=value+'%'; children[13].childNodes[1].innerHTML='$'+this.value;" step="1" tabindex="0" type="range" value="700"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- Closing Filters Group div -->
|
||||
|
||||
<!-- Sorting Group -->
|
||||
<div class="flex gap-4 md:gap-8 items-center">
|
||||
<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-indigo-700 hover:border-indigo-700">
|
||||
Relevance
|
||||
</button>
|
||||
<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
|
||||
</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">
|
||||
Price
|
||||
<span class="inline-flex flex-col items-center justify-center ml-1.5">
|
||||
<img alt="Sort price up" class="h-2 w-2" src="assets/svg/icon_price_up.svg">
|
||||
<img alt="Sort price down" class="h-2 w-2" src="assets/svg/icon_price_down.svg">
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div> <!-- Closing main flex container for filters and sorting -->
|
||||
</div>
|
||||
</section>
|
||||
+2
-163
@@ -1,170 +1,9 @@
|
||||
<!-- Filter Section -->
|
||||
<section class="bg-white py-4 border-b border-gray-200 text-sm">
|
||||
<div class="container mx-auto px-4 sm:px-16 md:px-10 lg:px-12 xl:px-24 xxl:px-32">
|
||||
<div class="flex flex-wrap justify-between items-center gap-4">
|
||||
<!-- Filters Group -->
|
||||
<div class="flex flex-wrap gap-4 items-center">
|
||||
<!-- Geolocation Filter -->
|
||||
<div class="relative">
|
||||
<button onclick="toggleDropdown('location-filter-dropdown')" class="w-full 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">
|
||||
<span>Location</span>
|
||||
<svg class="fill-current h-4 w-4" 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>
|
||||
</button>
|
||||
<!-- Dropdown content for Geolocation (initially hidden, toggle with JS) -->
|
||||
<div id="location-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: 300px;">
|
||||
<div class="py-3">
|
||||
<div class="px-3 pb-2">
|
||||
<input type="text" placeholder="Type something here..." 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">
|
||||
</div>
|
||||
<div class="max-h-60 overflow-y-auto">
|
||||
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">Geolocation</p>
|
||||
<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-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Anywhere</a>
|
||||
</div>
|
||||
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">City</p>
|
||||
<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">
|
||||
<!-- 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-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-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Quezon City</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Availability Filter -->
|
||||
<div class="relative">
|
||||
<button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full 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">
|
||||
<span>Availability</span>
|
||||
<svg class="fill-current h-4 w-4" 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>
|
||||
</button>
|
||||
<!-- Dropdown content for Availability (initially hidden, toggle with JS) -->
|
||||
<div id="availability-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: 300px;">
|
||||
<div class="py-3">
|
||||
<div class="max-h-60 overflow-y-auto">
|
||||
<p class="pl-3 pt-1 font-semibold text-gray-700 text-sm">Availability</p>
|
||||
<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-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open Always</a>
|
||||
</div>
|
||||
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm">Future Availability</p>
|
||||
<div class="px-3 pt-1">
|
||||
<input type="text" id="availability-future" placeholder="e.g., 1 hour from now" 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">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Rates Filter -->
|
||||
<div class="relative">
|
||||
<button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full 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">
|
||||
<span>Rates</span>
|
||||
<svg class="fill-current h-4 w-4" 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>
|
||||
</button>
|
||||
<!-- 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 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-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-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-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-green-300 hover:text-white rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Annually</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Type of Spaces Filter -->
|
||||
<div class="relative">
|
||||
<button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full 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">
|
||||
<span>Space Type</span>
|
||||
<svg class="fill-current h-4 w-4" 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>
|
||||
</button>
|
||||
<!-- Dropdown content for Type of Spaces (initially hidden, toggle with JS) -->
|
||||
<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">
|
||||
<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">
|
||||
<span class="ml-2">Coworking</span>
|
||||
</label>
|
||||
<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">
|
||||
<span class="ml-2">Room</span>
|
||||
</label>
|
||||
<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">
|
||||
<span class="ml-2">Conference</span>
|
||||
</label>
|
||||
<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">
|
||||
<span class="ml-2">Event Space</span>
|
||||
</label>
|
||||
<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">
|
||||
<span class="ml-2">Virtual Office</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Pricing Range Filter -->
|
||||
<div class="relative">
|
||||
<button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full 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">
|
||||
<span>Price Range</span>
|
||||
<svg class="fill-current h-4 w-4" 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>
|
||||
</button>
|
||||
<!-- Dropdown content for Pricing Range (initially hidden, toggle with JS) -->
|
||||
<div id="pricerange-filter-dropdown" class="absolute z-10 mt-1 rounded-base bg-white shadow-lg hidden p-4 ring-1 ring-black ring-opacity-5" style="min-width: 300px;">
|
||||
<div id="slider-distance" slider>
|
||||
<div>
|
||||
<div class="border border-gray-500" inverse-left style="width:10%;"></div>
|
||||
<div class="border border-gray-500" inverse-right style="width:30%;"></div>
|
||||
<div range style="left:10%;right:30%;"></div>
|
||||
<span style="left:10%;" thumb></span>
|
||||
<span style="left:70%;" thumb></span>
|
||||
<div sign style="left:10%;">
|
||||
<span id="lower-value">$100</span>
|
||||
</div>
|
||||
<div sign style="left:70%;">
|
||||
<span id="upper-value">$700</span>
|
||||
</div>
|
||||
</div>
|
||||
<input max="1000" min="0" oninput="this.value=Math.min(this.value,this.parentNode.childNodes[5].value-1); var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min); var children = this.parentNode.childNodes[1].childNodes; children[1].style.width=value+'%'; children[5].style.left=value+'%'; children[7].style.left=value+'%'; children[11].style.left=value+'%'; children[11].childNodes[1].innerHTML='$'+this.value;" step="1" tabindex="0" type="range" value="100"/>
|
||||
<input max="1000" min="0" oninput="this.value=Math.max(this.value,this.parentNode.childNodes[3].value-(-1)); var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min); var children = this.parentNode.childNodes[1].childNodes; children[3].style.width=(100-value)+'%'; children[5].style.right=(100-value)+'%'; children[9].style.left=value+'%'; children[13].style.left=value+'%'; children[13].childNodes[1].innerHTML='$'+this.value;" step="1" tabindex="0" type="range" value="700"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- Closing Filters Group div -->
|
||||
|
||||
<!-- Sorting Group -->
|
||||
<div class="flex gap-4 md:gap-8 items-center">
|
||||
<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-indigo-700 hover:border-indigo-700">
|
||||
Relevance
|
||||
</button>
|
||||
<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
|
||||
</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">
|
||||
Price
|
||||
<span class="inline-flex flex-col items-center justify-center ml-1.5">
|
||||
<img alt="Sort price up" class="h-2 w-2" src="assets/svg/icon_price_up.svg">
|
||||
<img alt="Sort price down" class="h-2 w-2" src="assets/svg/icon_price_down.svg">
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div> <!-- Closing main flex container for filters and sorting -->
|
||||
</div>
|
||||
</section>
|
||||
<!--end Submenu section (removed)-->
|
||||
|
||||
{% include sidebar_inquiry.liquid %}
|
||||
|
||||
{% include sidebar_post.liquid %}
|
||||
|
||||
{% include nav_filter.liquid %}
|
||||
|
||||
<!-- card section -->
|
||||
<section class="bg-gray-100 xl:pt-4 pb-8">
|
||||
<div class="container mx-auto mt-4 sm:mt-5 md:mt-4 px-4 sm:px-16 md:px-10 lg:px-12 xl:pl-23 xl:pr-19 xxl:px-32">
|
||||
|
||||
Reference in new issue
Block a user