style: update step indicator and form step colors

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-12 20:21:59 +08:00
1 parent e9db48d98c
commit f5ee353a7a
1 file changed
+11 -12
+11 -12
View File
@@ -21,19 +21,19 @@
<!-- 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-green-300 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-green-900 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">
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 flex items-center justify-center text-xs">2</div>
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 text-green-900 flex items-center justify-center text-xs">2</div>
<p class="text-sm 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>
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 text-green-900 flex items-center justify-center text-xs">3</div>
<p class="text-sm 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>
<div class="w-8 h-8 mx-auto rounded-full bg-gray-300 text-green-900 flex items-center justify-center text-xs">4</div>
<p class="text-sm mt-1 font-heading">Contact</p>
</div>
</div>
@@ -41,7 +41,7 @@
<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-green-300 mb-4 font-heading">Step 1: Listing Description</h2>
<h2 class="text-lg font-semibold text-green-900 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>
@@ -77,7 +77,7 @@
<!-- Step 2: Location -->
<div id="step-2-modal" class="form-step-modal hidden">
<h2 class="text-lg font-semibold text-green-300 mb-4 font-heading">Step 2: Location</h2>
<h2 class="text-lg font-semibold text-green-900 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>
@@ -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-green-300 mb-4 font-heading">Step 3: Price & Availability</h2>
<h2 class="text-lg font-semibold text-green-900 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>
@@ -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-green-300 mb-4 font-heading">Step 4: Contact Information</h2>
<h2 class="text-lg font-semibold text-green-900 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>
@@ -255,7 +255,6 @@
display: block !important;
}
.step-indicator-modal.active-step-modal p {
color: #4f46e5; /* indigo-600 */
font-weight: 600; /* semibold */
}
.step-indicator-modal .bg-green-300 { /* Active indicator circle */ }
@@ -289,16 +288,16 @@ document.addEventListener('DOMContentLoaded', function () {
if (index === activeIndex) {
circle.classList.remove('bg-gray-300');
circle.classList.add('bg-green-300', 'text-white');
circle.classList.add('bg-green-300', 'text-green-900');
text.classList.remove('text-gray-500');
text.classList.add('text-green-900', 'font-semibold');
} else if (index < activeIndex) {
circle.classList.remove('bg-gray-300');
circle.classList.add('bg-green-300', 'text-white');
circle.classList.add('bg-green-300', 'text-green-900');
text.classList.remove('text-gray-500', 'text-green-900', 'font-semibold');
text.classList.add('text-gray-700');
} else {
circle.classList.remove('bg-green-300', 'text-white');
circle.classList.remove('bg-green-300', 'text-green-900');
circle.classList.add('bg-gray-300');
text.classList.remove('text-green-900', 'font-semibold');
text.classList.add('text-gray-500');