This commit is contained in:
2026-01-15 01:26:30 +01:00
parent 4a2d7d15a5
commit c3b308e960
102 changed files with 2532 additions and 4744 deletions

View File

@@ -0,0 +1,21 @@
export class AchievementDisplay {
static getRarityColor(rarity: string) {
switch (rarity.toLowerCase()) {
case 'common':
return { text: 'text-gray-400', surface: 'muted' as const, icon: '#9ca3af' };
case 'rare':
return { text: 'text-primary-blue', surface: 'gradient-blue' as const, icon: '#3b82f6' };
case 'epic':
return { text: 'text-purple-400', surface: 'gradient-purple' as const, icon: '#a855f7' };
case 'legendary':
return { text: 'text-yellow-400', surface: 'gradient-gold' as const, icon: '#facc15' };
default:
return { text: 'text-gray-400', surface: 'muted' as const, icon: '#9ca3af' };
}
}
static formatDate(date: Date): string {
const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
return `${months[date.getMonth()]} ${date.getDate()}, ${date.getFullYear()}`;
}
}