import { useRef, useState } from "react"; import { toast } from "@/hooks/use-toast"; const jobs = [ { title: "Customer Service Representative", desc: "Email and chat support for customers.", type: "Full-time" }, { title: "Data Entry Specialist", desc: "Input and maintain company data accurately.", type: "Full-time" }, { title: "AI Automation Specialist", desc: "Build and manage AI-driven workflows.", type: "Full-time" }, { title: "Digital Analyst", desc: "Analyze campaigns and website performance.", type: "Contract" }, { title: "Virtual Assistant", desc: "Support teams with administrative tasks.", type: "Part-time" }, ]; const infoItems = [ { label: "Location", value: "Remote — U.S. residents", icon: "📍" }, { label: "Schedule", value: "Flexible hours", icon: "🕐" }, { label: "Pay", value: "Competitive", icon: "💰" }, ]; const footerLinks = { company: [ { label: "About", href: "https://www.indeed.com/about" }, { label: "Careers", href: "#" }, { label: "Blog", href: "https://www.indeed.com/career-advice" }, ], legal: [ { label: "Privacy Policy", href: "https://www.indeed.com/legal/privacy-policy" }, { label: "Terms of Service", href: "https://www.indeed.com/legal/terms-of-service" }, { label: "Cookie Policy", href: "https://www.indeed.com/legal/cookie-policy" }, ], support: [ { label: "Help Center", href: "https://support.indeed.com" }, { label: "Accessibility", href: "https://www.indeed.com/accessibility" }, { label: "Security", href: "https://www.indeed.com/legal/security" }, ], }; const Index = () => { const formRef = useRef(null); const [formData, setFormData] = useState({ name: "", email: "", phone: "", position: "", message: "", }); const handleJobClick = (jobTitle: string) => { setFormData((prev) => ({ ...prev, position: jobTitle })); formRef.current?.scrollIntoView({ behavior: "smooth", block: "start" }); }; const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); // Let Netlify handle the form — show a toast as confirmation toast({ title: "Application Submitted! ✅", description: "We'll review your application and reach out if there's a match.", }); setFormData({ name: "", email: "", phone: "", position: "", message: "" }); }; const inputClasses = "w-full px-4 py-3 border border-border rounded-lg text-sm bg-card text-card-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent transition-shadow"; return (
{/* Hidden Netlify form for bot detection */}