style: update color scheme to green
This commit is contained in:
1 parent
5ac816578c
commit
e9db48d98c
10 files changed
+69
-69
No files matched your search
@@ -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-indigo-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-500">
|
||||
<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-indigo-600 border-indigo-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-500 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-indigo-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-500 font-heading">
|
||||
Get Directions
|
||||
</a>
|
||||
<p class="text-sm mt-2 text-gray-600 font-thin text-center">
|
||||
@@ -129,28 +129,28 @@
|
||||
<form class="space-y-3">
|
||||
<div>
|
||||
<label for="inquiry-full-name" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Full Name</label>
|
||||
<input type="text" id="inquiry-full-name" placeholder="Full Name" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" required>
|
||||
<input type="text" id="inquiry-full-name" placeholder="Full Name" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm" required>
|
||||
<p class="text-sm text-red-500 mt-1 hidden">Invalid Name</p>
|
||||
</div>
|
||||
<div class="flex gap-3">
|
||||
<div class="w-1/2">
|
||||
<label for="inquiry-contact-num" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Contact #</label>
|
||||
<input type="tel" id="inquiry-contact-num" placeholder="Contact #" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" required>
|
||||
<input type="tel" id="inquiry-contact-num" placeholder="Contact #" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm" required>
|
||||
<p class="text-sm text-red-500 mt-1 hidden">Invalid Phone Number</p>
|
||||
</div>
|
||||
<div class="w-1/2">
|
||||
<label for="inquiry-email" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Email Address</label>
|
||||
<input type="email" id="inquiry-email" placeholder="Email Address" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" required>
|
||||
<input type="email" id="inquiry-email" placeholder="Email Address" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm" required>
|
||||
<p class="text-sm text-red-500 mt-1 hidden">Invalid Email Address</p>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="inquiry-message" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Optional Message</label>
|
||||
<textarea id="inquiry-message" rows="3" placeholder="Optional Message" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"></textarea>
|
||||
<textarea id="inquiry-message" rows="3" placeholder="Optional Message" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm"></textarea>
|
||||
<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-indigo-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-500 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-indigo-600', 'border-indigo-500');
|
||||
button.classList.remove('text-green-900', 'border-green-500');
|
||||
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-indigo-600', 'border-indigo-500');
|
||||
activeButton.classList.add('text-green-900', 'border-green-500');
|
||||
activeButton.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300', 'border-transparent');
|
||||
activeButton.setAttribute('aria-current', 'page');
|
||||
|
||||
|
||||
Reference in new issue
Block a user