Files
resharespace-static/_includes/sidebar_inquiry.liquid
T

87 lines
6.4 KiB
Plaintext

<!-- Sidebar Inquiry Modal -->
<aside id="inquiry-modal" class="overscroll-none overflow-y-auto fixed inset-0 w-screen z-50 justify-center hidden bg-black bg-opacity-50" aria-labelledby="inquiry-modal-title" role="dialog" aria-modal="true">
<div class="relative w-full h-full max-w-lg ml-auto bg-white shadow-xl flex flex-col lg:max-w-xl">
<!-- Modal Header with Close Button -->
<div class="sticky top-0 bg-white z-10 px-4 sm:px-6 py-4 border-b border-gray-200">
<div class="flex items-center justify-between">
<h2 class="text-lg font-medium text-gray-900" 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">
<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" />
</svg>
</button>
</div>
</div>
<!-- Modal Body -->
<div class="flex-1 overflow-y-auto p-4 sm:p-6">
<!-- Modal Content -->
<div class="bg-white h-auto p-4 sm:p-6 lg:h-full overflow-y-auto">
<h2 class="text-lg font-semibold text-gray-800 mb-1">Cozy coworking space in the heart of the south</h2>
<p class="text-xs text-gray-600 mb-2">Incub8 space, Centennial Road, Brgy. Batong Dalig, Kawit, Cavite</p>
<p class="text-xs text-gray-500 mb-3">5 hrs ago</p>
<!-- Image -->
<img src="assets/img/SAMPLE3.png" alt="Sample" class="h-48 sm:h-56 w-full object-cover rounded-md mb-4">
<!-- Action Buttons -->
<div class="flex gap-2 mb-4 flex-wrap">
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:border-indigo-700 border-2 border-transparent cursor-pointer">
<img src="assets/svg/icon_call.svg" class="w-4 h-4" alt="Call">
</div>
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:border-indigo-700 border-2 border-transparent cursor-pointer">
<img src="assets/svg/icon_pin.svg" class="w-4 h-4" alt="Pin">
</div>
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:border-indigo-700 border-2 border-transparent cursor-pointer">
<img src="assets/svg/icon_link.svg" class="w-4 h-4" alt="Link">
</div>
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:border-indigo-700 border-2 border-transparent cursor-pointer">
<img src="assets/svg/icon_report.svg" class="w-4 h-4" alt="Report">
</div>
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:border-indigo-700 border-2 border-transparent cursor-pointer">
<img src="assets/svg/icon_heart.svg" class="w-4 h-4" alt="Like">
</div>
</div>
<!-- Form Fields -->
<form class="space-y-3">
<div>
<label for="inquiry-full-name" class="block text-xs font-medium text-gray-700 mb-1 sr-only">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>
<p class="text-xs text-red-500 mt-1 hidden">Invalid Name</p> <!-- Example error message, initially hidden -->
</div>
<div class="flex gap-3">
<div class="w-1/2">
<label for="inquiry-contact-num" class="block text-xs font-medium text-gray-700 mb-1 sr-only">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>
<p class="text-xs text-red-500 mt-1 hidden">Invalid Phone Number</p>
</div>
<div class="w-1/2">
<label for="inquiry-email" class="block text-xs font-medium text-gray-700 mb-1 sr-only">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>
<p class="text-xs text-red-500 mt-1 hidden">Invalid Email Address</p>
</div>
</div>
<div>
<label for="inquiry-message" class="block text-xs font-medium text-gray-700 mb-1 sr-only">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>
<p class="text-xs text-red-500 mt-1 hidden">Invalid Message</p>
</div>
<div class="pt-2">
<button type="submit" class="w-full bg-indigo-900 text-gray-100 font-semibold py-2.5 px-4 rounded-lg inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 text-sm">
<img src="assets/svg/icon_spinner.svg" class="h-4 animate-spin mr-2 hidden" alt="Loading"> SEND INQUIRY
</button>
<p class="text-xs mt-2 text-gray-600 font-thin text-center">
By submitting, you agree to the <b>Terms and Conditions</b>
</p>
</div>
</form>
</div>
</div>
</div> <!-- Closing div for "relative w-full h-full max-w-lg ml-auto..." -->
</aside>
<!-- End Sidebar Inquiry Modal -->