diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-17 21:11:07 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-17 21:11:07 +0900 |
| commit | 01d3120fd7129f573d88f7aa7c227b3ef93fe368 (patch) | |
| tree | eea4f5ac0f025c7bdbff71d2ee83b4dce99355ef /frontend/app/routes/dashboard.tsx | |
| parent | f926ef682de637b717d3b0cc0eaee43c59e83c95 (diff) | |
| parent | b923a9d6534820d33f42bc65c47ae22889bde922 (diff) | |
| download | iosdc-japan-2025-albatross-01d3120fd7129f573d88f7aa7c227b3ef93fe368.tar.gz iosdc-japan-2025-albatross-01d3120fd7129f573d88f7aa7c227b3ef93fe368.tar.zst iosdc-japan-2025-albatross-01d3120fd7129f573d88f7aa7c227b3ef93fe368.zip | |
Merge branch 'feat/icon'
Diffstat (limited to 'frontend/app/routes/dashboard.tsx')
| -rw-r--r-- | frontend/app/routes/dashboard.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/frontend/app/routes/dashboard.tsx b/frontend/app/routes/dashboard.tsx index 99c64f2..614b3ae 100644 --- a/frontend/app/routes/dashboard.tsx +++ b/frontend/app/routes/dashboard.tsx @@ -31,6 +31,17 @@ export default function Dashboard() { return ( <div className="p-6 bg-gray-100 min-h-screen flex flex-col items-center"> + {user.icon_path && ( + <img + src={ + process.env.NODE_ENV === "development" + ? `http://localhost:8002/iosdc-japan/2024/code-battle${user.icon_path}` + : `/iosdc-japan/2024/code-battle${user.icon_path}` + } + alt={`${user.display_name} のアイコン`} + className="w-24 h-24 rounded-full mb-4" + /> + )} <h1 className="text-2xl font-bold mb-4"> <span className="text-gray-800">{user.display_name}</span> <span className="text-gray-500 ml-2">@{user.username}</span> |
