summaryrefslogtreecommitdiff
path: root/client/src/pages/Home/Home.jsx
blob: 8f9351a6f7ce7595a26a35497eb2a8bd25c421ac (plain)
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
import React from 'react'
import { useTranslation } from 'react-i18next'
import { useNavigate } from 'react-router-dom'
import Card from '../../components/Card/Card'
import Header from '../../components/Header/Header'
import ExtendedPopUpModal from '../../components/Modal/ExtendedModal'
import styles from './Home.module.css'
import AudioAutoplay from '../../components/AudioAutoplay/AudioAutoplay'

const Home = ({ page, setPage }) => {
  const { t } = useTranslation()
  const navigate = useNavigate()

  return (
    <>
      <Header subheading={t('MERA_AADHAAR_MERI_PEHCHAN')} />
      <AudioAutoplay
        audio={`${process.env.PUBLIC_URL}/assets/audios/main-screen`}
      />
      <ExtendedPopUpModal
        title="Choose the appropriate card"
        description1="For enrollment of new Aadhaar card"
        image1={`${process.env.PUBLIC_URL}/assets/images/enrollment.svg`}
        description2="For updation of details of existing Aadhaar card holders"
        image2={`${process.env.PUBLIC_URL}/assets/images/update.svg`}
        description3="For checking the status of Aadhaar card enrollment and update requests"
        image3={`${process.env.PUBLIC_URL}/assets/images/status.svg`}
      />
      <div className={styles.card__container}>
        <Card
          onClick={() => navigate('/enrollment')}
          title={t('ENROLLMENT')}
          image={`${process.env.PUBLIC_URL}/assets/images/enrollment.svg`}
        />

        <Card
          onClick={() => navigate('/update')}
          title={t('UPDATE')}
          image={`${process.env.PUBLIC_URL}/assets/images/update.svg`}
        />
        <Card
          onClick={() => navigate('/status')}
          title={t('CHECK_STATUS')}
          image={`${process.env.PUBLIC_URL}/assets/images/status.svg`}
        />
      </div>
    </>
  )
}

export default Home