-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
카테고리 안나오는 문제 해결, alt 값 추가, 각종 ui 수정
- Loading branch information
Showing
9 changed files
with
73 additions
and
54 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,43 @@ | ||
import { ListProps } from '../profileListType'; | ||
|
||
const ProfileCard = (vProfileInfoProps: ListProps) => ( | ||
<div className="flex flex-col items-center justify-center m-1 flex-nowrap"> | ||
<a | ||
href={`/pet/${vProfileInfoProps.petId}`} | ||
className="flex items-center justify-start gap-6 w-auto h-24 ml-10" | ||
> | ||
<div className="flex justify-center w-24 h-full"> | ||
<img | ||
className="flex object-cover w-full h-full cursor-pointer " | ||
src={vProfileInfoProps.profileImageUrl} | ||
alt="" | ||
/> | ||
</div> | ||
<div className=" w-44 whitespace-nowrap"> | ||
<div className="flex flex-row items-center"> | ||
{vProfileInfoProps.petName} | ||
<div className="flex ml-4 text-sm text-brand-color"> | ||
{vProfileInfoProps.petAge} | ||
</div> | ||
const ProfileCard = (vProfileInfoProps: ListProps) => { | ||
let textColor = 'text-neutral-950'; | ||
if (vProfileInfoProps.status === '미입양') { | ||
textColor = 'text-brand-color'; // 미입양일 때 주황색 | ||
} else if (vProfileInfoProps.status === '입양 완료') { | ||
textColor = 'text-blue-700'; // 입양완료일 때 파란색 | ||
} | ||
return ( | ||
<div className="flex flex-col items-center justify-center m-1 flex-nowrap"> | ||
<a | ||
href={`/pet/${vProfileInfoProps.petId}`} | ||
className="flex items-center justify-start gap-6 w-auto h-24 ml-10" | ||
> | ||
<div className="flex justify-center w-24 h-full"> | ||
<img | ||
className="flex object-cover w-full h-full cursor-pointer " | ||
src={vProfileInfoProps.profileImageUrl} | ||
alt="유기동물 사진" | ||
/> | ||
</div> | ||
<div className="text-sm text-gray-400"> | ||
{vProfileInfoProps.shelterName} | ||
<div className=" w-44 whitespace-nowrap"> | ||
<div className="flex text-base font-semibold flex-row items-center"> | ||
{vProfileInfoProps.petName} | ||
<div className="flex ml-4 text-sm text-brand-color"> | ||
{vProfileInfoProps.petAge} | ||
</div> | ||
</div> | ||
<div className="text-sm text-gray-500"> | ||
{vProfileInfoProps.shelterName} | ||
</div> | ||
<div className={` text-base mt-2 font-semibold ${textColor}`}> | ||
{vProfileInfoProps.status} | ||
</div> | ||
</div> | ||
<div className=" text-sm font-semibold">{vProfileInfoProps.status}</div> | ||
</div> | ||
</a> | ||
<hr className=" w-64 h-1 mt-4"></hr> | ||
</div> | ||
); | ||
</a> | ||
<hr className=" w-64 h-1 mt-4"></hr> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ProfileCard; |
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