-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 설명 컴포넌트 구현 * refactor: 수정 사항 반영
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
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,28 @@ | ||
interface PageIntroProps { | ||
imageSrc?: string | ||
description: string | ||
className?: string | ||
} | ||
|
||
const PageIntro = ({ | ||
imageSrc, | ||
description, | ||
className = '', | ||
}: PageIntroProps) => { | ||
return ( | ||
<div | ||
className={`flex items-center gap-x-8 whitespace-pre-line border-2 p-4 ${className}`} | ||
> | ||
{imageSrc && ( | ||
<img | ||
className="max-w-20 max-h-20 object-cover" | ||
src={imageSrc} | ||
alt="페이지를 소개하는 npc 아이콘" | ||
/> | ||
)} | ||
<p className={`text-sm sm:text-base`}>{description}</p> | ||
</div> | ||
) | ||
} | ||
|
||
export default PageIntro |
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