Spaces:
Running
Running
| <html lang="en" class="scroll-smooth"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>CareerVoice Navigator | AI-Powered Career Guidance</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/speech-recognition-polyfill/dist/recorder.js"></script> | |
| <script src="https://unpkg.com/@supabase/supabase-js@2"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#6366f1', | |
| secondary: '#8b5cf6', | |
| dark: '#1e1b4b', | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| } | |
| .gradient-text { | |
| background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| } | |
| .chat-bubble { | |
| animation: float 6s ease-in-out infinite; | |
| } | |
| @keyframes float { | |
| 0%, 100% { transform: translateY(0); } | |
| 50% { transform: translateY(-15px); } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Vanta.js Globe Background --> | |
| <div id="vanta-globe" class="fixed inset-0 -z-10"></div> | |
| <!-- Navigation --> | |
| <nav class="bg-white/80 backdrop-blur-md fixed w-full z-20 border-b border-gray-200"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <i data-feather="compass" class="text-primary h-6 w-6"></i> | |
| <span class="ml-2 text-xl font-bold gradient-text">CareerVoice</span> | |
| </div> | |
| </div> | |
| <div class="hidden md:ml-6 md:flex md:items-center md:space-x-8"> | |
| <a href="#features" class="text-gray-700 hover:text-primary px-3 py-2 text-sm font-medium">Features</a> | |
| <a href="#how-it-works" class="text-gray-700 hover:text-primary px-3 py-2 text-sm font-medium">How It Works</a> | |
| <a href="#testimonials" class="text-gray-700 hover:text-primary px-3 py-2 text-sm font-medium">Testimonials</a> | |
| <a href="/login.html" class="bg-primary text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-secondary transition-colors">Get Started</a> | |
| </div> | |
| <div class="-mr-2 flex items-center md:hidden"> | |
| <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none"> | |
| <i data-feather="menu" class="h-6 w-6"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <section class="pt-32 pb-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-12 items-center"> | |
| <div> | |
| <h1 class="text-4xl md:text-5xl lg:text-6xl font-bold text-gray-900 leading-tight"> | |
| Find Your Perfect Career With <span class="gradient-text">AI Guidance</span> | |
| </h1> | |
| <p class="mt-6 text-lg text-gray-600"> | |
| Multilingual voice-powered career mentor that helps you discover the right path based on your skills, interests, and aspirations. | |
| </p> | |
| <div class="mt-10 flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4"> | |
| <button id="startVoiceBtn" class="bg-primary text-white px-6 py-3 rounded-lg text-lg font-medium hover:bg-secondary transition-colors flex items-center justify-center"> | |
| <i data-feather="mic" class="mr-2"></i> Start Talking | |
| </button> | |
| <a href="/login.html" class="border border-primary text-primary px-6 py-3 rounded-lg text-lg font-medium hover:bg-primary hover:text-white transition-colors flex items-center justify-center"> | |
| <i data-feather="user" class="mr-2"></i> Login | |
| </a> | |
| </div> | |
| <div class="mt-8 flex items-center space-x-4"> | |
| <div class="flex -space-x-2"> | |
| <img class="h-10 w-10 rounded-full border-2 border-white" src="http://static.photos/people/200x200/1" alt=""> | |
| <img class="h-10 w-10 rounded-full border-2 border-white" src="http://static.photos/people/200x200/2" alt=""> | |
| <img class="h-10 w-10 rounded-full border-2 border-white" src="http://static.photos/people/200x200/3" alt=""> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-600"><span class="font-semibold">10,000+</span> students found their path</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="relative"> | |
| <div class="absolute top-0 left-0 w-full h-full bg-primary/10 rounded-3xl -rotate-6"></div> | |
| <div class="relative z-10 bg-white p-6 rounded-3xl shadow-xl"> | |
| <div class="chat-bubble bg-primary text-white p-6 rounded-3xl rounded-bl-none max-w-md"> | |
| <p class="text-lg">Hi there! I'm your AI Career Mentor. Ask me anything about careers in your preferred language:</p> | |
| <div class="flex space-x-2 mt-4"> | |
| <div class="flex space-x-1"> | |
| <div class="w-2 h-2 rounded-full bg-white/70 animate-pulse" style="animation-delay: 0s"></div> | |
| <div class="w-2 h-2 rounded-full bg-white/70 animate-pulse" style="animation-delay: 0.2s"></div> | |
| <div class="w-2 h-2 rounded-full bg-white/70 animate-pulse" style="animation-delay: 0.4s"></div> | |
| </div> | |
| <div class="ml-2 flex items-center"> | |
| <i data-feather="mic" class="w-4 h-4"></i> | |
| <span class="ml-1 text-sm">Listening...</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex justify-end"> | |
| <div class="bg-gray-100 p-4 rounded-3xl rounded-br-none max-w-md"> | |
| <p>I love coding and problem solving. What careers suit me?</p> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex"> | |
| <div class="bg-primary/5 p-4 rounded-3xl rounded-bl-none max-w-md"> | |
| <p class="font-medium">Based on your interests, I'd recommend exploring:</p> | |
| <ul class="mt-2 list-disc pl-5 space-y-1"> | |
| <li>Software Engineering</li> | |
| <li>Data Science</li> | |
| <li>AI/ML Engineering</li> | |
| </ul> | |
| <button class="mt-3 text-primary font-medium flex items-center text-sm"> | |
| View full roadmap <i data-feather="arrow-right" class="ml-1 w-4 h-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Features Section --> | |
| <section id="features" class="py-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto bg-white/80 backdrop-blur-sm rounded-3xl my-10"> | |
| <div class="text-center"> | |
| <h2 class="text-3xl font-bold text-gray-900">How We Guide Your <span class="gradient-text">Career Journey</span></h2> | |
| <p class="mt-4 text-lg text-gray-600 max-w-3xl mx-auto"> | |
| Our AI-powered platform provides personalized career guidance through innovative features | |
| </p> | |
| </div> | |
| <div class="mt-16 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> | |
| <div class="bg-white p-8 rounded-2xl shadow-lg border border-gray-100 hover:shadow-xl transition-shadow"> | |
| <div class="bg-primary/10 w-14 h-14 rounded-xl flex items-center justify-center mb-6"> | |
| <i data-feather="mic" class="text-primary w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-900">Voice Interaction</h3> | |
| <p class="mt-3 text-gray-600"> | |
| Speak naturally in multiple languages. Our AI understands your questions and responds conversationally. | |
| </p> | |
| </div> | |
| <div class="bg-white p-8 rounded-2xl shadow-lg border border-gray-100 hover:shadow-xl transition-shadow"> | |
| <div class="bg-primary/10 w-14 h-14 rounded-xl flex items-center justify-center mb-6"> | |
| <i data-feather="map" class="text-primary w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-900">Visual Roadmaps</h3> | |
| <p class="mt-3 text-gray-600"> | |
| Get customized career pathways with milestones, skills to learn, and resources to get there. | |
| </p> | |
| </div> | |
| <div class="bg-white p-8 rounded-2xl shadow-lg border border-gray-100 hover:shadow-xl transition-shadow"> | |
| <div class="bg-primary/10 w-14 h-14 rounded-xl flex items-center justify-center mb-6"> | |
| <i data-feather="globe" class="text-primary w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-900">Multilingual Support</h3> | |
| <p class="mt-3 text-gray-600"> | |
| Interact in English, Hindi, Telugu and more. Breaking language barriers in career guidance. | |
| </p> | |
| </div> | |
| <div class="bg-white p-8 rounded-2xl shadow-lg border border-gray-100 hover:shadow-xl transition-shadow"> | |
| <div class="bg-primary/10 w-14 h-14 rounded-xl flex items-center justify-center mb-6"> | |
| <i data-feather="book-open" class="text-primary w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-900">Learning Resources</h3> | |
| <p class="mt-3 text-gray-600"> | |
| Curated courses, tutorials and books for each recommended career path. | |
| </p> | |
| </div> | |
| <div class="bg-white p-8 rounded-2xl shadow-lg border border-gray-100 hover:shadow-xl transition-shadow"> | |
| <div class="bg-primary/10 w-14 h-14 rounded-xl flex items-center justify-center mb-6"> | |
| <i data-feather="bar-chart-2" class="text-primary w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-900">Skill Analysis</h3> | |
| <p class="mt-3 text-gray-600"> | |
| Understand your strengths and gaps compared to career requirements. | |
| </p> | |
| </div> | |
| <div class="bg-white p-8 rounded-2xl shadow-lg border border-gray-100 hover:shadow-xl transition-shadow"> | |
| <div class="bg-primary/10 w-14 h-14 rounded-xl flex items-center justify-center mb-6"> | |
| <i data-feather="download" class="text-primary w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-900">Export Reports</h3> | |
| <p class="mt-3 text-gray-600"> | |
| Download personalized career reports with actionable steps in PDF format. | |
| </p> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- How It Works Section --> | |
| <section id="how-it-works" class="py-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto"> | |
| <div class="text-center"> | |
| <h2 class="text-3xl font-bold text-gray-900">Simple <span class="gradient-text">3-Step Process</span></h2> | |
| <p class="mt-4 text-lg text-gray-600 max-w-3xl mx-auto"> | |
| Getting career guidance has never been easier with our AI mentor | |
| </p> | |
| </div> | |
| <div class="mt-16 relative"> | |
| <div class="hidden lg:block absolute left-1/2 top-0 h-full w-1 bg-gradient-to-b from-primary to-secondary -ml-1"></div> | |
| <div class="space-y-16 lg:space-y-0 lg:grid lg:grid-cols-3 lg:gap-x-8"> | |
| <div class="relative lg:text-center"> | |
| <div class="lg:mx-auto lg:flex lg:items-center lg:justify-center h-12 w-12 rounded-full bg-primary text-white shadow-lg flex-shrink-0"> | |
| <span class="text-xl font-bold">1</span> | |
| </div> | |
| <div class="mt-6 lg:mt-10 lg:mx-6"> | |
| <h3 class="text-xl font-bold text-gray-900">Tell Us About Yourself</h3> | |
| <p class="mt-4 text-gray-600"> | |
| Share your interests, skills, and aspirations through voice or text in your preferred language. | |
| </p> | |
| </div> | |
| </div> | |
| <div class="relative lg:text-center"> | |
| <div class="lg:mx-auto lg:flex lg:items-center lg:justify-center h-12 w-12 rounded-full bg-primary text-white shadow-lg flex-shrink-0"> | |
| <span class="text-xl font-bold">2</span> | |
| </div> | |
| <div class="mt-6 lg:mt-10 lg:mx-6"> | |
| <h3 class="text-xl font-bold text-gray-900">Get AI Recommendations</h3> | |
| <p class="mt-4 text-gray-600"> | |
| Our AI analyzes your profile and suggests suitable career options with growth potential. | |
| </p> | |
| </div> | |
| </div> | |
| <div class="relative lg:text-center"> | |
| <div class="lg:mx-auto lg:flex lg:items-center lg:justify-center h-12 w-12 rounded-full bg-primary text-white shadow-lg flex-shrink-0"> | |
| <span class="text-xl font-bold">3</span> | |
| </div> | |
| <div class="mt-6 lg:mt-10 lg:mx-6"> | |
| <h3 class="text-xl font-bold text-gray-900">Follow Your Roadmap</h3> | |
| <p class="mt-4 text-gray-600"> | |
| Receive a personalized action plan with learning resources and milestones. | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonials Section --> | |
| <section id="testimonials" class="py-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto bg-gradient-to-r from-primary/5 to-secondary/5 rounded-3xl"> | |
| <div class="text-center"> | |
| <h2 class="text-3xl font-bold text-gray-900">Success <span class="gradient-text">Stories</span></h2> | |
| <p class="mt-4 text-lg text-gray-600 max-w-3xl mx-auto"> | |
| Hear from students who found their career direction with our AI mentor | |
| </p> | |
| </div> | |
| <div class="mt-16 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> | |
| <div class="bg-white p-8 rounded-2xl shadow-lg"> | |
| <div class="flex items-center"> | |
| <img class="h-12 w-12 rounded-full" src="http://static.photos/people/200x200/4" alt=""> | |
| <div class="ml-4"> | |
| <h4 class="font-bold text-gray-900">Priya Sharma</h4> | |
| <p class="text-gray-600 text-sm">Computer Science Student</p> | |
| </div> | |
| </div> | |
| <p class="mt-4 text-gray-600"> | |
| "The AI helped me discover UX Design as a career option I never considered. The visual roadmap made everything so clear!" | |
| </p> | |
| <div class="mt-4 flex"> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| </div> | |
| </div> | |
| <div class="bg-white p-8 rounded-2xl shadow-lg"> | |
| <div class="flex items-center"> | |
| <img class="h-12 w-12 rounded-full" src="http://static.photos/people/200x200/5" alt=""> | |
| <div class="ml-4"> | |
| <h4 class="font-bold text-gray-900">Rahul Patel</h4> | |
| <p class="text-gray-600 text-sm">High School Graduate</p> | |
| </div> | |
| </div> | |
| <p class="mt-4 text-gray-600"> | |
| "Being able to talk in Hindi made all the difference. I got perfect guidance for pursuing Data Science in my local college." | |
| </p> | |
| <div class="mt-4 flex"> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| </div> | |
| </div> | |
| <div class="bg-white p-8 rounded-2xl shadow-lg"> | |
| <div class="flex items-center"> | |
| <img class="h-12 w-12 rounded-full" src="http://static.photos/people/200x200/6" alt=""> | |
| <div class="ml-4"> | |
| <h4 class="font-bold text-gray-900">Ananya Reddy</h4> | |
| <p class="text-gray-600 text-sm">Arts Student</p> | |
| </div> | |
| </div> | |
| <p class="mt-4 text-gray-600"> | |
| "The career infographics helped me visualize my path from psychology student to HR professional. Game changer!" | |
| </p> | |
| <div class="mt-4 flex"> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="text-yellow-400 w-4 h-4 fill-current"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- CTA Section --> | |
| <section class="py-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto"> | |
| <div class="bg-gradient-to-r from-primary to-secondary rounded-3xl p-10 text-white"> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-10 items-center"> | |
| <div> | |
| <h2 class="text-3xl font-bold">Ready to Discover Your Perfect Career?</h2> | |
| <p class="mt-4 text-lg opacity-90"> | |
| Join thousands of students who found clarity in their career journey with our AI mentor. | |
| </p> | |
| </div> | |
| <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4"> | |
| <a href="#" class="bg-white text-primary px-6 py-3 rounded-lg text-lg font-medium hover:bg-gray-100 flex items-center justify-center"> | |
| <i data-feather="mic" class="mr-2"></i> Start Talking Now | |
| </a> | |
| <a href="#" class="border border-white text-white px-6 py-3 rounded-lg text-lg font-medium hover:bg-white/10 flex items-center justify-center"> | |
| <i data-feather="user" class="mr-2"></i> Create Account | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="bg-gray-900 text-white py-16 px-4 sm:px-6 lg:px-8"> | |
| <div class="max-w-7xl mx-auto"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-12"> | |
| <div> | |
| <div class="flex items-center"> | |
| <i data-feather="compass" class="text-primary h-6 w-6"></i> | |
| <span class="ml-2 text-xl font-bold">CareerVoice</span> | |
| </div> | |
| <p class="mt-4 text-gray-400"> | |
| AI-powered multilingual career guidance platform helping students find their perfect career path. | |
| </p> | |
| <div class="mt-6 flex space-x-4"> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="twitter" class="w-5 h-5"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="facebook" class="w-5 h-5"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="instagram" class="w-5 h-5"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="linkedin" class="w-5 h-5"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-semibold">Product</h3> | |
| <ul class="mt-4 space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Features</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Pricing</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Roadmap</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Changelog</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-semibold">Company</h3> | |
| <ul class="mt-4 space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white">About</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Careers</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Privacy</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Terms</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-semibold">Support</h3> | |
| <ul class="mt-4 space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Help Center</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Contact</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Status</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Feedback</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="mt-16 pt-8 border-t border-gray-800 flex flex-col md:flex-row justify-between items-center"> | |
| <p class="text-gray-400">© 2023 CareerVoice Navigator. All rights reserved.</p> | |
| <div class="mt-4 md:mt-0 flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-white text-sm">Privacy Policy</a> | |
| <a href="#" class="text-gray-400 hover:text-white text-sm">Terms of Service</a> | |
| <a href="#" class="text-gray-400 hover:text-white text-sm">Cookies</a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Supabase client | |
| const supabaseUrl = 'https://your-project.supabase.co'; | |
| const supabaseKey = 'your-anon-key'; | |
| const supabase = supabase.createClient(supabaseUrl, supabaseKey); | |
| // Voice recognition | |
| const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition; | |
| const recognition = new SpeechRecognition(); | |
| recognition.continuous = false; | |
| recognition.lang = 'en-US'; | |
| recognition.interimResults = false; | |
| recognition.maxAlternatives = 1; | |
| document.getElementById('startVoiceBtn').addEventListener('click', () => { | |
| recognition.start(); | |
| document.getElementById('startVoiceBtn').innerHTML = | |
| '<i data-feather="mic" class="mr-2"></i> Listening...'; | |
| }); | |
| recognition.onresult = async (event) => { | |
| const speechResult = event.results[0][0].transcript; | |
| document.querySelector('.chat-bubble p').textContent = | |
| `You said: "${speechResult}"`; | |
| // Get AI response | |
| const response = await fetchAIResponse(speechResult); | |
| document.querySelector('.bg-primary/5 p').textContent = response; | |
| document.getElementById('startVoiceBtn').innerHTML = | |
| '<i data-feather="mic" class="mr-2"></i> Start Talking'; | |
| }; | |
| recognition.onerror = (event) => { | |
| console.error('Speech recognition error', event.error); | |
| document.getElementById('startVoiceBtn').innerHTML = | |
| '<i data-feather="mic" class="mr-2"></i> Start Talking'; | |
| }; | |
| async function fetchAIResponse(query) { | |
| const { data, error } = await supabase | |
| .from('career_responses') | |
| .select('response') | |
| .eq('query', query.toLowerCase()) | |
| .single(); | |
| if (error || !data) { | |
| return "I'm sorry, I couldn't find a suitable career path for that. Could you provide more details?"; | |
| } | |
| return data.response; | |
| } | |
| // Initialize Vanta.js globe | |
| VANTA.GLOBE({ | |
| el: "#vanta-globe", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: '#6366f1', | |
| backgroundColor: '#f8fafc', | |
| size: 0.8 | |
| }); | |
| // Initialize feather icons | |
| document.addEventListener('DOMContentLoaded', function() { | |
| feather.replace(); | |
| // Smooth scroll for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| }); | |
| // Animation for features on scroll | |
| const observer = new IntersectionObserver((entries) => { | |
| entries.forEach(entry => { | |
| if (entry.isIntersecting) { | |
| entry.target.classList.add('animate-fadeIn'); | |
| } | |
| }); | |
| }, { | |
| threshold: 0.1 | |
| }); | |
| document.querySelectorAll('.bg-white').forEach(card => { | |
| observer.observe(card); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |