feat: Implement sidebar inquiry modal with Tailwind CSS styling

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-11 00:54:16 +08:00
1 parent 31d90057cb
commit c3557fe1e8
2 files changed
+66 -96

No files matched your search

+65 -96
View File
@@ -1,105 +1,74 @@
<!-- sidebar inquiry section -->
<aside class="fixed inset-0 w-screen z-50 outline-none focus:outline-none justify-center items-center hidden"
id="inquiry-modal">
<div class="relative w-auto mt-12.2 mb-11 mx-auto max-w-lg sm:mt-18 md:mt-46 lg:mt-16 lg:mb-0 lg:bg-white lg:w-full lg:max-w-lg lg:fixed lg:flex lg:justify-end lg:right-0 lg:top-0 lg:bottom-0 xxl:mb-11 xxl:block xxl:absolute xxl:inset-0 xxl:bg-transparent xxl:mt-36">
<!--content-->
<div class="xxl:mb-11 border-0 rounded-lg relative flex flex-col w-full outline-none focus:outline-none">
<div class="relative">
<a href="#">
<div class="flex absolute h-10 w-auto mt-4 md:mt-3 lg:mt-4 right-0 top-0">
<div class="w-14 h-14 bg-gray-100 text-indigo-700 font-semibold rounded-full inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700">
<img alt="" class="w-6 h-6" src="assets/svg/icon_close.svg">
</div>
</div>
<img alt=""
class="h-63 md:h-66 lg:h-58 xl:h-58 xxl:h-62 w-full object-cover sm:rounded-t-lg lg:rounded-none xxl:rounded-t-lg"
src="assets/img/SAMPLE3.png ">
<div class="relative h-65 md:h-66 lg:h-auto xl:h-58 xxl:h-62 w-full object-cover md:rounded-t-lg lg:rounded-none xxl:rounded-t-lg hidden"
id="example-collapse-direction">
<div class="mt-5 h-full w-full object-cover " id="map"></div>
<!-- Sidebar Inquiry Modal -->
<aside id="inquiry-modal" class="fixed inset-0 z-50 hidden bg-black bg-opacity-50 flex items-center justify-center lg:items-start lg:justify-end">
<!-- Modal container -->
<div class="relative w-full max-w-lg bg-white shadow-lg overflow-y-auto
lg:fixed lg:top-0 lg:right-0 lg:bottom-0 lg:h-screen lg:w-[420px] lg:max-w-none rounded-lg lg:rounded-none">
<div class="z-10 absolute py-3 px-3 right-0 bottom-0 bg-indigo-900">
<img alt="" class=""
onclick="toggleSidebar('example-collapse-sidebar');toggleOverlay('example-collapse-overlay')"
src="assets/svg/icon_close.svg">
</div>
</div>
</a>
</div>
<div class="bg-white h-auto px-4 pt-2 sm:h-full md:pt-1 md:px-7 lg:pt-2 lg:h-80 lg:px-7 xl:h-auto rounded-b-lg">
<div class="flex justify-between">
<a href="#">
<p class="font-bold w-64 md:w-3/4 text-lg leading-6 md:leading-7 tracking-wide break-words">
Cozy
coworking space in the heart of the south</p>
</a>
<!-- Close Button (top right) -->
<div class="absolute top-4 right-4 z-10">
<button class="w-10 h-10 bg-gray-100 text-indigo-700 rounded-full flex items-center justify-center border-2 hover:border-indigo-700">
<img src="assets/svg/icon_close.svg" alt="Close" class="w-6 h-6">
</button>
</div>
<!-- Modal Image -->
<img src="assets/img/SAMPLE3.png" alt="Sample" class="h-64 w-full object-cover">
<!-- Modal Content -->
<div class="bg-white h-auto p-6 lg:h-full overflow-y-auto">
<h2 class="text-xl font-bold mb-2">Cozy coworking space in the heart of the south</h2>
<p class="text-sm text-gray-600 mb-4">Incub8 space, Centennial Road, Brgy. Batong Dalig, Kawit, Cavite</p>
<p class="text-xs text-gray-500 mb-4">5 hrs ago</p>
<!-- Action Buttons -->
<div class="flex gap-3 mb-6 flex-wrap">
<div class="w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center hover:border-indigo-700 border-2 border-transparent">
<img src="assets/svg/icon_call.svg" class="w-5 h-5" alt="Call">
</div>
<div class=" flex justify-between">
<p class="flex w-9/12 md:w-3/5 mt-1 sm:mt-0 lg:mt-1 text-xs text-gray-600 capitalize font-sans tracking-normal break-words">
incub8 space, centennial
road, brgy.
batong dalig, kawit, cavite</p>
<p class="mr-2 mt-1 lg:mt-5 flex-none text-xs text-gray-600 tracking-widest font-sans">5 hrs ago</p>
<div class="w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center hover:border-indigo-700 border-2 border-transparent">
<img src="assets/svg/icon_pin.svg" class="w-5 h-5" alt="Pin">
</div>
<!-- Action Buttons -->
<div class="flex flex-wrap gap-4 items-center my-4">
<div class="relative flex flex-row gap-4">
<div class="w-14 h-14 bg-gray-100 text-indigo-700 font-semibold rounded-full inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700">
<img alt="" class="w-6 h-6" src="assets/svg/icon_call.svg">
</div>
<div class="w-14 h-14 bg-gray-100 text-indigo-700 font-semibold rounded-full inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700">
<img alt="" class="w-6 h-6" src="assets/svg/icon_pin.svg">
</div>
<div class="w-14 h-14 bg-gray-100 text-indigo-700 font-semibold rounded-full inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700">
<img alt="" class="w-6 h-6" src="assets/svg/icon_link.svg">
</div>
<div class="w-14 h-14 bg-gray-100 text-indigo-700 font-semibold rounded-full inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700">
<img alt="" class="w-6 h-6" src="assets/svg/icon_report.svg">
</div>
<div class="w-14 h-14 bg-gray-100 text-indigo-700 font-semibold rounded-full inline-flex items-center justify-center border-2 border-transparent hover:border-indigo-700">
<img alt="" class="w-6 h-6" src="assets/svg/icon_heart.svg">
</div>
</div>
<div class="w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center hover:border-indigo-700 border-2 border-transparent">
<img src="assets/svg/icon_link.svg" class="w-5 h-5" alt="Link">
</div>
<div class="mt-2 md:mt-3 lg:mt-8 xxl:mt-6">
<div class="w-full">
<input class="w-full px-3 py-2 border border-gray-400 border-sm rounded-sm tracking-wider focus:outline-none focus:border-indigo-700" placeholder="Full Name"
type="text">
<p class="text-sm text-gray-500">Invalid Name</p>
</div>
<div class="flex mt-1 md:mt-1 lg:mt-2 xxl:mt-1">
<div class="w-full">
<input class="mr-2 md:mr-1 lg:mr-2 xxl:mr-1 w-full px-3 py-2 border border-gray-400 border-sm rounded-sm focus:outline-none focus:border-indigo-700"
placeholder="Contact #" type="text">
<p class="text-sm text-gray-500">Invalid Phone Number</p>
</div>
<div class="w-full">
<input class="w-full px-3 py-2 border border-gray-400 border-sm rounded-sm focus:outline-none focus:border-indigo-700" placeholder="Email Address"
type="text">
<p class="text-sm text-gray-500">Invalid Email Address</p>
</div>
</div>
<div class="w-full mt-3 md:mt-1 lg:mt-2 xxl:mt-1">
<textarea class="w-full px-3 py-1 xxl:py-3 text-gray-500 border border-gray-400 border-sm rounded-sm focus:outline-none focus:border-indigo-700"
rows="4">Optional Message</textarea>
<p class="text-sm text-gray-500">Invalid Message</p>
</div>
<div class="w-full mt-4 md:mt-5 lg:mt-6 xl:mt-11 xxl:mt-2 mb-3">
<button class="relative flex justify-center items-center py-2 w-full text-md lg:text-lg xxl:text-md font-bold bg-green-300 tracking-wide rounded-lg border-none focus:outline-none"
onclick="toggleSidebar('inquiry-alert-modal');toggleOverlay('example-collapse-overlay1');">
<img class="animate-spin absolute left-0 ml-4 h-4" src="assets/svg/icon_spinner.svg">SEND
INQUIRY
</button>
<p class="mt-1 text-xs xl:text-sm text-gray-600 font-thin tracking-tight">By Submitting your
agree to the
<b>Terms and Conditions</b></p>
</div>
<div class="w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center hover:border-indigo-700 border-2 border-transparent">
<img src="assets/svg/icon_report.svg" class="w-5 h-5" alt="Report">
</div>
<div class="w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center hover:border-indigo-700 border-2 border-transparent">
<img src="assets/svg/icon_heart.svg" class="w-5 h-5" alt="Like">
</div>
</div>
<!-- Form Fields -->
<form class="space-y-4">
<div>
<input type="text" placeholder="Full Name" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700">
<p class="text-sm text-gray-500">Invalid Name</p>
</div>
<div class="flex gap-2">
<div class="w-1/2">
<input type="text" placeholder="Contact #" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700">
<p class="text-sm text-gray-500">Invalid Phone Number</p>
</div>
<div class="w-1/2">
<input type="email" placeholder="Email Address" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700">
<p class="text-sm text-gray-500">Invalid Email Address</p>
</div>
</div>
<div>
<textarea rows="4" placeholder="Optional Message" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 text-gray-700"></textarea>
<p class="text-sm text-gray-500">Invalid Message</p>
</div>
<div>
<button type="submit" class="w-full py-2 bg-green-300 text-lg font-bold rounded-lg hover:bg-green-400 transition-colors flex justify-center items-center">
<img src="assets/svg/icon_spinner.svg" class="h-4 animate-spin mr-2" alt="Loading"> SEND INQUIRY
</button>
<p class="text-xs mt-1 text-gray-600 font-thin text-center">
By submitting, you agree to the <b>Terms and Conditions</b>
</p>
</div>
</form>
</div>
</div>
</aside>
<!-- end sidebar inquiry section -->
<!-- End Sidebar Inquiry Modal -->
+1
View File
@@ -59,6 +59,7 @@ module.exports = {
'sm': '5px',
'xs': '3px',
'full': '9999px',
'none': '0',
},
spacing: {
px: '1px',