create a quoting website for vehicle insurance company - Follow Up Deployment
Browse files- index.html +38 -17
- prompts.txt +2 -1
index.html
CHANGED
|
@@ -10,6 +10,7 @@
|
|
| 10 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 12 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
|
|
|
| 13 |
<style>
|
| 14 |
.hero-gradient {
|
| 15 |
background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
|
|
@@ -141,21 +142,41 @@
|
|
| 141 |
<input type="tel" id="phone" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 142 |
</div>
|
| 143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
<!-- Vehicle Information -->
|
| 145 |
<div class="md:col-span-2 mt-4">
|
| 146 |
<h3 class="text-xl font-semibold text-gray-800 mb-4 border-b pb-2">Vehicle Information</h3>
|
| 147 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
<div>
|
| 149 |
<label for="make" class="block text-gray-700 mb-2">Make</label>
|
| 150 |
-
<
|
| 151 |
-
<option value="">Select Make</option>
|
| 152 |
-
<option value="toyota">Toyota</option>
|
| 153 |
-
<option value="honda">Honda</option>
|
| 154 |
-
<option value="ford">Ford</option>
|
| 155 |
-
<option value="chevrolet">Chevrolet</option>
|
| 156 |
-
<option value="bmw">BMW</option>
|
| 157 |
-
<option value="mercedes">Mercedes-Benz</option>
|
| 158 |
-
</select>
|
| 159 |
</div>
|
| 160 |
<div>
|
| 161 |
<label for="model" class="block text-gray-700 mb-2">Model</label>
|
|
@@ -163,14 +184,7 @@
|
|
| 163 |
</div>
|
| 164 |
<div>
|
| 165 |
<label for="year" class="block text-gray-700 mb-2">Year</label>
|
| 166 |
-
<
|
| 167 |
-
<option value="">Select Year</option>
|
| 168 |
-
<script>
|
| 169 |
-
for(let i = new Date().getFullYear(); i >= 1990; i--) {
|
| 170 |
-
document.write(`<option value="${i}">${i}</option>`);
|
| 171 |
-
}
|
| 172 |
-
</script>
|
| 173 |
-
</select>
|
| 174 |
</div>
|
| 175 |
<div>
|
| 176 |
<label for="mileage" class="block text-gray-700 mb-2">Mileage</label>
|
|
@@ -446,6 +460,13 @@
|
|
| 446 |
|
| 447 |
// Initialize feather icons
|
| 448 |
feather.replace();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 449 |
|
| 450 |
// FAQ toggle functionality
|
| 451 |
document.querySelectorAll('.faq-btn').forEach(button => {
|
|
|
|
| 10 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 12 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
| 13 |
+
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
| 14 |
<style>
|
| 15 |
.hero-gradient {
|
| 16 |
background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
|
|
|
|
| 142 |
<input type="tel" id="phone" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 143 |
</div>
|
| 144 |
|
| 145 |
+
<!-- Address Information -->
|
| 146 |
+
<div class="md:col-span-2 mt-4">
|
| 147 |
+
<h3 class="text-xl font-semibold text-gray-800 mb-4 border-b pb-2">Address Information</h3>
|
| 148 |
+
</div>
|
| 149 |
+
<div class="md:col-span-2">
|
| 150 |
+
<label for="address-search" class="block text-gray-700 mb-2">Search NZ Address</label>
|
| 151 |
+
<div class="relative">
|
| 152 |
+
<input type="text" id="address-search" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Start typing your address...">
|
| 153 |
+
<button type="button" id="address-search-btn" class="absolute right-2 top-2 text-gray-500 hover:text-blue-600">
|
| 154 |
+
<i data-feather="search" class="w-5 h-5"></i>
|
| 155 |
+
</button>
|
| 156 |
+
</div>
|
| 157 |
+
<div id="address-results" class="hidden mt-2 border border-gray-200 rounded-md max-h-40 overflow-y-auto"></div>
|
| 158 |
+
</div>
|
| 159 |
+
<div class="md:col-span-2">
|
| 160 |
+
<label for="address" class="block text-gray-700 mb-2">Full Address</label>
|
| 161 |
+
<textarea id="address" rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" readonly></textarea>
|
| 162 |
+
</div>
|
| 163 |
+
|
| 164 |
<!-- Vehicle Information -->
|
| 165 |
<div class="md:col-span-2 mt-4">
|
| 166 |
<h3 class="text-xl font-semibold text-gray-800 mb-4 border-b pb-2">Vehicle Information</h3>
|
| 167 |
</div>
|
| 168 |
+
<div class="md:col-span-2">
|
| 169 |
+
<label for="rego" class="block text-gray-700 mb-2">Vehicle Registration (REGO)</label>
|
| 170 |
+
<div class="relative">
|
| 171 |
+
<input type="text" id="rego" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Enter NZ vehicle registration">
|
| 172 |
+
<button type="button" id="rego-search-btn" class="absolute right-2 top-2 text-gray-500 hover:text-blue-600">
|
| 173 |
+
<i data-feather="search" class="w-5 h-5"></i>
|
| 174 |
+
</button>
|
| 175 |
+
</div>
|
| 176 |
+
</div>
|
| 177 |
<div>
|
| 178 |
<label for="make" class="block text-gray-700 mb-2">Make</label>
|
| 179 |
+
<input type="text" id="make" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" readonly>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
</div>
|
| 181 |
<div>
|
| 182 |
<label for="model" class="block text-gray-700 mb-2">Model</label>
|
|
|
|
| 184 |
</div>
|
| 185 |
<div>
|
| 186 |
<label for="year" class="block text-gray-700 mb-2">Year</label>
|
| 187 |
+
<input type="text" id="year" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" readonly>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
</div>
|
| 189 |
<div>
|
| 190 |
<label for="mileage" class="block text-gray-700 mb-2">Mileage</label>
|
|
|
|
| 460 |
|
| 461 |
// Initialize feather icons
|
| 462 |
feather.replace();
|
| 463 |
+
|
| 464 |
+
// Close address results when clicking outside
|
| 465 |
+
document.addEventListener('click', function(e) {
|
| 466 |
+
if (!e.target.closest('#address-search') && !e.target.closest('#address-results')) {
|
| 467 |
+
document.getElementById('address-results').classList.add('hidden');
|
| 468 |
+
}
|
| 469 |
+
});
|
| 470 |
|
| 471 |
// FAQ toggle functionality
|
| 472 |
document.querySelectorAll('.faq-btn').forEach(button => {
|
prompts.txt
CHANGED
|
@@ -2,4 +2,5 @@ create a quoting website for vehicle insurance company
|
|
| 2 |
add home address and use NZ post address checker to autofill.
|
| 3 |
Also, use REGO search to auto popolate all car details
|
| 4 |
add home address and use NZ post address checker to autofill.
|
| 5 |
-
Also, use REGO search to auto popolate all car details
|
|
|
|
|
|
| 2 |
add home address and use NZ post address checker to autofill.
|
| 3 |
Also, use REGO search to auto popolate all car details
|
| 4 |
add home address and use NZ post address checker to autofill.
|
| 5 |
+
Also, use REGO search to auto popolate all car details
|
| 6 |
+
create a quoting website for vehicle insurance company
|