refactor: Update inquiry sidebar layout to match post sidebar
This commit is contained in:
1 parent
bfe9083d5d
commit
781c641712
1 file changed
+18
-24
@@ -1,29 +1,22 @@
|
||||
<!-- 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 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="modal-title">
|
||||
Cozy coworking space in the heart of the south
|
||||
</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">
|
||||
<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 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">
|
||||
|
||||
<!-- 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>
|
||||
<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">
|
||||
Cozy coworking space in the heart of the south
|
||||
</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 Image -->
|
||||
<img src="assets/img/SAMPLE3.png" alt="Sample" class="h-64 w-full object-cover">
|
||||
@@ -84,5 +77,6 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- Closing div for "relative w-full h-full max-w-lg ml-auto..." -->
|
||||
</aside>
|
||||
<!-- End Sidebar Inquiry Modal -->
|
||||
Reference in new issue
Block a user