style: Adjust green color palette and inquiry tab styles

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-13 01:02:59 +08:00
1 parent ae53e02bea
commit 49ad92cba2
2 files changed
+6 -18

No files matched your search

+6 -6
View File
@@ -7,7 +7,7 @@
<h2 class="text-lg font-medium text-gray-900 font-heading" id="inquiry-modal-title">
Inquire this Listing
</h2>
<button type="button" onclick="toggleNavbar('inquiry-modal'); if (typeof toggleOverlay === 'function') toggleOverlay('collapse-overlay');" class="bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">
<button type="button" onclick="toggleNavbar('inquiry-modal'); if (typeof toggleOverlay === 'function') toggleOverlay('collapse-overlay');" class="bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-300">
<span class="sr-only">Close</span>
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
@@ -44,7 +44,7 @@
<!-- Tab Navigation -->
<div class="border-b border-gray-200 mb-4">
<nav class="-mb-px flex space-x-4" aria-label="Tabs">
<button onclick="switchInquiryTab('details')" id="tab-details" class="inquiry-tab-button whitespace-nowrap py-3 px-2 border-b-2 font-medium text-sm text-green-900 border-green-500 inline-flex items-center" aria-current="page">
<button onclick="switchInquiryTab('details')" id="tab-details" class="inquiry-tab-button whitespace-nowrap py-3 px-2 border-b-2 font-medium text-sm text-green-900 border-green-900 inline-flex items-center" aria-current="page">
<img src="assets/svg/icon_action.svg" class="w-4 h-4" alt="Details">
<span class="ml-2">Details</span>
</button>
@@ -117,7 +117,7 @@
<div id="mapbox-map-container-inquiry" class="h-64 sm:h-80 w-full bg-gray-200 rounded-base mb-4 border border-gray-300 flex items-center justify-center text-gray-500 p-4 text-center">
Map will load here. Ensure Mapbox GL JS is initialized and targets this container.
</div>
<a href="https://www.google.com/maps/dir/?api=1&destination=Incub8+space,+Centennial+Road,+Brgy.+Batong+Dalig,+Kawit,+Cavite" target="_blank" rel="noopener noreferrer" class="w-full bg-green-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-center border-2 border-transparent hover:border-green-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 font-heading">
<a href="https://www.google.com/maps/dir/?api=1&destination=Incub8+space,+Centennial+Road,+Brgy.+Batong+Dalig,+Kawit,+Cavite" target="_blank" rel="noopener noreferrer" class="w-full bg-green-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-center border-2 border-transparent hover:border-green-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-300 font-heading">
Get Directions
</a>
<p class="text-sm mt-2 text-gray-600 font-thin text-center">
@@ -150,7 +150,7 @@
<p class="text-sm text-red-500 mt-1 hidden">Invalid Message</p>
</div>
<div class="pt-2">
<button type="submit" class="w-full bg-green-900 text-gray-100 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-center border-2 border-transparent hover:border-green-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 font-heading">
<button type="submit" class="w-full bg-green-900 text-gray-100 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-center border-2 border-transparent hover:border-green-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-300 font-heading">
<img src="assets/svg/icon_spinner.svg" class="h-4 animate-spin mr-2 hidden" alt="Loading"> Send Inquiry
</button>
<p class="text-sm mt-2 text-gray-600 font-thin text-center">
@@ -170,14 +170,14 @@
const tabButtons = document.querySelectorAll('.inquiry-tab-button');
tabButtons.forEach(button => {
button.classList.remove('text-green-900', 'border-green-500');
button.classList.remove('text-green-900', 'border-green-300');
button.classList.add('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300', 'border-transparent');
button.removeAttribute('aria-current');
});
document.getElementById(tabId + '-tab-content').classList.remove('hidden');
const activeButton = document.getElementById('tab-' + tabId);
activeButton.classList.add('text-green-900', 'border-green-500');
activeButton.classList.add('text-green-900', 'border-green-300');
activeButton.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300', 'border-transparent');
activeButton.setAttribute('aria-current', 'page');