feat: Add filter section for geolocation, availability, rates, etc.
This commit is contained in:
1 parent
cf4fa3849c
commit
7dbc74d95f
1 file changed
+114
-1
+114
-1
@@ -1,3 +1,116 @@
|
|||||||
|
<!-- Filter Section -->
|
||||||
|
<section class="bg-white py-4 px-4 md:px-10 lg:px-12 xl:pl-24 xl:pr-20 xxl:px-32 border-b border-gray-200">
|
||||||
|
<div class="container mx-auto">
|
||||||
|
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4 items-center">
|
||||||
|
<!-- Geolocation Filter -->
|
||||||
|
<div class="relative">
|
||||||
|
<button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between">
|
||||||
|
<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 class="absolute z-10 mt-1 w-full rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5">
|
||||||
|
<div class="py-2 px-3">
|
||||||
|
<button class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Nearby</button>
|
||||||
|
<button class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Anywhere</button>
|
||||||
|
<input type="text" placeholder="Search city..." class="mt-2 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) -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Availability Filter -->
|
||||||
|
<div class="relative">
|
||||||
|
<button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between">
|
||||||
|
<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 class="absolute z-10 mt-1 w-full rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5">
|
||||||
|
<div class="py-2 px-3">
|
||||||
|
<button class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Open Now</button>
|
||||||
|
<button class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Open Always</button>
|
||||||
|
<div class="mt-2">
|
||||||
|
<label for="availability-future" class="block text-sm font-medium text-gray-700 mb-1">In the future:</label>
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<!-- Rates Filter -->
|
||||||
|
<div class="relative">
|
||||||
|
<button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between">
|
||||||
|
<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 class="absolute z-10 mt-1 w-full rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5">
|
||||||
|
<div class="py-1">
|
||||||
|
<button class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Hourly</button>
|
||||||
|
<button class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Daily</button>
|
||||||
|
<button class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Weekly</button>
|
||||||
|
<button class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Monthly</button>
|
||||||
|
<button class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Annually</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Type of Spaces Filter -->
|
||||||
|
<div class="relative">
|
||||||
|
<button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between">
|
||||||
|
<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 class="absolute z-10 mt-1 w-full rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5">
|
||||||
|
<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 class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between">
|
||||||
|
<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 class="absolute z-10 mt-1 w-full rounded-base bg-white shadow-lg hidden p-4 ring-1 ring-black ring-opacity-5">
|
||||||
|
<label for="price-range" class="block text-sm font-medium text-gray-700">Price:</label>
|
||||||
|
<input type="range" id="price-range" name="price-range" min="0" max="1000" step="10" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-indigo-700 mt-1 mb-1">
|
||||||
|
<div class="flex justify-between text-xs text-gray-500">
|
||||||
|
<span id="price-min-display">$0</span>
|
||||||
|
<span id="price-max-display">$1000</span>
|
||||||
|
</div>
|
||||||
|
<!-- Note: This is a single-thumb slider. A dual-thumb slider for a min-max range requires custom JS/CSS or a library. -->
|
||||||
|
<!-- JS would be needed to update price-min-display/price-max-display dynamically -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<!--Submenu section-->
|
<!--Submenu section-->
|
||||||
<section class="h-9 md:h-13 xl:h-12 border-b border-gray-200 bg-gray-100 shadow-md">
|
<section class="h-9 md:h-13 xl:h-12 border-b border-gray-200 bg-gray-100 shadow-md">
|
||||||
<div class="container mx-auto pt-1 pb-2 px-4 md:pt-5 md:pb-3 sm:px-16 md:px-10 lg:px-12 xl:pt-5 xl:pb-5 xl:pl-24 xl:pr-20 xxl:px-32">
|
<div class="container mx-auto pt-1 pb-2 px-4 md:pt-5 md:pb-3 sm:px-16 md:px-10 lg:px-12 xl:pt-5 xl:pb-5 xl:pl-24 xl:pr-20 xxl:px-32">
|
||||||
@@ -37,4 +150,4 @@
|
|||||||
|
|
||||||
{% include report_modal.liquid %}
|
{% include report_modal.liquid %}
|
||||||
|
|
||||||
{% include inquiry_modal.liquid %}
|
{% include inquiry_modal.liquid %}
|
||||||
Reference in new issue
Block a user