diff --git a/src/components/project/introduction/ProjectIntroduction.tsx b/src/components/project/introduction/ProjectIntroduction.tsx index 3ba45be..5442140 100644 --- a/src/components/project/introduction/ProjectIntroduction.tsx +++ b/src/components/project/introduction/ProjectIntroduction.tsx @@ -8,6 +8,7 @@ import { ProjectData } from '@/interfaces/project/projectData'; import ProjectIntroductionBand from './ProjectIntroductionBand'; import { motion } from 'framer-motion'; import { slideUpVariants } from '@/constants/project/slideUpVariants'; +import Link from 'next/link'; /** * @description @@ -44,9 +45,17 @@ const ProjectIntroduction = ({ projectData }: { projectData: ProjectData }) => { className="flex flex-col justify-end my-3" >
- - - + {projectData?.github && ( + + + + )} + {/* */} + {projectData?.youtube && ( + + + + )}
{projectData?.title}
{projectData?.introduce}
diff --git a/src/hooks/project/notionProjectDataRefactor.ts b/src/hooks/project/notionProjectDataRefactor.ts index 868ba4f..9b19b4b 100644 --- a/src/hooks/project/notionProjectDataRefactor.ts +++ b/src/hooks/project/notionProjectDataRefactor.ts @@ -34,6 +34,10 @@ export function refactorProjectData(item: any, memberList: any[]): ProjectData { ), content: '', date: '', + youtube: + item?.properties['유튜브 링크']?.rich_text[0]?.plain_text ?? undefined, + github: + item?.properties['깃허브 링크']?.rich_text[0]?.plain_text ?? undefined, }; } diff --git a/src/interfaces/project/projectData.ts b/src/interfaces/project/projectData.ts index 0593026..22c8394 100644 --- a/src/interfaces/project/projectData.ts +++ b/src/interfaces/project/projectData.ts @@ -10,4 +10,6 @@ export interface ProjectData { team: ProjectMemberData[]; content: string; date: string; // 일단은 연도값만 넣기 + youtube?: string; + github?: string; }