Skip to content

Commit

Permalink
feat: add CV page
Browse files Browse the repository at this point in the history
  • Loading branch information
martapanc committed Sep 13, 2023
1 parent eaf0dfc commit 6f1a5bd
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/(public)/cv/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import * as React from 'react';

import CvCard from '@/components/organisms/cv/CvCard';

export const metadata = {
title: 'CV | MartaCodes.it',
description: 'CV page',
Expand All @@ -10,7 +12,9 @@ const CVPage = async () => {
<main className='min-h-main'>
<section>
<div className='layout relative flex flex-col py-12'>
<h1 className='mb-5'>CV</h1>
<h1 className='mb-5 text-center'>CV</h1>

<CvCard />
</div>
</section>
</main>
Expand Down
48 changes: 48 additions & 0 deletions src/components/organisms/cv/CvCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
'use client';

import Image from 'next/image';
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { FaDownload } from 'react-icons/fa';

import Button from '@/components/buttons/Button';

const CvCard = () => {
const { t } = useTranslation();

const width = 1200;

return (
<>
<div className='flex justify-center p-3'>
<a
href='http://bit.ly/pancaldi_cv'
target='_blank'
rel='noopener noreferrer'
>
<Button color='dark'>
<FaDownload className='me-2' />
{t('cv.download')}
</Button>
</a>
</div>

<div className='md:p-4 drop-shadow-xl'>
<Image
src='https://res.cloudinary.com/dwrurydlt/image/upload/v1694635077/Pancaldi_CV_aug23_1_103473c4e7.webp'
alt='CV Page 1'
width={width}
height={0}
/>
<Image
src='https://res.cloudinary.com/dwrurydlt/image/upload/v1694635671/Pancaldi_CV_aug23_77a1e29cab.webp'
alt='CV Page 2'
width={width}
height={0}
/>
</div>
</>
);
};

export default CvCard;
3 changes: 3 additions & 0 deletions src/data/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@
"aboutFreeTime": {},
"projects": {
"readMore": "Read More"
},
"cv": {
"download": "Download PDF"
}
}
3 changes: 3 additions & 0 deletions src/data/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
},
"projects": {
"readMore": "Leggi di più"
},
"cv": {
"download": "Scarica PDF"
}
}
}

0 comments on commit 6f1a5bd

Please sign in to comment.