diff options
Diffstat (limited to 'src/components/Widgets/CVPreview/CVPreview.tsx')
| -rw-r--r-- | src/components/Widgets/CVPreview/CVPreview.tsx | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/components/Widgets/CVPreview/CVPreview.tsx b/src/components/Widgets/CVPreview/CVPreview.tsx new file mode 100644 index 0000000..e52a9b2 --- /dev/null +++ b/src/components/Widgets/CVPreview/CVPreview.tsx @@ -0,0 +1,36 @@ +import { ExpandableWidget } from '@components/WidgetParts'; +import { Trans } from '@lingui/macro'; +import Image from 'next/image'; +import Link from 'next/link'; +import styles from './CVPreview.module.scss'; + +const CVPreview = ({ + title, + imgSrc, + pdf, +}: { + title: string; + imgSrc: string; + pdf: string; +}) => { + return ( + <ExpandableWidget title={title} expand={true}> + <div className={styles.preview}> + <Image + src={imgSrc} + layout="fill" + objectFit="contain" + objectPosition="left" + alt="CV Armand Philippot" + /> + </div> + <p> + <Trans> + Download <Link href={pdf}>CV in PDF</Link> + </Trans> + </p> + </ExpandableWidget> + ); +}; + +export default CVPreview; |
