feat: Add action buttons to inquiry sidebar

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-10 22:37:50 +08:00
1 parent c9104f6f6f
commit e1e50ea00d
1 file changed
+20 -119
+20 -119
View File
@@ -76,7 +76,7 @@
</div> </div>
</a> </a>
</div> </div>
<div class="h-auto bg-gray-100 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 overflow-y-auto overscroll-none"> <div class="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 overflow-y-auto overscroll-none">
<div class="flex justify-between"> <div class="flex justify-between">
<a href="#"> <a href="#">
<p class="font-bold w-64 md:w-3/4 text-lg leading-6 md:leading-7 tracking-wide break-words"> <p class="font-bold w-64 md:w-3/4 text-lg leading-6 md:leading-7 tracking-wide break-words">
@@ -92,129 +92,30 @@
batong dalig, kawit, cavite</p> 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> <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> </div>
<div class="mt-2 md:mt-3 lg:mt-8 xxl:mt-6">
<div class="w-full"> <!-- Action Buttons -->
<input class="w-full px-3 py-2 rounded-md tracking-wider focus:outline-none" placeholder="Full Name" <div class="flex flex-wrap gap-4 items-center">
type="text"> <div class="relative">
</div> <button class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-indigo-700">
<div class="flex mt-1 md:mt-1 lg:mt-2 xxl:mt-1"> <img alt="" class="mr-2 mt-1"
<input class="mr-2 md:mr-1 lg:mr-2 xxl:mr-1 w-full px-3 py-2 rounded-md focus:outline-none" src="assets/svg/icon_pin.svg">
placeholder="Contact #" type="text"> </button>
<input class="w-full px-3 py-2 rounded-md focus:outline-none" placeholder="Email Address" <button class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-indigo-700">
type="text"> <img alt="" class="mr-2 mt-1"
</div> src="assets/svg/icon_link.svg">
<div class="w-full mt-3 md:mt-1 lg:mt-2 xxl:mt-1"> </button>
<textarea class="w-full px-3 py-1 xxl:py-3 text-gray-500 rounded-md focus:outline-none" <button class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-indigo-700">
rows="4">Optional Message</textarea> <img alt="" class="mr-2 mt-1"
</div> src="assets/svg/icon_report.svg">
<div class="w-full mt-4 md:mt-5 lg:mt-6 xl:mt-11 xxl:mt-2 mb-3"> </button>
<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-none border-none focus:outline-none" <button class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-indigo-700">
onclick="toggleSidebar('inquiry-alert-modal');toggleOverlay('example-collapse-overlay1');"> <img alt="" class="mr-2 mt-1"
<img class="animate-spin absolute left-0 ml-4 h-4" src="assets/svg/icon_spinner.svg">SEND src="assets/svg/icon_heart.svg">
INQUIRY
</button> </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>
</div> </div>
</div>
</div>
</div>
</aside>
<aside class="overscroll-none overflow-x-hidden overflow-y-auto 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 ml-4 mt-4 px-4 py-2 text-md md:mt-3 md:text-md lg:text-md lg:h-10 lg:mt-4 xl:h-10 xl:text-md bg-indigo-700 text-white font-light md:tracking-normal font-sans">
P 1,299 / month
<div class="tooltip">
<img alt=""
class=" flex absolute top-0 right-0 h-10 px-3 p-2 pt-2 -mr-10 bg-white text-xs"
src="assets/svg/icon_call.svg">
<div class="relative tooltip-text flex absolute top-0 right-0 px-3 py-3 bg-white rounded-md -mr-24 mt-14">
<svg class="absolute text-white -mt-3 h-6 w-9/12 top-0" viewBox="0 0 255 255" x="0px"
xml:space="preserve" y="0px"><polygon class="fill-current" points="0,127.5 255,127 127.5,0"/></svg>
<img alt="" src="assets/svg/icon_phone.svg">
<p class="ml-1 text-gray-600">0912345678</p>
</div>
</div>
</div>
<div class="flex absolute h-10 w-auto mt-4 md:mt-3 lg:mt-4 right-0 top-0">
<div class="pr-4 pl-3 mx-2 flex bg-indigo-900">
<img alt="" class="flex" src="assets/svg/icon_back.svg">
</div>
<div class="pl-4 pr-3 ml-2 mr-4 md:mr-1 flex bg-indigo-900">
<img alt="" class="flex" src="assets/svg/icon_next.svg">
</div>
<div class="px-4 py-1 flex hidden md:py-3 sm:block text-gray-500">
<img alt="" class="flex" onclick="toggleSidebar('inquiry-modal');toggleOverlay('collapse-overlay')"
src="assets/svg/icon_close.svg">
</div>
</div>
<div class="absolute h-11 w-10 flex justify-center right-0 bottom-0 bg-indigo-900">
<img alt="" class="w-6"
onclick="toggleNavbar('collapse-tool-tip20')"
src="assets/svg/icon_ellipsis.svg">
</div>
<div class="absolute right-0 bottom-0 bg-indigo-900 hidden rounded-lg -mb-16 font-sans"
id="collapse-tool-tip20">
<a class="flex px-4 py-2" href="#">
<p class="flex text-sm xl:text-md text-gray-700 hover:text-gray-400 hover:font-semibold">
<img alt="" class="mr-2 mt-1" onclick="toggleMap('example-collapse-direction')"
src="assets/svg/icon_pin.svg">
Directions
</p>
</a>
<a class="flex px-4 py-2" href="#">
<p class="flex text-sm xl:text-md text-gray-700 hover:text-gray-400 hover:font-semibold">
<img alt="" class="mr-2 mt-1" src="assets/svg/icon_link.svg">
Copy link
</p>
</a>
<a class="flex px-4 py-2">
<p class="flex text-sm xl:text-md text-gray-700 hover:text-gray-400 hover:font-semibold">
<img alt="" class="mr-2 mt-1" src="assets/svg/icon_report.svg">
Report this
</p>
</a>
</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>
<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="h-auto bg-gray-100 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 overflow-y-auto overscroll-none">
<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>
<img alt="" class="-mt-4 ml-6 lg:ml-0 lg:-mt-5 lg:mr-3 xl:mr-3 xxl:mr-1" src="assets/svg/icon_heart.svg">
</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>
<div class="mt-2 md:mt-3 lg:mt-8 xxl:mt-6"> <div class="mt-2 md:mt-3 lg:mt-8 xxl:mt-6">
<div class="w-full"> <div class="w-full">
<input class="w-full px-3 py-2 rounded-md tracking-wider focus:outline-none" placeholder="Full Name" <input class="w-full px-3 py-2 rounded-md tracking-wider focus:outline-none" placeholder="Full Name"