Download index.html from tejkdno1/test: direct link, hf CLI and curl.
- Browser
- Download file 29.6 kB
-
https://huggingface.co/spaces/tejkdno1/test/resolve/main/index.html
- Command line
-
hf download hf://spaces/tejkdno1/test/index.html
-
curl -L -o index.html https://huggingface.co/spaces/tejkdno1/test/resolve/main/index.html
29.6 kB
| <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> | |