"use client"; import { useEffect, useState } from "react"; import { useRouter } from "next/navigation"; import Image from "next/image"; import AnimatedCounter from "@/components/AnimatedCounter"; import FeatureCard from "@/components/FeatureCard"; import PricingCard from "@/components/PricingCard"; import TechStackCard from "@/components/TechStackCard"; export default function Home() { const router = useRouter(); const [isLoading, setIsLoading] = useState(true); const [activeFeature, setActiveFeature] = useState(0); useEffect(() => { // Check if user is already logged in const token = localStorage.getItem("token"); if (token) { router.push("/dashboard"); } else { setIsLoading(false); } }, [router]); useEffect(() => { const interval = setInterval(() => { setActiveFeature((prev) => (prev + 1) % 4); }, 3000); return () => clearInterval(interval); }, []); if (isLoading) { return (

Loading Candivista...

); } return (
{/* Navigation */} {/* Hero Section */}
🚀 AI-Powered Interview Platform

The Future of{" "} AI Recruitment

Transform your hiring process with our comprehensive AI-powered multi-tenant interview platform. Create job listings, conduct intelligent interviews, and manage candidates with unprecedented flexibility.

{/* Hero Illustration */}

Create Jobs

Design compelling job postings with AI assistance

AI Interviews

Conduct intelligent interviews with automated scoring

Analytics

Get insights and track candidate performance

{/* Features Section */}

Powerful Features for Modern Recruitment

Everything you need to streamline your hiring process and find the best talent

} title="Multi-Tenant Architecture" description="Complete data isolation between companies with enterprise-grade security. Scale to thousands of tenants with confidence." gradient="bg-gradient-to-r from-blue-500 to-blue-600" delay={0} /> } title="Flexible Link System" description="Revolutionary token-based interview distribution. Create custom links with flexible application limits for maximum control." gradient="bg-gradient-to-r from-purple-500 to-purple-600" delay={200} /> } title="AI-Powered Intelligence" description="Local Ollama integration with gpt-oss:20b model for privacy-focused AI interviews. Automated question generation and real-time scoring." gradient="bg-gradient-to-r from-green-500 to-green-600" delay={400} />

Interview Dashboard

AI Analysis

Technical Skills 85%
Communication 92%
Problem Solving 78%
{/* Pricing Section */}

Simple, Transparent Pricing

Pay only for what you use with our flexible token-based system

{/* Stats Section */}

Trusted by Companies Worldwide

Join thousands of companies already using Candivista to streamline their recruitment process

Interviews Conducted

Companies

Countries

Satisfaction Rate

{/* Technology Stack */}

Built with Modern Technology

Leveraging the latest technologies for optimal performance and developer experience

{/* CTA Section */}

Ready to Transform Your Hiring?

Join thousands of companies already using Candivista to streamline their recruitment process and find the best talent with AI-powered interviews.

{/* Footer */}
); }