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
@@ -38,8 +38,8 @@
|
||||
group-hover:opacity-100 group-hover:pointer-events-auto
|
||||
transition-opacity duration-150 ease-in-out {% if include.align_popup == 'right' %}right-0{% else %}left-0{% endif %}">
|
||||
<div class="flex justify-between items-stretch h-48 relative border-b border-gray-200">
|
||||
<div class="absolute top-1/2 left-0 right-0 h-px bg-indigo-300 -translate-y-1/2 z-0"></div>
|
||||
<div class="absolute top-1/2 left-0 right-0 h-8 bg-indigo-50 -translate-y-1/2 z-0 rounded-sm"></div>
|
||||
<div class="absolute top-1/2 left-0 right-0 h-px bg-green-300 -translate-y-1/2 z-0"></div>
|
||||
<div class="absolute top-1/2 left-0 right-0 h-8 bg-green-50 -translate-y-1/2 z-0 rounded-sm"></div>
|
||||
|
||||
<!-- Year Column -->
|
||||
<div class="flex-1 overflow-y-scroll relative z-10 snap-container" data-scroll-snap>
|
||||
@@ -83,7 +83,7 @@
|
||||
|
||||
<div class="mt-3 pt-2.5 border-gray-200 flex items-center space-x-2">
|
||||
<button type="button" 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 font-heading">Cancel</button>
|
||||
<button type="button" class="bg-green-900 text-sm text-gray-100 font-semibold py-2 px-4 rounded-lg flex-1 flex items-center justify-center border-2 border-transparent hover:border-green-300 focus:outline-none focus:ring-1 focus:ring-offset-1 focus:ring-indigo-500 font-heading">Set Date</button>
|
||||
<button type="button" class="bg-green-900 text-sm text-gray-100 font-semibold py-2 px-4 rounded-lg flex-1 flex items-center justify-center border-2 border-transparent hover:border-green-300 focus:outline-none focus:ring-1 focus:ring-offset-1 focus:ring-green-500 font-heading">Set Date</button>
|
||||
</div>
|
||||
<p class="text-xs text-gray-500 mt-2 text-center">This is a visual mock-up. Date selection is not functional.</p>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<p>{{ listing.price }}</p>
|
||||
</div>
|
||||
<img alt="" class="h-full w-full object-cover cursor-pointer rounded-tl-card rounded-tr-card" onclick="toggleSidebar('inquiry-modal');toggleOverlay('collapse-overlay')" src="{{ listing.image }}">
|
||||
<div class="absolute bottom-2 right-2 w-10 h-10 bg-green-900 rounded-full flex items-center justify-center hover:border-green-900 border-2 border-transparent cursor-pointer" title="Add to Favorites">
|
||||
<div class="absolute bottom-2 right-2 w-10 h-10 bg-green-900 rounded-full flex items-center justify-center cursor-pointer hover:border-green-300 hover:outline hover:outline-2 hover:outline-green-300" title="Add to Favorites">
|
||||
<img src="assets/svg/icon_like.svg" class="w-5 h-5" alt="Like">
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<!--inquiry alert modal-->
|
||||
<div class="h-full w-full flex justify-center items-center hidden" id="inquiry-alert-modal">
|
||||
<div class="z-40 absolute top-0">
|
||||
<div class="relative pt-10 px-8 mt-57 w-68 h-67 bg-indigo-750 item-center rounded-lg">
|
||||
<p class="text-lg text-center text-indigo-600 font-bold tracking-wider leading-normal break-words">Your
|
||||
<div class="relative pt-10 px-8 mt-57 w-68 h-67 bg-green-750 item-center rounded-lg">
|
||||
<p class="text-lg text-center text-green-900 font-bold tracking-wider leading-normal break-words">Your
|
||||
inquiry has been received. The operator will contact you very soon</p>
|
||||
<p class="flex justify-center">
|
||||
<svg class="mt-2 h-24 text-indigo-600" fill="none" stroke="currentColor"
|
||||
<svg class="mt-2 h-24 text-green-900" fill="none" stroke="currentColor"
|
||||
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" stroke-width="1"/>
|
||||
</svg>
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
<form action="/login" method="POST">
|
||||
<div class="mb-4">
|
||||
<label for="email" class="block text-gray-700">Email</label>
|
||||
<input type="email" id="email" name="email" class="w-full px-3 py-2 border border-gray-300 rounded-base focus:outline-none focus:ring-2 focus:ring-indigo-600 text-sm" placeholder="Enter your email" required>
|
||||
<input type="email" id="email" name="email" class="w-full px-3 py-2 border border-gray-300 rounded-base focus:outline-none focus:ring-2 focus:ring-green-900 text-sm" placeholder="Enter your email" required>
|
||||
</div>
|
||||
<div class="mb-6">
|
||||
<label for="password" class="block text-gray-700">Password</label>
|
||||
<input type="password" id="password" name="password" class="w-full px-3 py-2 border border-gray-300 rounded-base focus:outline-none focus:ring-2 focus:ring-indigo-600 text-sm" placeholder="Enter your password" required>
|
||||
<input type="password" id="password" name="password" class="w-full px-3 py-2 border border-gray-300 rounded-base focus:outline-none focus:ring-2 focus:ring-green-900 text-sm" placeholder="Enter your password" required>
|
||||
</div>
|
||||
<button type="submit" class="w-full bg-green-300 text-gray-100 font-heading text-base px-5 py-2 rounded-base hover:bg-gray-100 hover:text-green-900 focus:outline-none focus:ring-2 focus:ring-indigo-600">Login</button>
|
||||
<button type="submit" class="w-full bg-green-300 text-gray-100 font-heading text-base px-5 py-2 rounded-base hover:bg-gray-100 hover:text-green-900 focus:outline-none focus:ring-2 focus:ring-green-900">Login</button>
|
||||
</form>
|
||||
<p class="mt-4 text-center text-gray-600">Don't have an account? <a href="/signup" class="text-indigo-600 hover:underline">Sign up</a></p>
|
||||
<p class="mt-4 text-center text-gray-600">Don't have an account? <a href="/signup" class="text-green-900 hover:underline">Sign up</a></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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-green-300 text-green-900 font-semibold py-2 px-4 rounded-lg text-sm inline-flex items-center font-heading text-base hover:outline hover:outline-2 hover:outline-green-300">
|
||||
<button id="open-mobile-filters-btn" class="bg-green-300 text-green-900 font-semibold py-2 px-4 rounded-base text-sm inline-flex items-center font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">
|
||||
<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>
|
||||
@@ -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-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>
|
||||
<button id="reset-mobile-filters-btn" class="text-green-900 font-semibold py-2 px-4 rounded-lg text-sm border border-green-900 hover:border-green-900 font-heading text-base">Clear All</button>
|
||||
<button id="apply-mobile-filters-btn" class="bg-green-300 text-green-900 font-semibold py-2 px-6 rounded-base text-sm font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">Apply Filters</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Overlay for mobile drawer -->
|
||||
|
||||
+14
-14
@@ -29,7 +29,7 @@
|
||||
<div class="space-y-5">
|
||||
<div>
|
||||
<label for="photo" class="block text-sm font-medium text-gray-700 mb-1">Listing Photo</label>
|
||||
<input type="file" id="photo" name="photo" class="w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-green-300 hover:file:bg-indigo-100 border border-gray-400 rounded-sm cursor-pointer focus:outline-none focus:border-green-300" accept="image/*">
|
||||
<input type="file" id="photo" name="photo" class="w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-green-50 file:text-green-300 hover:file:bg-green-100 border border-gray-400 rounded-sm cursor-pointer focus:outline-none focus:border-green-300" accept="image/*">
|
||||
<p class="text-sm text-gray-500 mt-1">Upload one image for your listing (e.g., JPG, PNG).</p>
|
||||
</div>
|
||||
<div>
|
||||
@@ -53,7 +53,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-8 flex justify-end">
|
||||
<button type="button" class="next-step-btn bg-green-300 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 transition-colors">
|
||||
<button type="button" class="next-step-btn bg-green-300 hover:bg-green-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-opacity-50 transition-colors">
|
||||
Next <span aria-hidden="true">→</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -68,11 +68,11 @@
|
||||
<input type="text" id="location-search" name="location-search" placeholder="Type to search for a city or area..." class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm" autocomplete="off">
|
||||
<div id="location-dropdown" class="absolute z-20 mt-1 w-full rounded-md bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5 max-h-60 overflow-y-auto py-1">
|
||||
<!-- Example items, real implementation would populate this dynamically or use a service -->
|
||||
<a href="#" data-value="Manila, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-green-300 location-item">Manila, Philippines</a>
|
||||
<a href="#" data-value="Makati, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-green-300 location-item">Makati, Philippines</a>
|
||||
<a href="#" data-value="Quezon City, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-green-300 location-item">Quezon City, Philippines</a>
|
||||
<a href="#" data-value="Cebu City, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-green-300 location-item">Cebu City, Philippines</a>
|
||||
<a href="#" data-value="Taguig, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-green-300 location-item">Taguig, Philippines</a>
|
||||
<a href="#" data-value="Manila, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-300 location-item">Manila, Philippines</a>
|
||||
<a href="#" data-value="Makati, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-300 location-item">Makati, Philippines</a>
|
||||
<a href="#" data-value="Quezon City, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-300 location-item">Quezon City, Philippines</a>
|
||||
<a href="#" data-value="Cebu City, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-300 location-item">Cebu City, Philippines</a>
|
||||
<a href="#" data-value="Taguig, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-300 location-item">Taguig, Philippines</a>
|
||||
<p class="px-4 py-2 text-sm text-gray-500 no-results hidden">No locations found.</p>
|
||||
</div>
|
||||
<input type="hidden" id="selected-location" name="selected-location">
|
||||
@@ -90,7 +90,7 @@
|
||||
<button type="button" class="prev-step-btn bg-gray-200 hover:bg-gray-300 text-gray-700 font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-opacity-50 transition-colors">
|
||||
<span aria-hidden="true">←</span> Previous
|
||||
</button>
|
||||
<button type="button" class="next-step-btn bg-green-300 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 transition-colors">
|
||||
<button type="button" class="next-step-btn bg-green-300 hover:bg-green-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-opacity-50 transition-colors">
|
||||
Next <span aria-hidden="true">→</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -154,17 +154,17 @@
|
||||
class="sr-only peer day-specific-availability-toggle"
|
||||
data-day="{{ day_label | downcase }}"
|
||||
onchange="toggleDayTimeSelection('{{ day_label | downcase }}')">
|
||||
<div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-offset-2 peer-focus:ring-indigo-500 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600"></div>
|
||||
<div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-offset-2 peer-focus:ring-green-500 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-green-900"></div>
|
||||
</label>
|
||||
|
||||
<div id="time-selection-{{ day_label | downcase }}" class="day-specific-time-inputs mt-4 grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-3 hidden">
|
||||
<div>
|
||||
<label for="start-time-{{ day_label | downcase }}" class="block text-xs font-medium text-gray-700 mb-1">Open</label>
|
||||
<input type="time" id="start-time-{{ day_label | downcase }}" name="start_time_{{ day_label | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm bg-white">
|
||||
<input type="time" id="start-time-{{ day_label | downcase }}" name="start_time_{{ day_label | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-green-500 focus:border-green-500 sm:text-sm bg-white">
|
||||
</div>
|
||||
<div>
|
||||
<label for="end-time-{{ day_label | downcase }}" class="block text-xs font-medium text-gray-700 mb-1">Close</label>
|
||||
<input type="time" id="end-time-{{ day_label | downcase }}" name="end_time_{{ day_label | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm bg-white">
|
||||
<input type="time" id="end-time-{{ day_label | downcase }}" name="end_time_{{ day_label | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-green-500 focus:border-green-500 sm:text-sm bg-white">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -176,7 +176,7 @@
|
||||
<button type="button" class="prev-step-btn bg-gray-200 hover:bg-gray-300 text-gray-700 font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-opacity-50 transition-colors">
|
||||
<span aria-hidden="true">←</span> Previous
|
||||
</button>
|
||||
<button type="button" class="next-step-btn bg-green-300 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 transition-colors">
|
||||
<button type="button" class="next-step-btn bg-green-300 hover:bg-green-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-opacity-50 transition-colors">
|
||||
Next <span aria-hidden="true">→</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -374,8 +374,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
function setActiveDayTab(targetDay) {
|
||||
dayTabButtons.forEach(button => {
|
||||
const isTarget = button.dataset.dayTarget === targetDay;
|
||||
button.classList.toggle('border-indigo-500', isTarget); // Active tab style
|
||||
button.classList.toggle('text-indigo-600', isTarget);
|
||||
button.classList.toggle('border-green-500', isTarget); // Active tab style
|
||||
button.classList.toggle('text-green-900', isTarget);
|
||||
button.classList.toggle('font-semibold', isTarget); // Make active tab font bolder
|
||||
button.classList.toggle('text-gray-500', !isTarget); // Inactive tab style
|
||||
button.classList.toggle('hover:border-gray-300', !isTarget); // Corrected hover for inactive
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<h2 class="text-lg font-medium text-gray-900 font-heading" id="modal-title">
|
||||
Post a New Listing
|
||||
</h2>
|
||||
<button type="button" onclick="toggleNavbar('post-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('post-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" />
|
||||
@@ -45,20 +45,20 @@
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<label for="photo-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Listing Photo</label>
|
||||
<input type="file" id="photo-modal" name="photo" class="w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-sm file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-green-300 hover:file:bg-indigo-100 border border-gray-300 rounded-sm cursor-pointer focus:outline-none focus:border-indigo-600" accept="image/*">
|
||||
<input type="file" id="photo-modal" name="photo" class="w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-sm file:border-0 file:text-sm file:font-semibold file:bg-green-50 file:text-green-300 hover:file:bg-green-100 border border-gray-300 rounded-sm cursor-pointer focus:outline-none focus:border-green-900" accept="image/*">
|
||||
<p class="text-sm text-gray-500 mt-1">Upload one image (JPG, PNG).</p>
|
||||
</div>
|
||||
<div>
|
||||
<label for="title-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Title</label>
|
||||
<input type="text" id="title-modal" name="title" placeholder="e.g., Modern Coworking Hub" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||
<input type="text" id="title-modal" name="title" placeholder="e.g., Modern Coworking Hub" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label for="description-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Description</label>
|
||||
<textarea id="description-modal" name="description" rows="3" placeholder="Describe your space..." 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="description-modal" name="description" rows="3" placeholder="Describe your space..." class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<label for="space-type-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Space Type</label>
|
||||
<select id="space-type-modal" name="space-type" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
|
||||
<select id="space-type-modal" name="space-type" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm bg-white">
|
||||
<option value="">Select a space type</option>
|
||||
<option value="coworking">Coworking</option>
|
||||
<option value="room">Private Room</option>
|
||||
@@ -81,24 +81,24 @@
|
||||
<div class="space-y-4">
|
||||
<div class="relative">
|
||||
<label for="location-search-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Select Location</label>
|
||||
<input type="text" id="location-search-modal" name="location-search" placeholder="Search city or area..." class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" autocomplete="off">
|
||||
<input type="text" id="location-search-modal" name="location-search" placeholder="Search city or area..." class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm" autocomplete="off">
|
||||
<div id="location-dropdown-modal" class="absolute z-20 mt-1 w-full rounded-md bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5 max-h-48 overflow-y-auto py-1">
|
||||
<a href="#" data-value="Manila, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Manila, Philippines</a>
|
||||
<a href="#" data-value="Makati, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Makati, Philippines</a>
|
||||
<a href="#" data-value="Quezon City, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Quezon City, Philippines</a>
|
||||
<a href="#" data-value="Cebu City, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Cebu City, Philippines</a>
|
||||
<a href="#" data-value="Taguig, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Taguig, Philippines</a>
|
||||
<a href="#" data-value="Manila, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-900">Manila, Philippines</a>
|
||||
<a href="#" data-value="Makati, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-900">Makati, Philippines</a>
|
||||
<a href="#" data-value="Quezon City, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-900">Quezon City, Philippines</a>
|
||||
<a href="#" data-value="Cebu City, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-900">Cebu City, Philippines</a>
|
||||
<a href="#" data-value="Taguig, Philippines" class="location-item-modal block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-900">Taguig, Philippines</a>
|
||||
<p class="no-results-modal px-4 py-2 text-sm text-gray-500 hidden">No locations found.</p>
|
||||
</div>
|
||||
<input type="hidden" id="selected-location-modal" name="selected-location">
|
||||
</div>
|
||||
<div>
|
||||
<label for="address-line-1-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Address Line 1</label>
|
||||
<input type="text" id="address-line-1-modal" name="address-line-1" placeholder="e.g., 123 Main St" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||
<input type="text" id="address-line-1-modal" name="address-line-1" placeholder="e.g., 123 Main St" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label for="address-line-2-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Address Line 2 (Optional)</label>
|
||||
<input type="text" id="address-line-2-modal" name="address-line-2" placeholder="e.g., Brgy. Batong Dalig" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||
<input type="text" id="address-line-2-modal" name="address-line-2" placeholder="e.g., Brgy. Batong Dalig" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-6 flex justify-between">
|
||||
@@ -124,7 +124,7 @@
|
||||
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
|
||||
<span class="text-gray-500 text-sm">₱</span>
|
||||
</div>
|
||||
<input type="number" id="price-modal" name="price" placeholder="e.g., 1200" class="w-full pl-7 pr-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" min="0">
|
||||
<input type="number" id="price-modal" name="price" placeholder="e.g., 1200" class="w-full pl-7 pr-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm" min="0">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -172,17 +172,17 @@
|
||||
class="sr-only peer day-specific-availability-toggle-modal"
|
||||
data-day="{{ day_label_modal | downcase }}"
|
||||
onchange="toggleDayTimeSelectionModal('{{ day_label_modal | downcase }}')">
|
||||
<div class="relative w-9 h-5 bg-gray-200 peer-focus:outline-none peer-focus:ring-1 peer-focus:ring-offset-1 peer-focus:ring-indigo-500 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[1.5px] after:left-[1.5px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-indigo-600"></div>
|
||||
<div class="relative w-9 h-5 bg-gray-200 peer-focus:outline-none peer-focus:ring-1 peer-focus:ring-offset-1 peer-focus:ring-green-500 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[1.5px] after:left-[1.5px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-green-900"></div>
|
||||
</label>
|
||||
|
||||
<div id="time-selection-{{ day_label_modal | downcase }}-modal" class="day-specific-time-inputs-modal mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-2 hidden">
|
||||
<div>
|
||||
<label for="start-time-{{ day_label_modal | downcase }}-modal" class="block text-sm font-medium text-gray-700 mb-0.5 font-heading">Open</label>
|
||||
<input type="time" id="start-time-{{ day_label_modal | downcase }}-modal" name="start_time_{{ day_label_modal | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
|
||||
<input type="time" id="start-time-{{ day_label_modal | downcase }}-modal" name="start_time_{{ day_label_modal | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm bg-white">
|
||||
</div>
|
||||
<div>
|
||||
<label for="end-time-{{ day_label_modal | downcase }}-modal" class="block text-sm font-medium text-gray-700 mb-0.5 font-heading">Close</label>
|
||||
<input type="time" id="end-time-{{ day_label_modal | downcase }}-modal" name="end_time_{{ day_label_modal | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
|
||||
<input type="time" id="end-time-{{ day_label_modal | downcase }}-modal" name="end_time_{{ day_label_modal | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm bg-white">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -209,25 +209,25 @@
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<label for="space-name-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Coworking Space Name</label>
|
||||
<input type="text" id="space-name-modal" name="space_name" placeholder="e.g., The Productive Corner" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||
<input type="text" id="space-name-modal" name="space_name" placeholder="e.g., The Productive Corner" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm">
|
||||
</div>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
|
||||
<div>
|
||||
<label for="contact-first-name-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Contact Person - First Name</label>
|
||||
<input type="text" id="contact-first-name-modal" name="contact_first_name" placeholder="John" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||
<input type="text" id="contact-first-name-modal" name="contact_first_name" placeholder="John" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label for="contact-last-name-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Contact Person - Last Name</label>
|
||||
<input type="text" id="contact-last-name-modal" name="contact_last_name" placeholder="Doe" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||
<input type="text" id="contact-last-name-modal" name="contact_last_name" placeholder="Doe" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm">
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="contact-number-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Contact Number</label>
|
||||
<input type="tel" id="contact-number-modal" name="contact_number" placeholder="e.g., 09171234567" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||
<input type="tel" id="contact-number-modal" name="contact_number" placeholder="e.g., 09171234567" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label for="contact-email-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Email Address</label>
|
||||
<input type="email" id="contact-email-modal" name="contact_email" placeholder="you@example.com" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
|
||||
<input type="email" id="contact-email-modal" name="contact_email" placeholder="you@example.com" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-green-900 text-sm">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-6 flex justify-between items-center">
|
||||
@@ -291,16 +291,16 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
circle.classList.remove('bg-gray-300');
|
||||
circle.classList.add('bg-green-300', 'text-white');
|
||||
text.classList.remove('text-gray-500');
|
||||
text.classList.add('text-indigo-600', 'font-semibold');
|
||||
text.classList.add('text-green-900', 'font-semibold');
|
||||
} else if (index < activeIndex) {
|
||||
circle.classList.remove('bg-gray-300');
|
||||
circle.classList.add('bg-green-300', 'text-white');
|
||||
text.classList.remove('text-gray-500', 'text-indigo-600', 'font-semibold');
|
||||
text.classList.remove('text-gray-500', 'text-green-900', 'font-semibold');
|
||||
text.classList.add('text-gray-700');
|
||||
} else {
|
||||
circle.classList.remove('bg-green-300', 'text-white');
|
||||
circle.classList.add('bg-gray-300');
|
||||
text.classList.remove('text-indigo-600', 'font-semibold');
|
||||
text.classList.remove('text-green-900', 'font-semibold');
|
||||
text.classList.add('text-gray-500');
|
||||
}
|
||||
});
|
||||
@@ -397,8 +397,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
function setActiveDayTabModal(targetDay) {
|
||||
dayTabButtonsModal.forEach(button => {
|
||||
const isTarget = button.dataset.dayTarget === targetDay;
|
||||
button.classList.toggle('border-indigo-500', isTarget);
|
||||
button.classList.toggle('text-indigo-600', isTarget);
|
||||
button.classList.toggle('border-green-500', isTarget);
|
||||
button.classList.toggle('text-green-900', isTarget);
|
||||
button.classList.toggle('font-semibold', isTarget);
|
||||
button.classList.toggle('text-gray-500', !isTarget);
|
||||
button.classList.toggle('hover:border-gray-300', !isTarget);
|
||||
|
||||
Reference in new issue
Block a user