generated from nhcarrigan/template
feat: add transcendence and apotheosis badges to public profile
- PublicProfileResponse now includes transcendenceCount and apotheosisCount - ProfileSettings adds showTranscendence and showApotheosis toggles (both on by default) - Profile page displays β¨ Apotheosis, π Transcendence, and β Prestige badges in that order - EditProfileModal exposes the two new visibility toggles under Current Run settings - Styled to match the resource bar badges (gold for apotheosis, purple for transcendence)
This commit is contained in:
@@ -17,6 +17,8 @@ interface StatToggle {
|
||||
const CURRENT_RUN_TOGGLES: StatToggle[] = [
|
||||
{ key: "showCurrentGold", label: "Gold Earned This Run", icon: "πͺ" },
|
||||
{ key: "showCurrentClicks", label: "Clicks This Run", icon: "π" },
|
||||
{ key: "showApotheosis", label: "Apotheosis Badge", icon: "β¨" },
|
||||
{ key: "showTranscendence", label: "Transcendence Badge", icon: "π" },
|
||||
{ key: "showPrestige", label: "Prestige Level", icon: "β" },
|
||||
{ key: "showBossesDefeated", label: "Bosses Defeated", icon: "π" },
|
||||
{ key: "showQuestsCompleted", label: "Quests Completed", icon: "π" },
|
||||
|
||||
@@ -179,6 +179,16 @@ export const ProfilePage = ({ discordId }: ProfilePageProps): React.JSX.Element
|
||||
<div className="profile-identity">
|
||||
<h1 className="profile-character-name">{profile.characterName}</h1>
|
||||
<p className="profile-username">@{profile.username}</p>
|
||||
{s.showApotheosis && profile.apotheosisCount > 0 && (
|
||||
<span className="profile-apotheosis-badge">
|
||||
β¨ Apotheosis {profile.apotheosisCount}
|
||||
</span>
|
||||
)}
|
||||
{s.showTranscendence && profile.transcendenceCount > 0 && (
|
||||
<span className="profile-transcendence-badge">
|
||||
π Transcendence {profile.transcendenceCount}
|
||||
</span>
|
||||
)}
|
||||
{s.showPrestige && profile.prestigeCount > 0 && (
|
||||
<span className="profile-prestige-badge">
|
||||
β Prestige {profile.prestigeCount}
|
||||
|
||||
@@ -1466,6 +1466,27 @@ body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.profile-apotheosis-badge {
|
||||
background: linear-gradient(135deg, rgba(120, 53, 15, 0.2), rgba(217, 119, 6, 0.2));
|
||||
border: 1px solid rgba(217, 119, 6, 0.5);
|
||||
border-radius: 1rem;
|
||||
color: #fbbf24;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
padding: 0.2rem 0.6rem;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.profile-transcendence-badge {
|
||||
background: rgba(124, 58, 237, 0.15);
|
||||
border: 1px solid rgba(124, 58, 237, 0.4);
|
||||
border-radius: 1rem;
|
||||
color: #a78bfa;
|
||||
font-size: 0.8rem;
|
||||
padding: 0.2rem 0.6rem;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.profile-prestige-badge {
|
||||
background: rgba(255, 215, 0, 0.15);
|
||||
border: 1px solid rgba(255, 215, 0, 0.4);
|
||||
|
||||
Reference in New Issue
Block a user