feat: add public player profile page

This commit is contained in:
2026-03-06 13:49:14 -08:00
committed by Naomi Carrigan
parent f734176965
commit 32c13f73c4
5 changed files with 313 additions and 1 deletions
+11 -1
View File
@@ -4,9 +4,10 @@ import { formatNumber } from "../../utils/format.js";
interface ResourceBarProps {
resources: Resource;
prestigeCount: number;
profileUrl: string;
}
export const ResourceBar = ({ resources, prestigeCount }: ResourceBarProps): React.JSX.Element => (
export const ResourceBar = ({ resources, prestigeCount, profileUrl }: ResourceBarProps): React.JSX.Element => (
<header className="resource-bar">
<div className="resource">
<span className="resource-icon">🪙</span>
@@ -33,5 +34,14 @@ export const ResourceBar = ({ resources, prestigeCount }: ResourceBarProps): Rea
Prestige {prestigeCount}
</div>
)}
<a
className="profile-link-button"
href={profileUrl}
rel="noreferrer"
target="_blank"
title="View your public profile"
>
👤 Profile
</a>
</header>
);