Skip to content

Commit

Permalink
Merge pull request #118 from serafuku/yozumina/develop
Browse files Browse the repository at this point in the history
💄 프로필 사진에 프로필로 가는 링크 추가
  • Loading branch information
Squarecat-meow authored Dec 19, 2024
2 parents 41e903a + eac747e commit 1efd546
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions src/app/_components/notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,34 @@ export default function Notification() {
switch (noti.notification_name) {
case 'answer_on_my_question': {
return (
<div key={noti.data?.id}>
<Link href={`/main/user/${noti.data.answeredPersonHandle}/${noti.data.id}`} replace>
<div
className={`flex items-center gap-2 my-2 p-2 relative desktop:p-4 w-full rounded-box shadow ${isRead ? 'bg-gray-100 dark:bg-gray-700' : 'bg-base-100 dark:bg-slate-500'}`}
>
<div className="relative">
<div key={noti.data.id}>
<div
className={`flex items-center gap-2 my-2 p-2 relative desktop:p-4 w-full rounded-box shadow ${isRead ? 'bg-gray-100 dark:bg-gray-700' : 'bg-base-100 dark:bg-slate-500'}`}
>
<div className="relative">
<Link href={`/main/user/${noti.data.answeredPersonHandle}`}>
<FaReply
className={`w-6 h-6 p-1 absolute z-[1] bottom-0 right-0 border-2 border-white rounded-full ${isRead ? 'bg-green-300' : 'bg-green-400'}`}
fill="white"
/>
<img
src={noti.data?.answeredPerson?.avatarUrl}
src={noti.data.answeredPerson?.avatarUrl}
alt="answered persen avatar"
className={`w-16 h-16 rounded-full ${isRead && 'opacity-70'}`}
/>
</div>
<div className={`w-[calc(100%-80px)] flex-col ${isRead && 'text-slate-500 dark:text-slate-400'}`}>
</Link>
</div>
<Link
href={`/main/user/${noti.data.answeredPersonHandle}/${noti.data.id}`}
className="w-[calc(100%-80px)]"
replace
>
<div className={`flex flex-col ${isRead && 'text-slate-500 dark:text-slate-400'}`}>
<span className="font-thin italic ">&quot;{noti.data?.question}&quot;</span>
<p>{noti.data?.answer}</p>
</div>
</div>
</Link>
</Link>
</div>
</div>
);
}
Expand Down

0 comments on commit 1efd546

Please sign in to comment.