generated from theodorusclarence/ts-nextjs-tailwind-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
123 additions
and
173 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import * as React from 'react'; | ||
|
||
import CvCard from '@/components/organisms/cv/CvCard'; | ||
|
||
export const metadata = { | ||
title: 'CV | MartaCodes.it', | ||
description: 'CV page', | ||
}; | ||
|
||
const CVPage = async () => { | ||
return ( | ||
<main className='min-h-main'> | ||
<section> | ||
<div className='layout relative flex flex-col py-12'> | ||
<h1 className='mb-5 text-center'>CV</h1> | ||
|
||
<CvCard /> | ||
</div> | ||
</section> | ||
</main> | ||
); | ||
}; | ||
|
||
export default CVPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,108 @@ | ||
import Image from 'next/image'; | ||
import * as React from 'react'; | ||
import ReactMarkdown from 'react-markdown'; | ||
|
||
import CvCard from '@/components/organisms/cv/CvCard'; | ||
import Heading from '@/components/atoms/headings/Heading'; | ||
import Education from '@/components/organisms/about-work/Education'; | ||
import Intro from '@/components/organisms/about-work/Intro'; | ||
import Languages from '@/components/organisms/about-work/Languages'; | ||
import Publications from '@/components/organisms/about-work/Publications'; | ||
import WorkExperience from '@/components/organisms/about-work/WorkExperience'; | ||
|
||
import { queryJobs } from '@/queries/jobs'; | ||
import { queryLanguages } from '@/queries/languages'; | ||
import { queryPublications } from '@/queries/publications'; | ||
import { querySchools } from '@/queries/schools'; | ||
import { queryIntro } from '@/queries/short-texts'; | ||
import { querySkills } from '@/queries/skills'; | ||
|
||
import { Icon } from '@/types/Icon'; | ||
import { Skill } from '@/types/Skill'; | ||
|
||
export const metadata = { | ||
title: 'CV | MartaCodes.it', | ||
description: 'CV page', | ||
title: 'About my Work | MartaCodes.it', | ||
description: 'About page', | ||
}; | ||
|
||
const queryData = async () => { | ||
const intro = await queryIntro(); | ||
|
||
const jobs = await queryJobs(); | ||
const languages = await queryLanguages(); | ||
const publications = await queryPublications(); | ||
const schools = await querySchools(); | ||
const skills = await querySkills(); | ||
|
||
return { | ||
intro, | ||
jobs, | ||
languages, | ||
publications, | ||
schools, | ||
skills, | ||
}; | ||
}; | ||
|
||
const CVPage = async () => { | ||
const AboutPage = async () => { | ||
const { intro, jobs, languages, publications, schools, skills } = | ||
await queryData(); | ||
|
||
const iconDimension = 36; | ||
|
||
return ( | ||
<main className='min-h-main'> | ||
<section> | ||
<section className='dark:bg-dark bg-white'> | ||
<div className='layout relative flex flex-col py-12'> | ||
<h1 className='mb-5 text-center'>CV</h1> | ||
<Heading title='aboutWork.title' /> | ||
|
||
<Intro intro={intro} /> | ||
|
||
<div className='mb-10 grid grid-cols-1 gap-5 md:grid-cols-3 md:gap-6'> | ||
{skills.map((skill: Skill) => ( | ||
<div | ||
key={skill.title} | ||
className='skill-container rounded p-4 shadow-md dark:bg-slate-900 dark:drop-shadow-md' | ||
> | ||
<div className='flex'> | ||
{skill.icons.map((icon: Icon) => ( | ||
<Image | ||
key={icon.id} | ||
height={iconDimension} | ||
width={iconDimension} | ||
alt={icon.name} | ||
src={icon.url} | ||
/> | ||
))} | ||
</div> | ||
|
||
<h3>{skill.title}</h3> | ||
|
||
<span className='skill-description text-justify font-light'> | ||
<ReactMarkdown>{skill.description}</ReactMarkdown> | ||
</span> | ||
</div> | ||
))} | ||
</div> | ||
|
||
<hr /> | ||
|
||
<WorkExperience jobs={jobs} /> | ||
|
||
<hr /> | ||
|
||
<Education schools={schools} /> | ||
|
||
<hr /> | ||
|
||
<Languages languages={languages} /> | ||
|
||
<hr /> | ||
|
||
<CvCard /> | ||
<Publications publications={publications} /> | ||
</div> | ||
</section> | ||
</main> | ||
); | ||
}; | ||
|
||
export default CVPage; | ||
export default AboutPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters