style: update color scheme to green

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-12 19:36:11 +08:00
1 parent 91d269995c
commit de689495a7
1 file changed
+32 -32
+32 -32
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 font-heading">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 font-heading text-base">
<button id="open-mobile-filters-btn" class="bg-green-300 text-white font-semibold py-2 px-4 rounded-lg text-sm inline-flex items-center font-heading text-base">
<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 font-heading text-base">
<button onclick="toggleDropdown('location-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading text-base">
<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>
@@ -26,7 +26,7 @@
<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">
<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-green-300 focus:border-green-300">
</div>
<div class="max-h-60 overflow-y-auto">
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm font-heading">Geolocation</p>
@@ -36,7 +36,7 @@
</div>
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm font-heading">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">
<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-green-300 focus:border-green-300">
<!-- 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-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-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Makati</a>
@@ -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 font-heading text-base">
<button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading text-base">
<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>
@@ -65,7 +65,7 @@
</div>
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm font-heading">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">
<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-green-300 focus:border-green-300">
</div>
</div>
</div>
@@ -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 font-heading text-base">
<button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading text-base">
<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 font-heading text-base">
<button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading text-base">
<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>
@@ -100,23 +100,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 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="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-indigo-700 checked:bg-indigo-700 checked:border-indigo-700">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<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="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-indigo-700 checked:bg-indigo-700 checked:border-indigo-700">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<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="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-indigo-700 checked:bg-indigo-700 checked:border-indigo-700">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<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="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-indigo-700 checked:bg-indigo-700 checked:border-indigo-700">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<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="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-indigo-700 checked:bg-indigo-700 checked:border-indigo-700">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<span class="ml-2">Virtual Office</span>
</label>
</div>
@@ -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 font-heading text-base">
<button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading text-base">
<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>
@@ -135,9 +135,9 @@
<div class="relative h-4 flex items-center my-3">
<div class="h-1 bg-gray-300" inverse-left style="width:10%;"></div>
<div class="h-1 bg-gray-300" inverse-right style="width:30%;"></div>
<div range class="h-1 bg-indigo-700" style="left:10%;right:30%;"></div>
<span class="block h-4 w-4 bg-indigo-700 rounded-full shadow" style="left:10%;" thumb></span>
<span class="block h-4 w-4 bg-indigo-700 rounded-full shadow" style="left:70%;" thumb></span>
<div range class="h-1 bg-green-300" style="left:10%;right:30%;"></div>
<span class="block h-4 w-4 bg-green-300 rounded-full shadow" style="left:10%;" thumb></span>
<span class="block h-4 w-4 bg-green-300 rounded-full shadow" style="left:70%;" thumb></span>
<div sign class="-mt-2 text-xs text-gray-700" style="left:10%;">
<span id="minSliderValueDisplay">$100</span>
</div>
@@ -153,10 +153,10 @@
step="1" tabindex="0" type="range" value="700"/>
</div>
<div class="flex justify-between items-center mt-8 space-x-3">
<input type="number" id="minPriceInput" value="100" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-indigo-700 focus:border-indigo-700"
<input type="number" id="minPriceInput" value="100" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"
oninput="var minSlider = document.getElementById('minRangeSlider'); var maxSlider = document.getElementById('maxRangeSlider'); var val = parseInt(this.value); if (isNaN(val)) { this.value = minSlider.value; return; } if (val >= parseInt(maxSlider.value)) val = parseInt(maxSlider.value) -1; if (val < parseInt(minSlider.min)) val = parseInt(minSlider.min); this.value = val; minSlider.value = val; minSlider.dispatchEvent(new Event('input'));">
<span class="text-gray-500 text-base">-</span>
<input type="number" id="maxPriceInput" value="700" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-indigo-700 focus:border-indigo-700"
<input type="number" id="maxPriceInput" value="700" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"
oninput="var minSlider = document.getElementById('minRangeSlider'); var maxSlider = document.getElementById('maxRangeSlider'); var val = parseInt(this.value); if (isNaN(val)) { this.value = maxSlider.value; return; } if (val <= parseInt(minSlider.value)) val = parseInt(minSlider.value) + 1; if (val > parseInt(maxSlider.max)) val = parseInt(maxSlider.max); this.value = val; maxSlider.value = val; maxSlider.dispatchEvent(new Event('input'));">
</div>
</div>
@@ -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 font-heading text-base">
<button class="bg-gray-100 text-green-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border-2 border-green-300 hover:border-green-300 font-heading text-base">
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 font-heading text-base">
<button class="bg-gray-100 text-green-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border-2 border-transparent hover:border-green-300 font-heading text-base">
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 font-heading text-base">
<button onclick="toggleDropdown('price-sort-dropdown')" class="bg-gray-100 text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 capitalize font-heading text-base">
<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>
@@ -211,7 +211,7 @@
</svg>
</button>
<div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2">
<input type="text" placeholder="Type city or area..." 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="Type city or area..." class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300">
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Nearby</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Anywhere</a>
<!-- Placeholder for city list -->
@@ -231,7 +231,7 @@
<div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2">
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Open Now</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Open Always</a>
<input type="text" 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">
<input type="text" 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-green-300 focus:border-green-300">
</div>
</div>
@@ -264,7 +264,7 @@
{% assign space_types = "Coworking,Room,Conference,Event Space,Virtual Office" | split: "," %}
{% for type in space_types %}
<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="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-indigo-700 checked:bg-indigo-700 checked:border-indigo-700">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<span class="ml-2">{{ type }}</span>
</label>
{% endfor %}
@@ -284,9 +284,9 @@
<div class="relative h-4 flex items-center my-3">
<div class="h-1 bg-gray-300" inverse-left style="width:10%;"></div>
<div class="h-1 bg-gray-300" inverse-right style="width:30%;"></div>
<div range class="h-1 bg-indigo-700" style="left:10%;right:30%;"></div>
<span class="block h-4 w-4 bg-indigo-700 rounded-full shadow" style="left:10%;" thumb></span>
<span class="block h-4 w-4 bg-indigo-700 rounded-full shadow" style="left:70%;" thumb></span>
<div range class="h-1 bg-green-300" style="left:10%;right:30%;"></div>
<span class="block h-4 w-4 bg-green-300 rounded-full shadow" style="left:10%;" thumb></span>
<span class="block h-4 w-4 bg-green-300 rounded-full shadow" style="left:70%;" thumb></span>
<div sign class="-mt-2 text-xs text-gray-700" style="left:10%;">
<span id="minSliderValueDisplay-mobile">$100</span>
</div>
@@ -302,10 +302,10 @@
step="1" tabindex="0" type="range" value="700"/>
</div>
<div class="flex justify-between items-center mt-4 space-x-2">
<input type="number" id="minPriceInput-mobile" value="100" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-indigo-700 focus:border-indigo-700"
<input type="number" id="minPriceInput-mobile" value="100" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"
oninput="var minSlider = document.getElementById('minRangeSlider-mobile'); var maxSlider = document.getElementById('maxRangeSlider-mobile'); var val = parseInt(this.value); if (isNaN(val)) { this.value = minSlider.value; return; } if (val >= parseInt(maxSlider.value)) val = parseInt(maxSlider.value) -1; if (val < parseInt(minSlider.min)) val = parseInt(minSlider.min); this.value = val; minSlider.value = val; minSlider.dispatchEvent(new Event('input'));">
<span class="text-gray-500 text-sm">-</span>
<input type="number" id="maxPriceInput-mobile" value="700" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-indigo-700 focus:border-indigo-700"
<input type="number" id="maxPriceInput-mobile" value="700" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"
oninput="var minSlider = document.getElementById('minRangeSlider-mobile'); var maxSlider = document.getElementById('maxRangeSlider-mobile'); var val = parseInt(this.value); if (isNaN(val)) { this.value = maxSlider.value; return; } if (val <= parseInt(minSlider.value)) val = parseInt(minSlider.value) + 1; if (val > parseInt(maxSlider.max)) val = parseInt(maxSlider.max); this.value = val; maxSlider.value = val; maxSlider.dispatchEvent(new Event('input'));">
</div>
</div>
@@ -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 font-heading text-base">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-base">Apply Filters</button>
<button id="reset-mobile-filters-btn" class="text-gray-700 hover:text-green-300 font-semibold py-2 px-4 rounded-lg text-sm border border-gray-300 hover:border-indigo-600 font-heading text-base">Clear All</button>
<button id="apply-mobile-filters-btn" class="bg-green-300 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg text-sm font-heading text-base">Apply Filters</button>
</div>
</div>
<!-- Overlay for mobile drawer -->