Change base color

This commit is contained in:
Kerby Martino committed 2025-05-12 19:39:24 +08:00
1 parent de689495a7
commit 01cb2e0dc3
18 files changed
+102 -94

No files matched your search

+17 -17
View File
@@ -21,7 +21,7 @@
<!-- Step Indicators (Compact) -->
<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>
<div class="w-8 h-8 mx-auto rounded-full bg-green-300 text-white flex items-center justify-center text-xs">1</div>
<p class="text-sm mt-1 font-heading">Description</p>
</div>
<div id="step-indicator-2-modal" class="step-indicator-modal text-center text-gray-500 flex-1">
@@ -41,11 +41,11 @@
<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 font-heading">Step 1: Listing Description</h2>
<h2 class="text-lg font-semibold text-green-300 mb-4 font-heading">Step 1: Listing Description</h2>
<div class="space-y-4">
<div>
<label for="photo-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Listing Photo</label>
<input type="file" id="photo-modal" name="photo" class="w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-sm 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-300 rounded-sm cursor-pointer focus:outline-none focus:border-indigo-600" accept="image/*">
<input type="file" id="photo-modal" name="photo" class="w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-sm 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-300 rounded-sm cursor-pointer focus:outline-none focus:border-indigo-600" accept="image/*">
<p class="text-sm text-gray-500 mt-1">Upload one image (JPG, PNG).</p>
</div>
<div>
@@ -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-base inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
<button type="button" class="next-step-btn-modal bg-green-900 text-gray-100 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 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,7 +77,7 @@
<!-- Step 2: Location -->
<div id="step-2-modal" class="form-step-modal hidden">
<h2 class="text-lg font-semibold text-indigo-700 mb-4 font-heading">Step 2: Location</h2>
<h2 class="text-lg font-semibold text-green-300 mb-4 font-heading">Step 2: Location</h2>
<div class="space-y-4">
<div class="relative">
<label for="location-search-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Select Location</label>
@@ -102,13 +102,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-base inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
<button type="button" class="prev-step-btn-modal bg-gray-100 text-green-900 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 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-base inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
<button type="button" class="next-step-btn-modal bg-green-900 text-gray-100 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 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,7 +116,7 @@
<!-- 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 font-heading">Step 3: Price & Availability</h2>
<h2 class="text-lg font-semibold text-green-300 mb-4 font-heading">Step 3: Price & Availability</h2>
<div class="space-y-4">
<div>
<label for="price-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Price (PHP per day)</label>
@@ -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-base inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
<button type="button" class="prev-step-btn-modal bg-gray-100 text-green-900 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 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-base inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
<button type="button" class="next-step-btn-modal bg-green-900 text-gray-100 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 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,7 +205,7 @@
<!-- 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 font-heading">Step 4: Contact Information</h2>
<h2 class="text-lg font-semibold text-green-300 mb-4 font-heading">Step 4: Contact Information</h2>
<div class="space-y-4">
<div>
<label for="space-name-modal" class="block text-sm font-medium text-gray-700 mb-1 font-heading">Coworking Space Name</label>
@@ -231,13 +231,13 @@
</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-base inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
<button type="button" class="prev-step-btn-modal bg-gray-100 text-green-900 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 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-base inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700 font-heading">
<button type="submit" class="bg-green-900 text-gray-100 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading">
Submit Listing
</button>
</div>
@@ -258,7 +258,7 @@
color: #4f46e5; /* indigo-600 */
font-weight: 600; /* semibold */
}
.step-indicator-modal .bg-indigo-700 { /* Active indicator circle */ }
.step-indicator-modal .bg-green-300 { /* Active indicator circle */ }
.step-indicator-modal .bg-gray-300 { /* Inactive indicator circle */ }
</style>
@@ -289,16 +289,16 @@ 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-600', 'font-semibold');
} else 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-indigo-600', 'font-semibold');
text.classList.add('text-gray-700');
} else {
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-600', 'font-semibold');
text.classList.add('text-gray-500');