Change base color
This commit is contained in:
1 parent
de689495a7
commit
01cb2e0dc3
18 files changed
+102
-94
No files matched your search
+36
-36
@@ -1,11 +1,11 @@
|
||||
<div class="container mx-auto py-10 px-4 sm:px-6 lg:px-8">
|
||||
<h1 class="text-3xl font-bold text-indigo-700 mb-8 text-center">Post a New Listing</h1>
|
||||
<h1 class="text-3xl font-bold text-green-300 mb-8 text-center">Post a New Listing</h1>
|
||||
|
||||
<div id="post-form-steps" class="max-w-3xl mx-auto bg-white p-6 sm:p-8 rounded-lg shadow-xl">
|
||||
<!-- Step Indicators -->
|
||||
<div class="flex justify-between mb-8 sm:mb-10">
|
||||
<div id="step-indicator-1" class="step-indicator active-step text-center flex-1">
|
||||
<div class="w-8 h-8 sm:w-10 sm:h-10 mx-auto rounded-full bg-indigo-700 text-white flex items-center justify-center text-sm sm:text-base">1</div>
|
||||
<div class="w-8 h-8 sm:w-10 sm:h-10 mx-auto rounded-full bg-green-300 text-white flex items-center justify-center text-sm sm:text-base">1</div>
|
||||
<p class="text-xs sm:text-sm mt-1 sm:mt-2">Description</p>
|
||||
</div>
|
||||
<div id="step-indicator-2" class="step-indicator text-center text-gray-500 flex-1">
|
||||
@@ -25,24 +25,24 @@
|
||||
<form id="new-listing-form">
|
||||
<!-- Step 1: Description -->
|
||||
<div id="step-1" class="form-step active-step">
|
||||
<h2 class="text-xl sm:text-2xl font-semibold text-indigo-700 mb-6">Step 1: Listing Description</h2>
|
||||
<h2 class="text-xl sm:text-2xl font-semibold text-green-300 mb-6">Step 1: Listing Description</h2>
|
||||
<div class="space-y-5">
|
||||
<div>
|
||||
<label for="photo" class="block text-sm font-medium text-gray-700 mb-1">Listing Photo</label>
|
||||
<input type="file" id="photo" name="photo" class="w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100 border border-gray-400 rounded-sm cursor-pointer focus:outline-none focus:border-indigo-700" accept="image/*">
|
||||
<input type="file" id="photo" name="photo" class="w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-green-300 hover:file:bg-indigo-100 border border-gray-400 rounded-sm cursor-pointer focus:outline-none focus:border-green-300" accept="image/*">
|
||||
<p class="text-sm text-gray-500 mt-1">Upload one image for your listing (e.g., JPG, PNG).</p>
|
||||
</div>
|
||||
<div>
|
||||
<label for="title" class="block text-sm font-medium text-gray-700 mb-1">Title</label>
|
||||
<input type="text" id="title" name="title" placeholder="e.g., Modern Coworking Hub with Great Coffee" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm">
|
||||
<input type="text" id="title" name="title" placeholder="e.g., Modern Coworking Hub with Great Coffee" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label for="description" class="block text-sm font-medium text-gray-700 mb-1">Description</label>
|
||||
<textarea id="description" name="description" rows="4" placeholder="Describe your space, amenities, and what makes it unique..." class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm"></textarea>
|
||||
<textarea id="description" name="description" rows="4" placeholder="Describe your space, amenities, and what makes it unique..." class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<label for="space-type" class="block text-sm font-medium text-gray-700 mb-1">Space Type</label>
|
||||
<select id="space-type" name="space-type" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm bg-white">
|
||||
<select id="space-type" name="space-type" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm bg-white">
|
||||
<option value="">Select a space type</option>
|
||||
<option value="coworking">Coworking</option>
|
||||
<option value="room">Private Room</option>
|
||||
@@ -53,7 +53,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-8 flex justify-end">
|
||||
<button type="button" class="next-step-btn bg-indigo-700 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 transition-colors">
|
||||
<button type="button" class="next-step-btn bg-green-300 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 transition-colors">
|
||||
Next <span aria-hidden="true">→</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -61,36 +61,36 @@
|
||||
|
||||
<!-- Step 2: Location -->
|
||||
<div id="step-2" class="form-step hidden">
|
||||
<h2 class="text-xl sm:text-2xl font-semibold text-indigo-700 mb-6">Step 2: Location</h2>
|
||||
<h2 class="text-xl sm:text-2xl font-semibold text-green-300 mb-6">Step 2: Location</h2>
|
||||
<div class="space-y-5">
|
||||
<div class="relative">
|
||||
<label for="location-search" class="block text-sm font-medium text-gray-700 mb-1">Select Location</label>
|
||||
<input type="text" id="location-search" name="location-search" placeholder="Type to search for a city or area..." class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm" autocomplete="off">
|
||||
<input type="text" id="location-search" name="location-search" placeholder="Type to search for a city or area..." class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm" autocomplete="off">
|
||||
<div id="location-dropdown" class="absolute z-20 mt-1 w-full rounded-md bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5 max-h-60 overflow-y-auto py-1">
|
||||
<!-- Example items, real implementation would populate this dynamically or use a service -->
|
||||
<a href="#" data-value="Manila, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-700 location-item">Manila, Philippines</a>
|
||||
<a href="#" data-value="Makati, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-700 location-item">Makati, Philippines</a>
|
||||
<a href="#" data-value="Quezon City, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-700 location-item">Quezon City, Philippines</a>
|
||||
<a href="#" data-value="Cebu City, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-700 location-item">Cebu City, Philippines</a>
|
||||
<a href="#" data-value="Taguig, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-700 location-item">Taguig, Philippines</a>
|
||||
<a href="#" data-value="Manila, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-green-300 location-item">Manila, Philippines</a>
|
||||
<a href="#" data-value="Makati, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-green-300 location-item">Makati, Philippines</a>
|
||||
<a href="#" data-value="Quezon City, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-green-300 location-item">Quezon City, Philippines</a>
|
||||
<a href="#" data-value="Cebu City, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-green-300 location-item">Cebu City, Philippines</a>
|
||||
<a href="#" data-value="Taguig, Philippines" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-green-300 location-item">Taguig, Philippines</a>
|
||||
<p class="px-4 py-2 text-sm text-gray-500 no-results hidden">No locations found.</p>
|
||||
</div>
|
||||
<input type="hidden" id="selected-location" name="selected-location">
|
||||
</div>
|
||||
<div>
|
||||
<label for="address-line-1" class="block text-sm font-medium text-gray-700 mb-1">Address Line 1</label>
|
||||
<input type="text" id="address-line-1" name="address-line-1" placeholder="e.g., 123 Main St, Incub8 Building" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm">
|
||||
<input type="text" id="address-line-1" name="address-line-1" placeholder="e.g., 123 Main St, Incub8 Building" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label for="address-line-2" class="block text-sm font-medium text-gray-700 mb-1">Address Line 2 (Optional)</label>
|
||||
<input type="text" id="address-line-2" name="address-line-2" placeholder="e.g., Centennial Road, Brgy. Batong Dalig" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm">
|
||||
<input type="text" id="address-line-2" name="address-line-2" placeholder="e.g., Centennial Road, Brgy. Batong Dalig" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-8 flex justify-between">
|
||||
<button type="button" class="prev-step-btn bg-gray-200 hover:bg-gray-300 text-gray-700 font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-opacity-50 transition-colors">
|
||||
<span aria-hidden="true">←</span> Previous
|
||||
</button>
|
||||
<button type="button" class="next-step-btn bg-indigo-700 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 transition-colors">
|
||||
<button type="button" class="next-step-btn bg-green-300 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 transition-colors">
|
||||
Next <span aria-hidden="true">→</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
<!-- Step 3: Price & Availability -->
|
||||
<div id="step-3" class="form-step hidden">
|
||||
<h2 class="text-xl sm:text-2xl font-semibold text-indigo-700 mb-6">Step 3: Price & Availability</h2>
|
||||
<h2 class="text-xl sm:text-2xl font-semibold text-green-300 mb-6">Step 3: Price & Availability</h2>
|
||||
<div class="space-y-6">
|
||||
<div>
|
||||
<label for="price" class="block text-sm font-medium text-gray-700 mb-1">Price (PHP per day)</label>
|
||||
@@ -106,7 +106,7 @@
|
||||
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
|
||||
<span class="text-gray-500 sm:text-sm">₱</span>
|
||||
</div>
|
||||
<input type="number" id="price" name="price" placeholder="e.g., 1200" class="w-full pl-7 pr-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm" min="0">
|
||||
<input type="number" id="price" name="price" placeholder="e.g., 1200" class="w-full pl-7 pr-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm" min="0">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -115,11 +115,11 @@
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label for="availability-start-date" class="block text-xs font-medium text-gray-700 mb-1">Start Date</label>
|
||||
<input type="date" id="availability-start-date" name="availability-start-date" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm">
|
||||
<input type="date" id="availability-start-date" name="availability-start-date" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label for="availability-end-date" class="block text-xs font-medium text-gray-700 mb-1">End Date</label>
|
||||
<input type="date" id="availability-end-date" name="availability-end-date" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm">
|
||||
<input type="date" id="availability-end-date" name="availability-end-date" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -176,7 +176,7 @@
|
||||
<button type="button" class="prev-step-btn bg-gray-200 hover:bg-gray-300 text-gray-700 font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-opacity-50 transition-colors">
|
||||
<span aria-hidden="true">←</span> Previous
|
||||
</button>
|
||||
<button type="button" class="next-step-btn bg-indigo-700 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 transition-colors">
|
||||
<button type="button" class="next-step-btn bg-green-300 hover:bg-indigo-800 text-white font-semibold py-2 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 transition-colors">
|
||||
Next <span aria-hidden="true">→</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -184,29 +184,29 @@
|
||||
|
||||
<!-- Step 4: Contact Information -->
|
||||
<div id="step-4" class="form-step hidden">
|
||||
<h2 class="text-xl sm:text-2xl font-semibold text-indigo-700 mb-6">Step 4: Contact Information</h2>
|
||||
<h2 class="text-xl sm:text-2xl font-semibold text-green-300 mb-6">Step 4: Contact Information</h2>
|
||||
<div class="space-y-5">
|
||||
<div>
|
||||
<label for="space-name" class="block text-sm font-medium text-gray-700 mb-1">Coworking Space Name</label>
|
||||
<input type="text" id="space-name" name="space_name" placeholder="e.g., The Productive Corner" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm">
|
||||
<input type="text" id="space-name" name="space_name" placeholder="e.g., The Productive Corner" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm">
|
||||
</div>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label for="contact-first-name" class="block text-sm font-medium text-gray-700 mb-1">Contact Person - First Name</label>
|
||||
<input type="text" id="contact-first-name" name="contact_first_name" placeholder="John" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm">
|
||||
<input type="text" id="contact-first-name" name="contact_first_name" placeholder="John" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label for="contact-last-name" class="block text-sm font-medium text-gray-700 mb-1">Contact Person - Last Name</label>
|
||||
<input type="text" id="contact-last-name" name="contact_last_name" placeholder="Doe" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm">
|
||||
<input type="text" id="contact-last-name" name="contact_last_name" placeholder="Doe" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm">
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="contact-number" class="block text-sm font-medium text-gray-700 mb-1">Contact Number</label>
|
||||
<input type="tel" id="contact-number" name="contact_number" placeholder="e.g., 09171234567 or +639171234567" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm">
|
||||
<input type="tel" id="contact-number" name="contact_number" placeholder="e.g., 09171234567 or +639171234567" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label for="contact-email" class="block text-sm font-medium text-gray-700 mb-1">Email Address</label>
|
||||
<input type="email" id="contact-email" name="contact_email" placeholder="you@example.com" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-indigo-700 sm:text-sm">
|
||||
<input type="email" id="contact-email" name="contact_email" placeholder="you@example.com" class="w-full px-3 py-2 border border-gray-400 rounded-sm focus:outline-none focus:border-green-300 sm:text-sm">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-8 flex justify-between items-center">
|
||||
@@ -233,7 +233,7 @@
|
||||
color: #4338ca; /* indigo-700 */
|
||||
font-weight: 600; /* semibold */
|
||||
}
|
||||
.step-indicator .bg-indigo-700 {
|
||||
.step-indicator .bg-green-300 {
|
||||
/* Active indicator circle */
|
||||
}
|
||||
.step-indicator .bg-gray-300 {
|
||||
@@ -263,18 +263,18 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
if (index === activeIndex) {
|
||||
circle.classList.remove('bg-gray-300');
|
||||
circle.classList.add('bg-indigo-700', 'text-white');
|
||||
circle.classList.add('bg-green-300', 'text-white');
|
||||
text.classList.remove('text-gray-500');
|
||||
text.classList.add('text-indigo-700', 'font-semibold');
|
||||
text.classList.add('text-green-300', 'font-semibold');
|
||||
} else if (index < activeIndex) { // Completed steps
|
||||
circle.classList.remove('bg-gray-300');
|
||||
circle.classList.add('bg-indigo-700', 'text-white'); // Mark as completed
|
||||
text.classList.remove('text-gray-500', 'text-indigo-700', 'font-semibold');
|
||||
circle.classList.add('bg-green-300', 'text-white'); // Mark as completed
|
||||
text.classList.remove('text-gray-500', 'text-green-300', 'font-semibold');
|
||||
text.classList.add('text-gray-700'); // Neutral color for completed text
|
||||
} else { // Future steps
|
||||
circle.classList.remove('bg-indigo-700', 'text-white');
|
||||
circle.classList.remove('bg-green-300', 'text-white');
|
||||
circle.classList.add('bg-gray-300');
|
||||
text.classList.remove('text-indigo-700', 'font-semibold');
|
||||
text.classList.remove('text-green-300', 'font-semibold');
|
||||
text.classList.add('text-gray-500');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user