import React, { useEffect, useState } from 'react';
import type { ReactElement } from 'react';
import Head from 'next/head';
import Link from 'next/link';
import { useAppSelector } from '../../stores/hooks';
import LayoutGuest from '../../layouts/Guest';
import WebSiteHeader from '../../components/WebPageComponents/Header';
import WebSiteFooter from '../../components/WebPageComponents/Footer';
import {
  HeroDesigns,
  FeaturesDesigns,
  AboutUsDesigns,
  ContactFormDesigns,
} from '../../components/WebPageComponents/designs';

import HeroSection from '../../components/WebPageComponents/HeroComponent';

import FeaturesSection from '../../components/WebPageComponents/FeaturesComponent';

import AboutUsSection from '../../components/WebPageComponents/AboutUsComponent';

import ContactFormSection from '../../components/WebPageComponents/ContactFormComponent';

export default function WebSite() {
  const cardsStyle = useAppSelector((state) => state.style.cardsStyle);
  const bgColor = useAppSelector((state) => state.style.bgLayoutColor);
  const projectName = 'Nimona E-filling System';

  useEffect(() => {
    const darkElement = document.querySelector('body .dark');
    if (darkElement) {
      darkElement.classList.remove('dark');
    }
  }, []);

  const features_points = [
    {
      name: 'Seamless Department Integration',
      description:
        'Connect sales, customer service, and marketing departments effortlessly. Enhance collaboration and ensure all teams are aligned with real-time data sharing.',
      icon: 'mdiAccountGroup',
    },
    {
      name: 'Lead Tracking \u0026 Management',
      description:
        'Efficiently track and manage leads with detailed status updates and categories. Ensure no opportunity is missed with comprehensive lead insights.',
      icon: 'mdiLeadPencil',
    },
    {
      name: 'Comprehensive Contact Management',
      description:
        'Organize and manage all client contacts in one place. Access detailed information and maintain strong client relationships with ease.',
      icon: 'mdiContactMail',
    },
  ];

  return (
    <div className='flex flex-col min-h-screen'>
      <Head>
        <title>{`Gojo CRM - Streamline Your Law Firm's Operations`}</title>
        <meta
          name='description'
          content={`Discover Gojo CRM, the ultimate solution for law firms to connect departments, manage leads, and streamline operations. Enhance your firm's efficiency today.`}
        />
      </Head>
      <WebSiteHeader projectName={'Nimona E-filling System'} />
      <main className={`flex-grow  ${bgColor}    rounded-none  `}>
        <HeroSection
          projectName={'Nimona E-filling System'}
          image={['Law firm team collaborating efficiently']}
          mainText={`Transform Your Law Firm with Gojo CRM`}
          subTitle={`Experience seamless integration across departments with Gojo CRM. Connect sales, customer service, and marketing to streamline operations and enhance productivity. Track leads, manage contacts, and optimize your firm's workflow effortlessly.`}
          design={HeroDesigns.IMAGE_RIGHT || ''}
          buttonText={`Get Started Today`}
        />

        <FeaturesSection
          projectName={'Nimona E-filling System'}
          image={['Dashboard showcasing CRM features']}
          withBg={1}
          features={features_points}
          mainText={`Unlock Efficiency with Gojo CRM Features`}
          subTitle={`Explore the powerful features of ${projectName} designed to streamline your law firm's operations and enhance productivity.`}
          design={FeaturesDesigns.CARDS_GRID_WITH_ICONS || ''}
        />

        <AboutUsSection
          projectName={'Nimona E-filling System'}
          image={['Team collaborating in modern office']}
          mainText={`Empowering Law Firms with Gojo CRM`}
          subTitle={`At ${projectName}, we are dedicated to revolutionizing the way law firms operate. Our CRM solution is designed to connect departments, streamline processes, and enhance productivity, ensuring your firm stays ahead in a competitive landscape.`}
          design={AboutUsDesigns.IMAGE_LEFT || ''}
          buttonText={`Learn More About Us`}
        />

        <ContactFormSection
          projectName={'Nimona E-filling System'}
          design={ContactFormDesigns.WITH_IMAGE || ''}
          image={['Customer support team assisting clients']}
          mainText={`Get in Touch with Gojo CRM `}
          subTitle={`Reach out to us anytime for inquiries or support. Our team at ${projectName} is here to assist you promptly and efficiently.`}
        />
      </main>
      <WebSiteFooter projectName={'Nimona E-filling System'} />
    </div>
  );
}

WebSite.getLayout = function getLayout(page: ReactElement) {
  return <LayoutGuest>{page}</LayoutGuest>;
};
