All files / src/pages/marketing HomePage.tsx

100% Statements 7/7
100% Branches 0/0
100% Functions 3/3
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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                                    1x 6x   6x                                                                                         6x                                               6x                                     42x                                                               18x                          
import React from 'react';
import { useTranslation } from 'react-i18next';
import {
  Calendar,
  Users,
  CreditCard,
  BarChart3,
  Zap,
  Globe,
  FileSignature
} from 'lucide-react';
import Hero from '../../components/marketing/Hero';
import FeatureCard from '../../components/marketing/FeatureCard';
import PluginShowcase from '../../components/marketing/PluginShowcase';
import BenefitsSection from '../../components/marketing/BenefitsSection';
import TestimonialCard from '../../components/marketing/TestimonialCard';
import CTASection from '../../components/marketing/CTASection';
 
const HomePage: React.FC = () => {
  const { t } = useTranslation();
 
  const features = [
    {
      icon: Calendar,
      title: t('marketing.home.features.intelligentScheduling.title'),
      description: t('marketing.home.features.intelligentScheduling.description'),
      color: 'brand',
    },
    {
      icon: Zap,
      title: t('marketing.home.features.automationEngine.title'),
      description: t('marketing.home.features.automationEngine.description'),
      color: 'purple',
    },
    {
      icon: Globe,
      title: t('marketing.home.features.multiTenant.title'),
      description: t('marketing.home.features.multiTenant.description'),
      color: 'green',
    },
    {
      icon: CreditCard,
      title: t('marketing.home.features.integratedPayments.title'),
      description: t('marketing.home.features.integratedPayments.description'),
      color: 'orange',
    },
    {
      icon: Users,
      title: t('marketing.home.features.customerManagement.title'),
      description: t('marketing.home.features.customerManagement.description'),
      color: 'pink',
    },
    {
      icon: BarChart3,
      title: t('marketing.home.features.advancedAnalytics.title'),
      description: t('marketing.home.features.advancedAnalytics.description'),
      color: 'indigo',
    },
    {
      icon: FileSignature,
      title: t('marketing.home.features.digitalContracts.title'),
      description: t('marketing.home.features.digitalContracts.description'),
      color: 'teal',
    },
  ];
 
  const testimonials = [
    {
      quote: t('marketing.home.testimonials.winBack.quote'),
      author: t('marketing.home.testimonials.winBack.author'),
      role: t('marketing.home.testimonials.winBack.role'),
      company: t('marketing.home.testimonials.winBack.company'),
      rating: 5,
    },
    {
      quote: t('marketing.home.testimonials.resources.quote'),
      author: t('marketing.home.testimonials.resources.author'),
      role: t('marketing.home.testimonials.resources.role'),
      company: t('marketing.home.testimonials.resources.company'),
      rating: 5,
    },
    {
      quote: t('marketing.home.testimonials.whiteLabel.quote'),
      author: t('marketing.home.testimonials.whiteLabel.author'),
      role: t('marketing.home.testimonials.whiteLabel.role'),
      company: t('marketing.home.testimonials.whiteLabel.company'),
      rating: 5,
    },
  ];
 
  return (
    <div>
      {/* Hero Section - Updated Copy */}
      <Hero />
 
      {/* Feature Grid */}
      <section className="py-20 lg:py-28 bg-white dark:bg-gray-900">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          <div className="text-center mb-16">
            <h2 className="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-4">
              {t('marketing.home.featuresSection.title')}
            </h2>
            <p className="text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto">
              {t('marketing.home.featuresSection.subtitle')}
            </p>
          </div>
 
          <div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6 lg:gap-8">
            {features.map((feature) => (
              <FeatureCard
                key={feature.title}
                icon={feature.icon}
                title={feature.title}
                description={feature.description}
                iconColor={feature.color}
              />
            ))}
          </div>
        </div>
      </section>
 
      {/* Plugin Showcase - NEW */}
      <PluginShowcase />
 
      {/* Benefits Section (Replaces Stats) */}
      <BenefitsSection />
 
      {/* Testimonials Section */}
      <section className="py-20 lg:py-28 bg-gray-50 dark:bg-gray-800/50">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          <div className="text-center mb-16">
            <h2 className="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-4">
              {t('marketing.home.testimonialsSection.title')}
            </h2>
            <p className="text-lg text-gray-600 dark:text-gray-400">
              {t('marketing.home.testimonialsSection.subtitle')}
            </p>
          </div>
 
          <div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6 lg:gap-8">
            {testimonials.map((testimonial, index) => (
              <TestimonialCard key={index} {...testimonial} />
            ))}
          </div>
        </div>
      </section>
 
      {/* Final CTA */}
      <CTASection />
    </div>
  );
};
 
export default HomePage;