feat(web): use a pixel-art medal for recent match winners
Swap the lucide trophy in the home recent results for a hand-drawn pixel medal, keep the two alternative trophy drafts as assets, and tune the gold text tokens to match. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
9064340584
commit
6c582ba3cf
5 files changed
+27
-4
No files matched your search
@@ -4,7 +4,7 @@ import type {
|
||||
MatchEventType,
|
||||
MatchSummaryResponse,
|
||||
} from '@lolympus/contracts';
|
||||
import { ChevronLeft, ChevronRight, Trophy } from 'lucide-react';
|
||||
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
||||
import { Link, useSearchParams } from 'react-router';
|
||||
import {
|
||||
useCommunityLeaderboard,
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
useMatchesPage,
|
||||
} from '../api/hooks';
|
||||
import nextMatchArtwork from '../assets/next-match-hero.webp';
|
||||
import pixelMedal from '../assets/pixel-medal-first.svg';
|
||||
import HomeHallOfFame from '../components/HomeHallOfFame';
|
||||
import { championIconUrl, profileIconUrl } from '../lib/ddragon';
|
||||
import { rankLeaderboardByLane } from '../lib/internal-stats-presentation';
|
||||
@@ -521,7 +522,7 @@ function WinnerTeam({ team, label }: { team: WinnerTeamSummary; label: string })
|
||||
return (
|
||||
<div className="min-w-0">
|
||||
<p className="flex min-w-0 items-center gap-1.5">
|
||||
<Trophy className="size-4 shrink-0 text-gold" aria-hidden="true" />
|
||||
<img src={pixelMedal} alt="" className="size-4 shrink-0 [image-rendering:pixelated]" />
|
||||
<span className="shrink-0 text-xs font-semibold text-gold">{label}</span>
|
||||
<strong className="truncate text-[15px] font-semibold text-content group-hover:underline">
|
||||
{team.name}
|
||||
|
||||
Reference in new issue
Block a user