// Import ========================================================================================================================
import { textareaHeightControl } from '@/js/components/input.js';
import App from '@/layouts/aia/app-layout';
import { checkboxButtonDisableToggle, formErrorMessage, formReset, formValidation } from '@/js/patterns/form.js';
import Button from '@/components/button';
import Input from '@/components/input';
import SectionNavigation from '@/components/aia/section-navigation';
import PageMeta from '@/components/aia/page-meta';
import { useForm } from '@inertiajs/react';
import PeopleExecutiveCard from '@/components/aia/people-excutive-card';
import PeopleMemberCard from '@/components/aia/people-member-card';

type PeopleProps = {
  people: Array<{
    portrait: string;
    name: string;
    title: string;
    text: string;
    positions: string[];
  }>;
};

export default function People({ people }: PeopleProps) {
  const PeopleExecutive = [
    ...people,
    {
      portrait: 'images/img-portrait.png',
      name: 'Name',
      title: 'Esse velit pariatur dolore veniam velit.',
      text: `Velit sit voluptate minim sit. In aute tempor pariatur sint sit excepteur velit enim cillum minim
          exercitation non.Dolore occaecat pariatur veniam nulla excepteur magna mollit ullamco ullamco enim.
          Reprehenderit ipsum cillum cillum ad cillum occaecat qui pariatur velit aliquip ipsum.Officia id ea
          ullamco est amet est.Cillum anim fugiat Lorem laboris voluptate enim mollit magna ex exercitation.`,
      positions: ['Duis nisi consectetur irure dolore laboris eiusmod qui Lorem in deserunt et adipisicing.'],
      readMoreButton: false
    },
    {
      portrait: 'images/img-portrait.png',
      name: 'Name',
      title: 'Esse velit pariatur dolore veniam velit.',

      positions: ['Duis nisi consectetur irure dolore laboris eiusmod qui Lorem in deserunt et adipisicing.'],
      readMoreButton: false
    },
    {
      portrait: 'images/img-portrait.png',
      name: 'Name',
      title: 'Esse velit pariatur dolore veniam velit.',
      positions: ['Duis nisi consectetur irure dolore laboris eiusmod qui Lorem in deserunt et adipisicing.'],
      readMoreButton: false
    },
  ];

  const MemberPeople = [
    {
      portrait: 'images/img-portrait.png',
      name: 'Name',
      title: 'title',
      positions: ['Duis nisi consectetur irure dolore laboris eiusmod qui Lorem in deserunt et adipisicing.']
    },
    {
      portrait: 'images/img-portrait.png',
      name: 'Name',
      title: 'title',
      positions: ['Duis nisi consectetur irure dolore laboris eiusmod qui Lorem in deserunt et adipisicing.']
    },
    {
      portrait: 'images/img-portrait.png',
      name: 'Name',
      title: 'title',
      positions: ['Duis nisi consectetur irure dolore laboris eiusmod qui Lorem in deserunt et adipisicing.']
    },
    {
      portrait: 'images/img-portrait.png',
      name: 'Name',
      title: 'title',
      positions: ['Duis nisi consectetur irure dolore laboris eiusmod qui Lorem in deserunt et adipisicing.']
    },
    {
      portrait: 'images/img-portrait.png',
      name: 'Name',
      title: 'title',
      positions: ['Duis nisi consectetur irure dolore laboris eiusmod qui Lorem in deserunt et adipisicing.']
    },
    {
      portrait: 'images/img-portrait.png',
      name: 'Name',
      title: 'title',
      positions: ['Duis nisi consectetur irure dolore laboris eiusmod qui Lorem in deserunt et adipisicing.']
    },
    {
      portrait: 'images/img-portrait.png',
      name: 'Name',
      title: 'title',
      positions: ['Duis nisi consectetur irure dolore laboris eiusmod qui Lorem in deserunt et adipisicing.']
    }];

  return (
    <App
      subNav={
        <SectionNavigation
          links={
            [{ name: 'About AIA', href: route('about') },
            { name: 'People', href: route('people'), default: true },
            { name: 'Partner with us', href: route('partner') }
            ]
          }
        />
      }
      pageMeta={
        <PageMeta
          title="People"
          tabs={[
            { name: 'Board Members', href: route('people') },
            { name: 'Executive', href: route('executive') }
          ]}
        />
      }
    >

      <div className="container pageIndent">
        <div className="grid grid-cols-1 gap-16 md:gap-64 lg:grid-cols-2 lg:gap-x-20 lg:gap-y-40">
          <div className="col-span-1 lg:col-span-2">
            < PeopleExecutiveCard
              customClass="peopleExecutiveCard peopleExecutiveCard--person"
              portrait={PeopleExecutive[0].portrait}
              name={PeopleExecutive[0].name}
              title={PeopleExecutive[0].title}
              text={PeopleExecutive[0].text}
              positions={PeopleExecutive[0].positions}
            />

          </div>
          <div className="col-span-1 lg:col-span-start-1">
            < PeopleExecutiveCard
              portrait={PeopleExecutive[1].portrait}
              name={PeopleExecutive[1].name}
              title={PeopleExecutive[1].title}
              text={PeopleExecutive[1].text}
              positions={PeopleExecutive[1].positions}

            />
          </div>
          <div className="col-span-1 lg:col-span-start-2">
            < PeopleExecutiveCard
              portrait={PeopleExecutive[2].portrait}
              name={PeopleExecutive[2].name}
              title={PeopleExecutive[2].title}
              text={PeopleExecutive[2].text}
              positions={PeopleExecutive[2].positions}
            />
          </div>
        </div>
      </div>
      <div className="container pageSection pageIndent">
        <div className="grid grid-cols-1 gap-20 md:grid-cols-2 lg:grid-cols-4">
          {MemberPeople.map((member, index) => (
            <PeopleMemberCard
              key={index}
              portrait={member.portrait}
              name={member.name}
              title={member.title}
              positions={member.positions}
            />
          ))}
        </div>
      </div>

    </App>
  );
}
