Skip to content

Commit fec105b

Browse files
committed
update avatar image
1 parent 140fe78 commit fec105b

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

react/src/pages/AIAgentPage.tsx

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ const { Meta } = Card;
3434
const AIAgentCard = ({ agent }: { agent: AIAgent }) => {
3535
const tags = agent.meta.tags || [];
3636
const { styles } = useStyles();
37+
const avatar =
38+
agent.type === 'external' ? (
39+
<img
40+
src={agent.meta.avatar}
41+
alt={agent.meta.title}
42+
height={150}
43+
width={150}
44+
style={{ borderRadius: '50%' }}
45+
/>
46+
) : (
47+
<FluentEmojiIcon name={agent.meta.avatar} height={150} width={150} />
48+
);
49+
3750
return (
3851
<Card hoverable>
3952
<Flex
@@ -45,13 +58,7 @@ const AIAgentCard = ({ agent }: { agent: AIAgent }) => {
4558
>
4659
<Meta
4760
title={agent.meta.title}
48-
avatar={
49-
<FluentEmojiIcon
50-
name={agent.meta.avatar}
51-
height={150}
52-
width={150}
53-
/>
54-
}
61+
avatar={avatar}
5562
description={agent.meta.descriptions}
5663
className={styles.meta}
5764
/>
@@ -116,6 +123,7 @@ const AIAgentPage: React.FC = () => {
116123
};
117124

118125
window.addEventListener('popstate', handlePopState);
126+
119127
return () => {
120128
window.removeEventListener('popstate', handlePopState);
121129
};
938 KB
Loading

resources/ai-agents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"id": "d3b07384-d9a1-4d3b-9d3b-17384d9a1d5b",
3030
"meta": {
3131
"title": "3D Modeling Expert",
32-
"avatar": "artist-palette",
32+
"avatar": "/resources/agents/3dgen_fluentstyle.png",
3333
"background": "linear-gradient(135deg, #00416A 0%, #E4E5E6 100%)",
3434
"descriptions": "Generating 3D objects from text or image input prompt.",
3535
"tags": ["lablup", "backendai", "3d", "rendering"]

0 commit comments

Comments
 (0)