import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';

const FeatureList = [
  {
    title: 'User Acceptance Tests',
    Svg: require('@site/static/img/tests.svg').default,
    description: (
      <>
        This documentation portal is to serve as a step by step walkthroughs for System User Acceptace Testing (UATs).
      </>
    ),
  },
  {
    title: 'Training',
    Svg: require('@site/static/img/train.svg').default,
    description: (
      <>
        The user guides presented are to serve as part of the project training phase for current users of NPIS 
      </>
    ),
  },
  {
    title: 'Capacity Building',
    Svg: require('@site/static/img/onboarding.svg').default,
    description: (
      <>
        The documentation portal is also meant to onboard future staff as NPIS users for capacity building. 
      </>
    ),
  },
];

function Feature({Svg, title, description}) {
  return (
    <div className={clsx('col col--4')}>
      <div className="text--center">
        <Svg className={styles.featureSvg} role="img" />
      </div>
      <div className="text--center padding-horiz--md">
        <Heading as="h3">{title}</Heading>
        <p>{description}</p>
      </div>
    </div>
  );
}

export default function HomepageFeatures() {
  return (
    <section className={styles.features}>
      <div className="container">
        <div className="row">
          {FeatureList.map((props, idx) => (
            <Feature key={idx} {...props} />
          ))}
        </div>
      </div>
    </section>
  );
}
