style: Adjust green color palette and inquiry tab styles
This commit is contained in:
1 parent
ae53e02bea
commit
49ad92cba2
2 files changed
+6
-18
No files matched your search
@@ -7,7 +7,7 @@
|
|||||||
<h2 class="text-lg font-medium text-gray-900 font-heading" id="inquiry-modal-title">
|
<h2 class="text-lg font-medium text-gray-900 font-heading" id="inquiry-modal-title">
|
||||||
Inquire this Listing
|
Inquire this Listing
|
||||||
</h2>
|
</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>
|
<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">
|
<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" />
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<!-- Tab Navigation -->
|
<!-- Tab Navigation -->
|
||||||
<div class="border-b border-gray-200 mb-4">
|
<div class="border-b border-gray-200 mb-4">
|
||||||
<nav class="-mb-px flex space-x-4" aria-label="Tabs">
|
<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">
|
<img src="assets/svg/icon_action.svg" class="w-4 h-4" alt="Details">
|
||||||
<span class="ml-2">Details</span>
|
<span class="ml-2">Details</span>
|
||||||
</button>
|
</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">
|
<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.
|
Map will load here. Ensure Mapbox GL JS is initialized and targets this container.
|
||||||
</div>
|
</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
|
Get Directions
|
||||||
</a>
|
</a>
|
||||||
<p class="text-sm mt-2 text-gray-600 font-thin text-center">
|
<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>
|
<p class="text-sm text-red-500 mt-1 hidden">Invalid Message</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pt-2">
|
<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
|
<img src="assets/svg/icon_spinner.svg" class="h-4 animate-spin mr-2 hidden" alt="Loading"> Send Inquiry
|
||||||
</button>
|
</button>
|
||||||
<p class="text-sm mt-2 text-gray-600 font-thin text-center">
|
<p class="text-sm mt-2 text-gray-600 font-thin text-center">
|
||||||
@@ -170,14 +170,14 @@
|
|||||||
|
|
||||||
const tabButtons = document.querySelectorAll('.inquiry-tab-button');
|
const tabButtons = document.querySelectorAll('.inquiry-tab-button');
|
||||||
tabButtons.forEach(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.classList.add('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300', 'border-transparent');
|
||||||
button.removeAttribute('aria-current');
|
button.removeAttribute('aria-current');
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById(tabId + '-tab-content').classList.remove('hidden');
|
document.getElementById(tabId + '-tab-content').classList.remove('hidden');
|
||||||
const activeButton = document.getElementById('tab-' + tabId);
|
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.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300', 'border-transparent');
|
||||||
activeButton.setAttribute('aria-current', 'page');
|
activeButton.setAttribute('aria-current', 'page');
|
||||||
|
|
||||||
|
|||||||
@@ -57,20 +57,8 @@ module.exports = {
|
|||||||
'100': '#F4FFE0', // Very light
|
'100': '#F4FFE0', // Very light
|
||||||
'200': '#E2FFAD', // Light
|
'200': '#E2FFAD', // Light
|
||||||
'300': '#CDFF71', // Base color
|
'300': '#CDFF71', // Base color
|
||||||
'400': '#B2F053', // Slightly darker
|
|
||||||
'500': '#93D532', // Medium green
|
|
||||||
'600': '#76B826', // Saturated mid-tone
|
|
||||||
'700': '#5C9C1F', // Darker green
|
|
||||||
'800': '#3A5116', // Deep, muted
|
|
||||||
'900': '#121A0A', // Near-black green
|
'900': '#121A0A', // Near-black green
|
||||||
},
|
},
|
||||||
indigo: {
|
|
||||||
'600': '#a08fcd',
|
|
||||||
'700': '#7643ea',
|
|
||||||
'750': '#372c4f',
|
|
||||||
'800': '#271d3e',
|
|
||||||
'900': '#1E112C',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
borderRadius: {
|
borderRadius: {
|
||||||
|
|||||||
Reference in new issue
Block a user