diff --git a/frontend/src/components/ProjectCard/index.stories.tsx b/frontend/src/components/ProjectCard/index.stories.tsx index 08f65b1..2e3025c 100644 --- a/frontend/src/components/ProjectCard/index.stories.tsx +++ b/frontend/src/components/ProjectCard/index.stories.tsx @@ -6,6 +6,7 @@ const meta: Meta = { component: ProjectCard, argTypes: { title: { control: 'text' }, + description: { control: 'text' }, }, }; @@ -16,5 +17,6 @@ type Story = StoryObj; export const Default: Story = { args: { title: '프로젝트 제목', + description: '프로젝트 내용', }, }; diff --git a/frontend/src/components/ProjectCard/index.tsx b/frontend/src/components/ProjectCard/index.tsx index 6f6b50f..6881c56 100644 --- a/frontend/src/components/ProjectCard/index.tsx +++ b/frontend/src/components/ProjectCard/index.tsx @@ -3,40 +3,34 @@ import { cn } from '@/lib/utils'; interface ProjectCardProps { title: string; + description: string; imageUrl?: string; onClick?: () => void; } -export default function ProjectCard({ title, imageUrl, onClick }: ProjectCardProps): JSX.Element { +export default function ProjectCard({ title, description, imageUrl, onClick }: ProjectCardProps): JSX.Element { return (
-
+
{imageUrl ? ( {title} ) : ( -
- -
+ )}
-
-
- {title} -
+
+
{title}
+
{description}
);