style: Add font-heading and text-xl to filter buttons

This commit is contained in:
Kerby Martino (aider) committed 2025-05-11 15:13:54 +08:00
1 parent 721f28522b
commit eab65b9abc
1 file changed
+18 -18
+18 -18
View File
@@ -4,7 +4,7 @@
<!-- Mobile Filter Trigger -->
<div class="sm:hidden flex justify-between items-center">
<span class="text-base font-semibold text-gray-800">Filters & Sort</span>
<button id="open-mobile-filters-btn" class="bg-indigo-700 text-white font-semibold py-2 px-4 rounded-lg text-sm inline-flex items-center">
<button id="open-mobile-filters-btn" class="bg-indigo-700 text-white font-semibold py-2 px-4 rounded-lg text-sm inline-flex items-center font-heading text-xl">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clip-rule="evenodd" />
</svg>
@@ -18,7 +18,7 @@
<div class="flex flex-wrap gap-4 items-center">
<!-- Geolocation Filter -->
<div class="relative">
<button onclick="toggleDropdown('location-filter-dropdown')" class="w-full 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">
<button onclick="toggleDropdown('location-filter-dropdown')" class="w-full 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 font-heading text-xl">
<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>
@@ -50,7 +50,7 @@
<!-- Availability Filter -->
<div class="relative">
<button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full 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">
<button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full 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 font-heading text-xl">
<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>
@@ -74,7 +74,7 @@
<!-- Rates Filter -->
<div class="relative">
<button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full 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">
<button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full 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 font-heading text-xl">
<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>
@@ -92,7 +92,7 @@
<!-- Type of Spaces Filter -->
<div class="relative">
<button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full 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">
<button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full 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 font-heading text-xl">
<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>
@@ -125,7 +125,7 @@
<!-- Pricing Range Filter -->
<div class="relative">
<button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full 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">
<button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full 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 font-heading text-xl">
<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>
@@ -165,14 +165,14 @@
<!-- Sorting Group -->
<div class="flex gap-4 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">
<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 font-heading text-xl">
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">
<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 font-heading text-xl">
Newest
</button>
<div class="relative">
<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">
<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 font-heading text-xl">
<span>Price</span>
<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>
</button>
@@ -194,7 +194,7 @@
<div class="flex items-center justify-between p-4 border-b border-gray-200">
<div class="w-8 h-1 bg-gray-300 rounded-full mx-auto absolute top-2 left-1/2 -translate-x-1/2"></div> <!-- Drag handle -->
<h3 class="text-lg font-semibold text-gray-800 flex-1 text-center">Filters & Sort</h3>
<button id="close-mobile-filters-btn" class="text-gray-500 hover:text-gray-700 p-1 rounded-full hover:bg-gray-100">
<button id="close-mobile-filters-btn" class="text-gray-500 hover:text-gray-700 p-1 rounded-full hover:bg-gray-100 font-heading text-xl">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
@@ -204,7 +204,7 @@
<div class="overflow-y-auto p-4 space-y-4 flex-1">
<!-- Location Filter Accordion -->
<div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md">
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-xl">
<span>Location</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" 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" clip-rule="evenodd" />
@@ -222,7 +222,7 @@
<!-- Availability Filter Accordion -->
<div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md">
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-xl">
<span>Availability</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" 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" clip-rule="evenodd" />
@@ -237,7 +237,7 @@
<!-- Rates Filter Accordion -->
<div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md">
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-xl">
<span>Rates</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" 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" clip-rule="evenodd" />
@@ -254,7 +254,7 @@
<!-- Space Type Filter Accordion -->
<div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md">
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-xl">
<span>Space Type</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" 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" clip-rule="evenodd" />
@@ -273,7 +273,7 @@
<!-- Price Range Filter Accordion -->
<div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md">
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-xl">
<span>Price Range</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" 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" clip-rule="evenodd" />
@@ -313,7 +313,7 @@
<!-- Sort By Accordion -->
<div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md">
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-xl">
<span>Sort By</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" 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" clip-rule="evenodd" />
@@ -329,8 +329,8 @@
</div>
<!-- Drawer Footer -->
<div class="p-4 border-t border-gray-200 flex justify-between items-center sticky bottom-0 bg-white">
<button id="reset-mobile-filters-btn" class="text-gray-700 hover:text-indigo-700 font-semibold py-2 px-4 rounded-lg text-sm border border-gray-300 hover:border-indigo-600">Clear All</button>
<button id="apply-mobile-filters-btn" class="bg-indigo-700 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg text-sm">Apply Filters</button>
<button id="reset-mobile-filters-btn" class="text-gray-700 hover:text-indigo-700 font-semibold py-2 px-4 rounded-lg text-sm border border-gray-300 hover:border-indigo-600 font-heading text-xl">Clear All</button>
<button id="apply-mobile-filters-btn" class="bg-indigo-700 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg text-sm font-heading text-xl">Apply Filters</button>
</div>
</div>
<!-- Overlay for mobile drawer -->