import { FC } from 'react'

// todo: use on a benchmark page. Focus sole on A11yWatch across feature usage speeds.
export const IntroBenches: FC = () => {
  return (
    <div className='py-6'>
      <div className='flex-col flex text-center border-4 border-[#2b2b2b] rounded'>
        <div className='py-2'>
          <h2 className='text-xl font-semibold'>
            Website Accessibility Reports
          </h2>
          <p className='text-base'>Reports per minute (Linux)</p>
        </div>
        <ul className='grid grid-cols-3 place-items-start pt-1 h-40 place-items-center'>
          <li className='flex flex-1 px-2 h-full'>
            <div className='flex flex-col h-full place-content-end'>
              <div className='py-1' aria-hidden='true'>
                <div className='text-base font-semibold'>208,633</div>
              </div>
              <div className='px-2 bg-blue-600 h-full w-20 rounded-t border-4 border-b-0 border-blue-700'>
                <div className='sr-only'>
                  A11yWatch: 208,633 scans per minute
                </div>
              </div>
            </div>
          </li>
          <li className='flex flex-1 px-2 h-full'>
            <div className='flex flex-col h-full place-content-end'>
              <div className='py-1' aria-hidden='true'>
                <div className='text-base font-semibold'>44</div>
              </div>
              <div className='px-2 bg-gray-700 h-[6px] w-20 rounded-t'>
                <div className='sr-only'>Wave: 44 scans per minute</div>
              </div>
            </div>
          </li>
          <li className='flex flex-1 px-2 h-full'>
            <div className='flex flex-col h-full place-content-end'>
              <div className='py-1' aria-hidden='true'>
                <div className='text-base font-semibold'>33</div>
              </div>
              <div className='px-2 bg-gray-700 h-[5px] w-20 rounded-t'>
                <div className='sr-only'>Deque: 33 scans per minute</div>
              </div>
            </div>
          </li>
        </ul>
        <div className='grid grid-cols-3 py-2 text-center'>
          <a
            href='https://github.com/a11ywatch/github-actions/blob/main/.github/workflows/bench-action.yml'
            target='_blank'
            rel='noreferrer'
            className='hover:ring'
            aria-label='a11ywatch benchmark source'
          >
            <div className='text-base font-medium'>a11ywatch</div>
            <div className='text-sm '>v0.8.7</div>
            <div className='text-xs '>view source</div>
          </a>
          <a
            href='https://github.com/a11ywatch/github-actions/blob/main/.github/workflows/bench-pa11y.yml'
            target='_blank'
            className='hover:ring'
            aria-label='pa11y benchmark source'
            rel='noreferrer'
          >
            <div className='text-base font-medium'>wave</div>
            <div className='text-sm '>v6.2.3</div>
            <div className='text-xs '>view source</div>
          </a>
          <a
            href='https://github.com/a11ywatch/github-actions/blob/main/.github/workflows/bench-axe.yml'
            target='_blank'
            className='hover:ring'
            aria-label='axe benchmark source'
            rel='noreferrer'
          >
            <div className='text-base font-medium'>deque</div>
            <div className='text-sm '>v4.4.3</div>
            <div className='text-xs '>view source</div>
          </a>
        </div>
      </div>
    </div>
  )
}
