style: Apply font-heading css style to headings, labels, buttons
This commit is contained in:
1 parent
378f320911
commit
cd9af6e63a
4 files changed
+54
-54
No files matched your search
@@ -4,7 +4,7 @@
|
||||
<!-- 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">
|
||||
<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">
|
||||
@@ -22,42 +22,42 @@
|
||||
<div class="flex justify-between mb-6">
|
||||
<div id="step-indicator-1-modal" class="step-indicator-modal active-step-modal text-center flex-1">
|
||||
<div class="w-8 h-8 mx-auto rounded-full bg-indigo-700 text-white flex items-center justify-center text-xs">1</div>
|
||||
<p class="text-xs mt-1">Description</p>
|
||||
<p class="text-xs mt-1 font-heading">Description</p>
|
||||
</div>
|
||||
<div id="step-indicator-2-modal" class="step-indicator-modal text-center text-gray-500 flex-1">
|
||||
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 flex items-center justify-center text-xs">2</div>
|
||||
<p class="text-xs mt-1">Location</p>
|
||||
<p class="text-xs mt-1 font-heading">Location</p>
|
||||
</div>
|
||||
<div id="step-indicator-3-modal" class="step-indicator-modal text-center text-gray-500 flex-1">
|
||||
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 flex items-center justify-center text-xs">3</div>
|
||||
<p class="text-xs mt-1">Price & Availability</p>
|
||||
<p class="text-xs mt-1 font-heading">Price & Availability</p>
|
||||
</div>
|
||||
<div id="step-indicator-4-modal" class="step-indicator-modal text-center text-gray-500 flex-1">
|
||||
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 flex items-center justify-center text-xs">4</div>
|
||||
<p class="text-xs mt-1">Contact</p>
|
||||
<p class="text-xs mt-1 font-heading">Contact</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="new-listing-form-modal">
|
||||
<!-- Step 1: Description -->
|
||||
<div id="step-1-modal" class="form-step-modal active-step-modal">
|
||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4">Step 1: Listing Description</h2>
|
||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 1: Listing Description</h2>
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<label for="photo-modal" class="block text-xs font-medium text-gray-700 mb-1">Listing Photo</label>
|
||||
<label for="photo-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Listing Photo</label>
|
||||
<input type="file" id="photo-modal" name="photo" class="w-full text-xs text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-sm file:border-0 file:text-xs file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100 border border-gray-300 rounded-sm cursor-pointer focus:outline-none focus:border-indigo-600" accept="image/*">
|
||||
<p class="text-xs text-gray-500 mt-1">Upload one image (JPG, PNG).</p>
|
||||
</div>
|
||||
<div>
|
||||
<label for="title-modal" class="block text-xs font-medium text-gray-700 mb-1">Title</label>
|
||||
<label for="title-modal" class="block text-xs 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">
|
||||
</div>
|
||||
<div>
|
||||
<label for="description-modal" class="block text-xs font-medium text-gray-700 mb-1">Description</label>
|
||||
<label for="description-modal" class="block text-xs 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>
|
||||
</div>
|
||||
<div>
|
||||
<label for="space-type-modal" class="block text-xs font-medium text-gray-700 mb-1">Space Type</label>
|
||||
<label for="space-type-modal" class="block text-xs 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">
|
||||
<option value="">Select a space type</option>
|
||||
<option value="coworking">Coworking</option>
|
||||
@@ -69,7 +69,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-6 flex justify-end">
|
||||
<button type="button" class="next-step-btn-modal bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||
<button type="button" class="next-step-btn-modal bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
|
||||
Next <svg class="w-5 h-5 ml-2 -mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg>
|
||||
</button>
|
||||
</div>
|
||||
@@ -77,10 +77,10 @@
|
||||
|
||||
<!-- Step 2: Location -->
|
||||
<div id="step-2-modal" class="form-step-modal hidden">
|
||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4">Step 2: Location</h2>
|
||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 2: Location</h2>
|
||||
<div class="space-y-4">
|
||||
<div class="relative">
|
||||
<label for="location-search-modal" class="block text-xs font-medium text-gray-700 mb-1">Select Location</label>
|
||||
<label for="location-search-modal" class="block text-xs 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">
|
||||
<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-xs text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Manila, Philippines</a>
|
||||
@@ -93,22 +93,22 @@
|
||||
<input type="hidden" id="selected-location-modal" name="selected-location">
|
||||
</div>
|
||||
<div>
|
||||
<label for="address-line-1-modal" class="block text-xs font-medium text-gray-700 mb-1">Address Line 1</label>
|
||||
<label for="address-line-1-modal" class="block text-xs 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">
|
||||
</div>
|
||||
<div>
|
||||
<label for="address-line-2-modal" class="block text-xs font-medium text-gray-700 mb-1">Address Line 2 (Optional)</label>
|
||||
<label for="address-line-2-modal" class="block text-xs 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">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-6 flex justify-between">
|
||||
<button type="button" class="prev-step-btn-modal bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||
<button type="button" class="prev-step-btn-modal bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
|
||||
<svg class="w-5 h-5 mr-2 -ml-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
||||
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
Previous
|
||||
</button>
|
||||
<button type="button" class="next-step-btn-modal bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||
<button type="button" class="next-step-btn-modal bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
|
||||
Next <svg class="w-5 h-5 ml-2 -mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg>
|
||||
</button>
|
||||
</div>
|
||||
@@ -116,10 +116,10 @@
|
||||
|
||||
<!-- Step 3: Price & Availability -->
|
||||
<div id="step-3-modal" class="form-step-modal hidden">
|
||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4">Step 3: Price & Availability</h2>
|
||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 3: Price & Availability</h2>
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<label for="price-modal" class="block text-xs font-medium text-gray-700 mb-1">Price (PHP per day)</label>
|
||||
<label for="price-modal" class="block text-xs font-medium text-gray-700 mb-1 font-heading">Price (PHP per day)</label>
|
||||
<div class="relative mt-1 rounded-sm shadow-sm">
|
||||
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
|
||||
<span class="text-gray-500 text-sm">₱</span>
|
||||
@@ -129,7 +129,7 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3 class="text-sm font-medium text-gray-700 mb-2">Availability Date Range</h3>
|
||||
<h3 class="text-sm font-medium text-gray-700 mb-2 font-heading">Availability Date Range</h3>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
|
||||
{% include calendar_input.liquid
|
||||
id="start_datepicker"
|
||||
@@ -146,13 +146,13 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3 class="text-sm font-medium text-gray-700 mb-2">Weekly Availability & Hours</h3>
|
||||
<h3 class="text-sm font-medium text-gray-700 mb-2 font-heading">Weekly Availability & Hours</h3>
|
||||
{% assign days_list_modal = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday" | split: "," %}
|
||||
<div class="mb-3">
|
||||
<div class="flex flex-wrap border-b border-gray-200">
|
||||
{% for day_label_modal in days_list_modal %}
|
||||
<button type="button"
|
||||
class="day-tab-button-modal -mb-px py-1.5 px-3 border-b-2 border-transparent text-xs font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none"
|
||||
class="day-tab-button-modal -mb-px py-1.5 px-3 border-b-2 border-transparent text-xs font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none font-heading"
|
||||
data-day-target="{{ day_label_modal | downcase }}">
|
||||
{{ day_label_modal | slice: 0, 3 }} <!-- Abbreviated day name -->
|
||||
</button>
|
||||
@@ -163,7 +163,7 @@
|
||||
{% for day_label_modal in days_list_modal %}
|
||||
<div id="availability-content-{{ day_label_modal | downcase }}-modal" class="day-availability-content-modal hidden">
|
||||
<div class="bg-gray-50 p-3 rounded-md shadow-sm space-y-3">
|
||||
<label for="available-{{ day_label_modal | downcase }}-modal" class="flex items-center justify-between w-full cursor-pointer">
|
||||
<label for="available-{{ day_label_modal | downcase }}-modal" class="flex items-center justify-between w-full cursor-pointer font-heading">
|
||||
<span class="text-xs font-medium text-gray-900">Available on {{ day_label_modal }}</span>
|
||||
<input type="checkbox"
|
||||
id="available-{{ day_label_modal | downcase }}-modal"
|
||||
@@ -177,11 +177,11 @@
|
||||
|
||||
<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-xs font-medium text-gray-700 mb-0.5">Open</label>
|
||||
<label for="start-time-{{ day_label_modal | downcase }}-modal" class="block text-xs 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">
|
||||
</div>
|
||||
<div>
|
||||
<label for="end-time-{{ day_label_modal | downcase }}-modal" class="block text-xs font-medium text-gray-700 mb-0.5">Close</label>
|
||||
<label for="end-time-{{ day_label_modal | downcase }}-modal" class="block text-xs 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">
|
||||
</div>
|
||||
</div>
|
||||
@@ -191,13 +191,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-6 flex justify-between">
|
||||
<button type="button" class="prev-step-btn-modal bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||
<button type="button" class="prev-step-btn-modal bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
|
||||
<svg class="w-5 h-5 mr-2 -ml-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
||||
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
Previous
|
||||
</button>
|
||||
<button type="button" class="next-step-btn-modal bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||
<button type="button" class="next-step-btn-modal bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
|
||||
Next <svg class="w-5 h-5 ml-2 -mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /></svg>
|
||||
</button>
|
||||
</div>
|
||||
@@ -205,39 +205,39 @@
|
||||
|
||||
<!-- Step 4: Contact Information -->
|
||||
<div id="step-4-modal" class="form-step-modal hidden">
|
||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4">Step 4: Contact Information</h2>
|
||||
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 4: Contact Information</h2>
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<label for="space-name-modal" class="block text-xs font-medium text-gray-700 mb-1">Coworking Space Name</label>
|
||||
<label for="space-name-modal" class="block text-xs 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">
|
||||
</div>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
|
||||
<div>
|
||||
<label for="contact-first-name-modal" class="block text-xs font-medium text-gray-700 mb-1">Contact Person - First Name</label>
|
||||
<label for="contact-first-name-modal" class="block text-xs 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">
|
||||
</div>
|
||||
<div>
|
||||
<label for="contact-last-name-modal" class="block text-xs font-medium text-gray-700 mb-1">Contact Person - Last Name</label>
|
||||
<label for="contact-last-name-modal" class="block text-xs 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">
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="contact-number-modal" class="block text-xs font-medium text-gray-700 mb-1">Contact Number</label>
|
||||
<label for="contact-number-modal" class="block text-xs 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">
|
||||
</div>
|
||||
<div>
|
||||
<label for="contact-email-modal" class="block text-xs font-medium text-gray-700 mb-1">Email Address</label>
|
||||
<label for="contact-email-modal" class="block text-xs 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">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-6 flex justify-between items-center">
|
||||
<button type="button" class="prev-step-btn-modal bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||
<button type="button" class="prev-step-btn-modal bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
|
||||
<svg class="w-5 h-5 mr-2 -ml-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
||||
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
Previous
|
||||
</button>
|
||||
<button type="submit" class="bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||
<button type="submit" class="bg-indigo-900 text-gray-100 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
|
||||
Submit Listing
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user