diff --git a/app/Ranking.css b/app/Ranking.css index 787d8ec..6bd4a8e 100644 --- a/app/Ranking.css +++ b/app/Ranking.css @@ -3,10 +3,63 @@ justify-content: space-between; align-items: center; padding: 10px; - margin: 5px 0; + margin: 15px auto; + width: 800px; border-radius: 10px; - background-color: #525252; + background-color: #797878; font-size: 24px; border: 2px solid #333; - box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); + box-shadow: 3px 3px 5px rgba(0, 0, 0, 1); + text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); +} + +.ranking-title{ + display: flex; + justify-content: center; + align-items: center; + margin: 5px auto; + width: 800px; + font-size: 36px; + text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); +} + +.rank-first{ + color: #ffd700; +} + +.rank-second{ + color: #c0c0c0; +} + +.rank-third{ + color: #cd7f32; +} + +.rank-default{ + +} + +.name{ + position: absolute; + left: 50%; + transform: translateX(-50%); +} + +.score{ + +} + +.ranking-load-button{ + display: flex; + justify-content: center; + align-items: center; + padding: 5px; + margin: 15px auto; + width: 400px; + border-radius: 10px; + background-color: #797878; + font-size: 18px; + border: 2px solid #333; + box-shadow: 3px 3px 5px rgba(0, 0, 0, 1); + text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); } \ No newline at end of file diff --git a/app/components/Ranking.tsx b/app/components/Ranking.tsx index 55dc74c..7f91242 100644 --- a/app/components/Ranking.tsx +++ b/app/components/Ranking.tsx @@ -9,9 +9,16 @@ interface RankingData{ } export function RankingItem({ rank, name, score }: RankingData){ + const getRankClass = () => { + if (rank === 1) return 'rank-first'; + if (rank === 2) return 'rank-second'; + if (rank === 3) return 'rank-third'; + return 'rank-default'; + }; + return (