diff --git a/apps/web/src/components/organisms/ProjectCards/index.tsx b/apps/web/src/components/organisms/ProjectCards/index.tsx index 0f179bc..be1fd13 100644 --- a/apps/web/src/components/organisms/ProjectCards/index.tsx +++ b/apps/web/src/components/organisms/ProjectCards/index.tsx @@ -17,16 +17,14 @@ function ProjectCards({ projects }: Props) { flag, id, title, thumbnail, skill: skills, name, }) => ( - {thumbnail && ( - {name} - )} + {name}
{flag}
{name}
diff --git a/apps/web/src/components/organisms/ProjectsSlider/index.tsx b/apps/web/src/components/organisms/ProjectsSlider/index.tsx index 76714c6..3f08468 100644 --- a/apps/web/src/components/organisms/ProjectsSlider/index.tsx +++ b/apps/web/src/components/organisms/ProjectsSlider/index.tsx @@ -3,17 +3,11 @@ import Marquee from 'react-fast-marquee'; import Image from 'next/image'; import Link from 'next/link'; -import { type Project } from '@dnd-academy/core'; - import { getProjects } from '@/lib/apis/project'; import blurDataUrl from '@/lib/data/blurDataUrl'; import styles from './index.module.scss'; -type ThumbnailProject = Project & { - thumbnail: string; -}; - function ProjectsSlider() { const projects = getProjects(); @@ -22,7 +16,6 @@ function ProjectsSlider() {
{[...projects] - .filter((project): project is ThumbnailProject => Boolean(project?.thumbnail)) .slice(0, 20) .map(({ id, thumbnail, title }) => ( diff --git a/apps/web/src/components/pages/ProjectPage/index.tsx b/apps/web/src/components/pages/ProjectPage/index.tsx index 195abdd..9b2d3a2 100644 --- a/apps/web/src/components/pages/ProjectPage/index.tsx +++ b/apps/web/src/components/pages/ProjectPage/index.tsx @@ -39,21 +39,20 @@ function ProjectPage({ project }: Props) { />
- {project?.pdf && ( + {project?.pdf ? (
- )} - {!project?.pdf && project?.thumbnail && ( -
- {project.name} -
+ ) : ( +
+ {project.name} +
)}
@@ -111,10 +110,12 @@ function ProjectPage({ project }: Props) {
{project.desc}
-
-

참가자

- -
+ {reviews.length > 0 && ( +
+

참가자

+ +
+ )}

프로젝트 더보기