# All files / src/components/cv index.tsx

0% Statements 0/10
100% Branches 0/0
0% Functions 0/1
0% Lines 0/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    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

     import type { FC } from 'react';
    import { ApplicationLayout } from '../../layouts/ApplicationLayout';
    import * as Urls from '../../urls';

    import styles from './CV.module.scss';

    // eslint:disable
    export const CV: FC = () => {
      const CVFile = 'paulcowan-cv.pdf';

      const pdfUrl = ['', 'assets', CVFile].join('/');

      const viewerUrl = `/pdfjs/web/viewer.html?file=${pdfUrl}&fileName=${CVFile}&openFile=true&download=true&viewBookmark=true`;

      return (
        <ApplicationLayout className={styles.main} heading="Paul Cowan CV">
          <div className={styles['pdf-viewer']}>
            <h1>
              <a className={styles.link} href={Urls.Download}>
                <span>CLICK HERE TO DOWNLOAD MY CV (pdf)</span>
              </a>
            </h1>
            <iframe title="CV" src={viewerUrl} />
          </div>
        </ApplicationLayout>
      );
    };

    export default CV;