update
51caae37
1 file(s) · +8 −5
| 15 | 15 | author: string; |
|
| 16 | 16 | user_id: string; |
|
| 17 | 17 | pfp_url: string; |
|
| 18 | + | username: string; |
|
| 18 | 19 | }; |
|
| 19 | 20 | ||
| 20 | 21 | export function GuestbookFeed() { |
|
| 129 | 130 | {messages.map((note: Message) => ( |
|
| 130 | 131 | <div className="flex flex-row justify-between" key={note.id}> |
|
| 131 | 132 | <div className="flex flex-row gap-2 items-center"> |
|
| 132 | - | <img |
|
| 133 | - | className="h-7 w-7 rounded-full" |
|
| 134 | - | src={note.pfp_url} |
|
| 135 | - | alt={note.author} |
|
| 136 | - | /> |
|
| 133 | + | <a href={`https://github.com/${note.username}`} target="_blank"> |
|
| 134 | + | <img |
|
| 135 | + | className="h-7 w-7 rounded-full" |
|
| 136 | + | src={note.pfp_url} |
|
| 137 | + | alt={note.author} |
|
| 138 | + | /> |
|
| 139 | + | </a> |
|
| 137 | 140 | <div className="flex flex-col justify-between"> |
|
| 138 | 141 | <p className="font-bold text-gray-400">{note.author}</p> |
|
| 139 | 142 | <p>{note.note}</p> |
|