<!DOCTYPE html>
Browse files<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Agent Activation Station</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
</head>
<body class="bg-gray-50">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 pt-2 pb-12 max-w-4xl">
<div class="text-center mb-4">
<p class="text-sm text-gray-600">Choose the agent you want to test</p>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4 mb-12">
<!-- Quote Follow Up Agent -->
<div class="agent-card bg-gradient-to-br from-blue-50 to-blue-100" data-agent="quote">
<div class="agent-icon bg-blue-100 text-blue-600">
<i data-feather="file-text"></i>
</div>
<h3>Quote Follow Up</h3>
<p>Automatically follow up on sent quotes</p>
<div class="agent-form hidden mt-4">
<input type="tel" inputmode="numeric" pattern="[0-9+]*" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 021 234 5678">
<button class="agent-activate-btn w-full px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors">Activate Agent</button>
</div>
</div>
<!-- Invoice Follow Up Agent -->
<div class="agent-card bg-gradient-to-br from-purple-50 to-purple-100" data-agent="invoice">
<div class="agent-icon bg-purple-100 text-purple-600">
<i data-feather="dollar-sign"></i>
</div>
<h3>Invoice Follow Up</h3>
<p>Gentle reminders for unpaid invoices</p>
<div class="agent-form hidden mt-4">
<input type="tel" inputmode="numeric" pattern="[0-9+]*" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 021 234 5678">
<button class="agent-activate-btn w-full px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors">Activate Agent</button>
</div>
</div>
<!-- Google Review Agent -->
<div class="agent-card bg-gradient-to-br from-green-50 to-green-100" data-agent="review">
<div class="agent-icon bg-green-100 text-green-600">
<i data-feather="star"></i>
</div>
<h3>Google Review</h3>
<p>Collect customer reviews automatically</p>
<div class="agent-form hidden mt-4">
<input type="tel" inputmode="numeric" pattern="[0-9+]*" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 021 234 5678">
<button class="agent-activate-btn w-full px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors">Activate Agent</button>
</div>
</div>
<!-- Lead Reactivation Agent -->
<div class="agent-card bg-gradient-to-br from-yellow-50 to-yellow-100" data-agent="lead">
<div class="agent-icon bg-yellow-100 text-yellow-600">
<i data-feather="refresh-cw"></i>
</div>
<h3>Lead Reactivation</h3>
<p>Re-engage cold leads with personalized messages</p>
<div class="agent-form hidden mt-4">
<input type="tel" inputmode="numeric" pattern="[0-9+]*" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 021 234 5678">
<button class="agent-activate-btn w-full px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors">Activate Agent</button>
</div>
</div>
<!-- Conversational Agent -->
<div class="agent-card bg-gradient-to-br from-red-50 to-red-100" data-agent="conversation">
<div class="agent-icon bg-red-100 text-red-600">
<i data-feather="message-square"></i>
</div>
<h3>Conversational</h3>
<p>Natural language customer interactions</p>
<div class="agent-form hidden mt-4">
<input type="tel" inputmode="numeric" pattern="[0-9+]*" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 021 234 5678">
<button class="agent-activate-btn w-full px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors">Activate Agent</button>
</div>
</div>
<!-- Speed to Lead Agent -->
<div class="agent-card bg-gradient-to-br from-indigo-50 to-indigo-100" data-agent="speed-lead">
<div class="agent-icon bg-indigo-100 text-indigo-600">
<i data-feather="zap"></i>
</div>
<h3>Speed to Lead</h3>
<p>Instant response to new leads</p>
<div class="agent-form hidden mt-4">
<input type="tel" inputmode="numeric" pattern="[0-9+]*" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 021 234 5678">
<button class="agent-activate-btn w-full px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition-colors">Activate Agent</button>
</div>
</div>
</div>
<div id="confirmation" class="hidden mt-4 mx-auto p-4 bg-blue-50 text-blue-800 rounded-lg max-w-md text-center">
<i data-feather="check-circle" class="inline mr-2"></i>
<span>Agent activated successfully! You'll receive a confirmation shortly.</span>
</div>
</main>
<section class="contact-section">
<div class="container mx-auto px-4 text-center">
<h3 class="text-xl font-semibold">Need help?</h3>
<p>Call us directly and we'll assist you</p>
<a href="tel:+64212833378" class="inline-flex items-center px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors mt-4">
<i data-feather="phone" class="mr-2"></i>
021 283 3378
</a>
</div>
</section>
<custom-footer></custom-footer>
<script>feather.replace();</script>
<script src="script.js"></script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>
- index.html +1 -1
- script.js +15 -2
- style.css +2 -0
|
@@ -26,7 +26,7 @@
|
|
| 26 |
<h3>Quote Follow Up</h3>
|
| 27 |
<p>Automatically follow up on sent quotes</p>
|
| 28 |
<div class="agent-form hidden mt-4">
|
| 29 |
-
|
| 30 |
<button class="agent-activate-btn w-full px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors">
|
| 31 |
Activate Agent
|
| 32 |
</button>
|
|
|
|
| 26 |
<h3>Quote Follow Up</h3>
|
| 27 |
<p>Automatically follow up on sent quotes</p>
|
| 28 |
<div class="agent-form hidden mt-4">
|
| 29 |
+
<input type="tel" inputmode="numeric" pattern="[0-9+]*" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 021 234 5678">
|
| 30 |
<button class="agent-activate-btn w-full px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors">
|
| 31 |
Activate Agent
|
| 32 |
</button>
|
|
@@ -8,8 +8,21 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 8 |
const phoneInput = card.querySelector('.agent-phone');
|
| 9 |
const activateBtn = card.querySelector('.agent-activate-btn');
|
| 10 |
// Format phone number input
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
let startPos = input.selectionStart;
|
| 14 |
let endPos = input.selectionEnd;
|
| 15 |
|
|
|
|
| 8 |
const phoneInput = card.querySelector('.agent-phone');
|
| 9 |
const activateBtn = card.querySelector('.agent-activate-btn');
|
| 10 |
// Format phone number input
|
| 11 |
+
phoneInput.addEventListener('keydown', function(e) {
|
| 12 |
+
// Allow navigation keys
|
| 13 |
+
if ([8, 9, 13, 37, 38, 39, 40].includes(e.keyCode)) {
|
| 14 |
+
return;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
// Allow only numbers and +
|
| 18 |
+
if (!/[\d+]/.test(e.key)) {
|
| 19 |
+
e.preventDefault();
|
| 20 |
+
return;
|
| 21 |
+
}
|
| 22 |
+
});
|
| 23 |
+
|
| 24 |
+
phoneInput.addEventListener('input', function(e) {
|
| 25 |
+
let input = e.target;
|
| 26 |
let startPos = input.selectionStart;
|
| 27 |
let endPos = input.selectionEnd;
|
| 28 |
|
|
@@ -64,6 +64,8 @@ body {
|
|
| 64 |
.agent-phone {
|
| 65 |
font-size: 14px;
|
| 66 |
transition: all 0.2s;
|
|
|
|
|
|
|
| 67 |
}
|
| 68 |
.agent-phone:focus {
|
| 69 |
outline: none;
|
|
|
|
| 64 |
.agent-phone {
|
| 65 |
font-size: 14px;
|
| 66 |
transition: all 0.2s;
|
| 67 |
+
font-family: monospace;
|
| 68 |
+
letter-spacing: 0.5px;
|
| 69 |
}
|
| 70 |
.agent-phone:focus {
|
| 71 |
outline: none;
|