Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/Pages/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ const Profile: React.FC = () => {
<div className="grid grid-cols-2 sm:grid-cols-3 gap-2">
{profile.badges.map((badge, index) => {
const badgeIcons: Record<string, React.ReactNode> = {
Novice: <FaAward className="w-6 h-6 text-blue-500" />,
Novice: <FaAward className="w-6 h-6 text-primary" />,
Streak5: <FaMedal className="w-6 h-6 text-yellow-500" />,
FactMaster: <FaTrophy className="w-6 h-6 text-purple-500" />,
FirstWin: <FaTrophy className="w-6 h-6 text-green-500" />,
Expand All @@ -877,7 +877,7 @@ const Profile: React.FC = () => {
return (
<div
key={index}
className="flex flex-col items-center justify-center p-3 bg-muted rounded-lg border border-border hover:bg-accent transition-colors cursor-pointer group"
className="flex flex-col items-center justify-center p-3 bg-muted rounded-lg border border-border hover:border-primary hover:shadow-md transition-all cursor-pointer group"
title={badgeDescription}
>
<div className="mb-1 group-hover:scale-110 transition-transform">{badgeIcon}</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/BadgeUnlocked.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface BadgeUnlockedProps {
}

const badgeIcons: Record<string, React.ReactNode> = {
Novice: <FaAward className="w-16 h-16 text-blue-500" />,
Novice: <FaAward className="w-16 h-16 text-primary" />,
Streak5: <FaMedal className="w-16 h-16 text-yellow-500" />,
FactMaster: <FaTrophy className="w-16 h-16 text-purple-500" />,
FirstWin: <FaTrophy className="w-16 h-16 text-green-500" />,
Expand Down