File size: 29,551 Bytes
4333bdf af169c1 4333bdf af169c1 18f3523 af169c1 18f3523 af169c1 4333bdf af169c1 18f3523 af169c1 18f3523 af169c1 9c43e1b 18f3523 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Hero Space</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.hero-container {
position: relative;
height: 100vh;
width: 100%;
overflow: hidden;
background: url('https://huggingface.co/spaces/tejkdno1/tej/resolve/main/images/Screenshot%202025-09-18%20at%2020.06.30.png') no-repeat center center;
background-size: cover;
}
#chatContainer::-webkit-scrollbar {
display: none;
}
#chatContainer {
-ms-overflow-style: none;
scrollbar-width: none;
}
.hero-content {
position: relative;
z-index: 10;
}
.gradient-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
}
</style>
</head>
<body class="bg-gray-900 text-white">
<header class="fixed w-full z-50 bg-transparent backdrop-blur-sm">
<nav class="container mx-auto px-6 py-4 flex justify-between items-center">
<div class="text-2xl font-bold text-black">
<span class="text-blue-500">LeadsCruise</span><span class="text-black">AI</span>
</div>
<div class="hidden md:flex items-center space-x-6">
<a href="#" class="text-black hover:text-blue-400 transition">Home</a>
<a href="#" class="text-black hover:text-blue-400 transition">Features</a>
<a href="#" class="text-black hover:text-blue-400 transition">About</a>
<a href="#" class="text-black hover:text-blue-400 transition">Contact</a>
<div class="h-6 w-px bg-white"></div>
<button class="px-4 py-2 bg-black bg-opacity-70 hover:bg-opacity-90 rounded-md font-medium transition-all mr-2">
Sign In
</button>
</div>
<button class="md:hidden">
<i data-feather="menu"></i>
</button>
</nav>
</header>
<div id="vanta-bg" class="hero-container pt-16">
<div class="gradient-overlay"></div>
<div class="hero-content container mx-auto px-6 flex flex-col justify-center h-full">
<div data-aos="fade-up" data-aos-duration="1000" class="w-full max-w-3xl mx-auto">
<div class="bg-transparent backdrop-blur-lg rounded-xl p-6 shadow-xl">
<div class="flex items-center mb-4">
<div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center mr-3">
<i data-feather="message-square" class="w-4 h-4 text-white"></i>
</div>
<h3 class="text-xl font-semibold text-black">LeadsCruise AI</h3>
</div>
<div class="h-64 overflow-y-auto mb-4 bg-transparent rounded-lg p-4 hovered-element" id="chatContainer">
<div class="flex justify-start mb-4 message-group">
<div class="w-8 h-8 rounded-full bg-gray-600 flex items-center justify-center mr-3 flex-shrink-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user w-4 h-4 text-white"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
</div>
<div class="bg-gray-700 rounded-lg p-3 max-w-[80%]">
<p>Hello! What can you do for me?</p>
</div>
</div>
<div class="flex justify-end mb-4 message-group">
<div class="bg-green-600 rounded-lg p-3 max-w-[80%]">
<p>I'm LeadsCruise AI! I can help generate leads, answer questions, and boost your business growth!</p>
</div>
<div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center ml-3 flex-shrink-0">
<i data-feather="rocket" class="w-4 h-4 text-white"></i>
</div>
</div>
<div class="flex justify-start mb-4">
<div class="w-8 h-8 rounded-full bg-gray-600 flex items-center justify-center mr-3 flex-shrink-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user w-4 h-4 text-white"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
</div>
<div class="bg-gray-700 rounded-lg p-3 max-w-[80%]">
<p>How does your lead generation work?</p>
</div>
</div>
<div class="flex justify-end mb-4">
<div class="bg-green-600 rounded-lg p-3 max-w-[80%]">
<p>I use advanced AI algorithms to analyze market trends and identify high-quality leads tailored to your business needs.</p>
</div>
<div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center ml-3 flex-shrink-0">
<i data-feather="rocket" class="w-4 h-4 text-white"></i>
</div>
</div>
<div class="flex justify-start mb-4">
<div class="w-8 h-8 rounded-full bg-gray-600 flex items-center justify-center mr-3 flex-shrink-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user w-4 h-4 text-white"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
</div>
<div class="bg-gray-700 rounded-lg p-3 max-w-[80%]">
<p>What industries do you specialize in?</p>
</div>
</div>
<div class="flex justify-end mb-4">
<div class="bg-green-600 rounded-lg p-3 max-w-[80%]">
<p>I work across all industries including tech, healthcare, finance, and more. My AI adapts to your specific requirements.</p>
</div>
<div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center ml-3 flex-shrink-0">
<i data-feather="rocket" class="w-4 h-4 text-white"></i>
</div>
</div>
<div class="flex justify-start mb-4">
<div class="w-8 h-8 rounded-full bg-gray-600 flex items-center justify-center mr-3 flex-shrink-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user w-4 h-4 text-white"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
</div>
<div class="bg-gray-700 rounded-lg p-3 max-w-[80%]">
<p>Can you integrate with my CRM?</p>
</div>
</div>
<div class="flex justify-end mb-4">
<div class="bg-green-600 rounded-lg p-3 max-w-[80%]">
<p>Absolutely! I seamlessly integrate with popular CRMs like Salesforce, HubSpot, and Zoho.</p>
</div>
<div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center ml-3 flex-shrink-0">
<i data-feather="rocket" class="w-4 h-4 text-white"></i>
</div>
</div>
<div class="flex justify-start mb-4">
<div class="w-8 h-8 rounded-full bg-gray-600 flex items-center justify-center mr-3 flex-shrink-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user w-4 h-4 text-white"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
</div>
<div class="bg-gray-700 rounded-lg p-3 max-w-[80%]">
<p>How accurate are your lead predictions?</p>
</div>
</div>
<div class="flex justify-end mb-4">
<div class="bg-green-600 rounded-lg p-3 max-w-[80%]">
<p>Our AI achieves 92% accuracy on average, with continuous learning to improve results over time.</p>
</div>
<div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center ml-3 flex-shrink-0">
<i data-feather="rocket" class="w-4 h-4 text-white"></i>
</div>
</div>
<div class="flex justify-start mb-4">
<div class="w-8 h-8 rounded-full bg-gray-600 flex items-center justify-center mr-3 flex-shrink-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user w-4 h-4 text-white"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
</div>
<div class="bg-gray-700 rounded-lg p-3 max-w-[80%]">
<p>What's your pricing model?</p>
</div>
</div>
<div class="flex justify-end mb-4">
<div class="bg-green-600 rounded-lg p-3 max-w-[80%]">
<p>We offer flexible pricing based on your needs - from pay-as-you-go to enterprise subscriptions.</p>
</div>
<div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center ml-3 flex-shrink-0">
<i data-feather="rocket" class="w-4 h-4 text-white"></i>
</div>
</div>
<div class="flex justify-start mb-4">
<div class="w-8 h-8 rounded-full bg-gray-600 flex items-center justify-center mr-3 flex-shrink-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user w-4 h-4 text-white"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
</div>
<div class="bg-gray-700 rounded-lg p-3 max-w-[80%]">
<p>How quickly can I see results?</p>
</div>
</div>
<div class="flex justify-end mb-4">
<div class="bg-green-600 rounded-lg p-3 max-w-[80%]">
<p>Most clients see measurable improvements within the first 30 days of implementation.</p>
</div>
<div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center ml-3 flex-shrink-0">
<i data-feather="rocket" class="w-4 h-4 text-white"></i>
</div>
</div>
</div>
<button class="w-full bg-black hover:bg-gray-800 text-white font-medium py-2 px-3 rounded-md transition-all flex items-center justify-center">
A Growth at which your competitor coudnt even think off!<i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
</button>
<div class="mt-4 text-center text-sm text-gray-600">
Join thousands of businesses already cruising with us
</div>
</div>
</div>
</div>
</div>
<div class="py-16 bg-white">
<div class="container mx-auto px-6">
<h2 class="text-3xl md:text-4xl font-bold text-center text-gray-900 mb-12">Key Features</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-6xl mx-auto">
<div class="bg-gray-50 rounded-lg p-6 border border-gray-200">
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mb-4">
<i data-feather="zap" class="w-6 h-6 text-blue-600"></i>
</div>
<h3 class="text-xl font-semibold text-gray-900 mb-2">Lightning Fast</h3>
<p class="text-gray-600">Generate high-quality leads in seconds with our advanced AI algorithms.</p>
</div>
<div class="bg-gray-50 rounded-lg p-6 border border-gray-200">
<div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mb-4">
<i data-feather="target" class="w-6 h-6 text-green-600"></i>
</div>
<h3 class="text-xl font-semibold text-gray-900 mb-2">Precision Targeting</h3>
<p class="text-gray-600">Reach the right audience with our精准 targeting capabilities.</p>
</div>
<div class="bg-gray-50 rounded-lg p-6 border border-gray-200">
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mb-4">
<i data-feather="trending-up" class="w-6 h-6 text-purple-600"></i>
</div>
<h3 class="text-xl font-semibold text-gray-900 mb-2">Growth Focused</h3>
<p class="text-gray-600">Accelerate your business growth with actionable insights and leads.</p>
</div>
</div>
</div>
</div>
<div class="py-16" style="background: url('https://huggingface.co/spaces/tejkdno1/tej/resolve/main/images/Screenshot%202025-09-18%20at%2020.06.30.png') no-repeat center center; background-size: cover;">
<div class="container mx-auto px-6">
<h2 class="text-3xl md:text-4xl font-bold text-center text-black mb-12">Pricing Plans</h2>
<div class="grid grid-cols-1 md:grid-cols-4 gap-8 max-w-6xl mx-auto">
<div class="bg-white bg-opacity-90 rounded-lg p-6 border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-4">Starter</h3>
<div class="text-3xl font-light text-gray-900 mb-4">$29<span class="text-lg">/month</span></div>
<ul class="space-y-3 text-gray-600 mb-6">
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> 100 Leads/month</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> Basic Analytics</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> Email Support</li>
<li class="flex items-center"><i data-feather="x" class="w-4 h-4 mr-2 text-red-500"></i> CRM Integration</li>
</ul>
<button class="w-full bg-gray-800 hover:bg-black text-white font-light py-2 px-4 rounded transition">Get Started</button>
</div>
<div class="bg-white bg-opacity-90 rounded-lg p-6 border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-4">Professional</h3>
<div class="text-3xl font-light text-gray-900 mb-4">$79<span class="text-lg">/month</span></div>
<ul class="space-y-3 text-gray-600 mb-6">
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> 500 Leads/month</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> Advanced Analytics</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> Priority Support</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> CRM Integration</li>
</ul>
<button class="w-full bg-gray-800 hover:bg-black text-white font-light py-2 px-4 rounded transition">Get Started</button>
</div>
<div class="bg-white bg-opacity-90 rounded-lg p-6 border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-4">Business</h3>
<div class="text-3xl font-light text-gray-900 mb-4">$199<span class="text-lg">/month</span></div>
<ul class="space-y-3 text-gray-600 mb-6">
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> 2000 Leads/month</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> Premium Analytics</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> 24/7 Support</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> Advanced CRM Integration</li>
</ul>
<button class="w-full bg-gray-800 hover:bg-black text-white font-light py-2 px-4 rounded transition">Get Started</button>
</div>
<div class="bg-white bg-opacity-90 rounded-lg p-6 border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-4">Enterprise</h3>
<div class="text-3xl font-light text-gray-900 mb-4">Custom</div>
<ul class="space-y-3 text-gray-600 mb-6">
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> Unlimited Leads</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> Custom Analytics</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> Dedicated Support</li>
<li class="flex items-center"><i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i> Full Integration Suite</li>
</ul>
<button class="w-full bg-gray-800 hover:bg-black text-white font-light py-2 px-4 rounded transition">Contact Us</button>
</div>
</div>
</div>
</div>
<div class="py-16 bg-white">
<div class="container mx-auto px-6">
<h2 class="text-3xl md:text-4xl font-bold text-center text-gray-900 mb-12">Frequently Asked Questions</h2>
<div class="max-w-3xl mx-auto">
<div class="space-y-4">
<div class="border border-gray-200 rounded-lg p-6">
<h3 class="text-xl font-semibold text-gray-900 mb-2">How does LeadsCruise AI generate leads?</h3>
<p class="text-gray-600">Our AI uses advanced algorithms to analyze market trends, customer behavior, and industry data to identify high-quality leads that are most likely to convert for your business.</p>
</div>
<div class="border border-gray-200 rounded-lg p-6">
<h3 class="text-xl font-semibold text-gray-900 mb-2">What industries do you specialize in?</h3>
<p class="text-gray-600">We work across all industries including technology, healthcare, finance, e-commerce, and more. Our AI adapts to your specific business requirements and industry standards.</p>
</div>
<div class="border border-gray-200 rounded-lg p-6">
<h3 class="text-xl font-semibold text-gray-900 mb-2">How quickly can I see results?</h3>
<p class="text-gray-600">Most clients see measurable improvements within the first 30 days. However, optimal results are typically achieved after 60-90 days of consistent usage as the AI learns your specific patterns.</p>
</div>
<div class="border border-gray-200 rounded-lg p-6">
<h3 class="text-xl font-semibold text-gray-900 mb-2">Can I integrate with my existing CRM?</h3>
<p class="text-gray-600">Yes, LeadsCruise AI seamlessly integrates with popular CRMs like Salesforce, HubSpot, Zoho, and many others. We also provide API access for custom integrations.</p>
</div>
<div class="border border-gray-200 rounded-lg p-6">
<h3 class="text-xl font-semibold text-gray-900 mb-2">What makes your AI different from competitors?</h3>
<p class="text-gray-600">Our proprietary AI models are trained on industry-specific data and continuously learn from your feedback. We focus on lead quality over quantity and provide detailed analytics on lead performance.</p>
</div>
</div>
</div>
</div>
</div>
<footer class="bg-gray-800 py-12">
<div class="container mx-auto px-6">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4">LeadsCruise</h3>
<p class="text-gray-400">Accelerating your business growth with AI.</p>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Quick Links</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Home</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">About</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Services</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Contact</h4>
<ul class="space-y-2 text-gray-400">
<li class="flex items-center"><i data-feather="mail" class="mr-2"></i> info@modernspace.com</li>
<li class="flex items-center"><i data-feather="phone" class="mr-2"></i> +1 (555) 123-4567</li>
<li class="flex items-center"><i data-feather="map-pin" class="mr-2"></i> 123 Tech Street</li>
</ul>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Follow Us</h4>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="facebook"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="instagram"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="linkedin"></i></a>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-500">
<p>© 2023 ModernSpace. All rights reserved.</p>
</div>
</div>
</footer>
<script>
AOS.init();
feather.replace();
// Parallax effect
document.addEventListener('DOMContentLoaded', function() {
const parallaxElements = document.querySelectorAll('[data-parallax]');
window.addEventListener('scroll', function() {
const scrollPosition = window.pageYOffset;
parallaxElements.forEach(function(element) {
const speed = parseFloat(element.getAttribute('data-parallax'));
const yPos = -(scrollPosition * speed);
element.style.transform = `translateY(${yPos}px)`;
});
});
});
// Auto-scroll chat messages from top to bottom (keep existing code)
window.addEventListener('load', function() {
const chatContainer = document.getElementById('chatContainer');
let scrollPosition = 0;
const scrollHeight = chatContainer.scrollHeight;
const scrollStep = 1;
const scrollInterval = 50; // milliseconds
// Disable mouse wheel and touch events
chatContainer.style.pointerEvents = 'none';
const scrollChat = setInterval(() => {
if (scrollPosition < scrollHeight) {
scrollPosition += scrollStep;
chatContainer.scrollTop = scrollPosition;
} else {
clearInterval(scrollChat);
}
}, scrollInterval);
});
document.querySelector('input[type="text"]').addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
const message = this.value.trim();
if (message) {
const chatContainer = document.querySelector('.h-64');
// Add user message
chatContainer.innerHTML += `
<div class="flex justify-start mb-4">
<div class="w-8 h-8 rounded-full bg-gray-600 flex items-center justify-center mr-3 flex-shrink-0">
<i data-feather="user" class="w-4 h-4 text-white"></i>
</div>
<div class="bg-gray-700 rounded-lg p-3 max-w-[80%]">
<p>${message}</p>
</div>
</div>
`;
// Add bot response
setTimeout(() => {
chatContainer.innerHTML += `
<div class="flex justify-end mb-4">
<div class="bg-green-600 rounded-lg p-3 max-w-[80%]">
<p>Thanks for your message! Our team will get back to you soon with more details.</p>
</div>
<div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center ml-3 flex-shrink-0">
<i data-feather="message-square" class="w-4 h-4 text-white"></i>
</div>
</div>
`;
chatContainer.scrollTop = chatContainer.scrollHeight;
feather.replace();
}, 1000);
this.value = '';
chatContainer.scrollTop = chatContainer.scrollHeight;
feather.replace();
}
}
});
</script>
</body>
</html>
|