From be25896c5ea2206d930705933bd9c0082ac33c04 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 22 Oct 2024 12:26:58 +0100 Subject: [PATCH] change some color stuff --- projects/website/src/components/footer.tsx | 2 +- .../website/src/components/leaderboard/leaderboard-info.tsx | 4 ++-- .../website/src/components/leaderboard/leaderboard-score.tsx | 2 +- projects/website/src/components/ranking/mini.tsx | 2 +- projects/website/src/components/ranking/player-ranking.tsx | 2 +- .../website/src/components/score/score-feed/score-feed.tsx | 2 +- projects/website/src/components/score/score-info.tsx | 2 +- projects/website/src/components/score/score-rank-info.tsx | 2 +- projects/website/src/components/statistic/daily-change.tsx | 2 +- projects/website/tailwind.config.ts | 3 +++ 10 files changed, 13 insertions(+), 10 deletions(-) diff --git a/projects/website/src/components/footer.tsx b/projects/website/src/components/footer.tsx index a7afb45..2a64c0f 100644 --- a/projects/website/src/components/footer.tsx +++ b/projects/website/src/components/footer.tsx @@ -54,7 +54,7 @@ export default function Footer() { return ( diff --git a/projects/website/src/components/leaderboard/leaderboard-info.tsx b/projects/website/src/components/leaderboard/leaderboard-info.tsx index 4fcb50a..a909de0 100644 --- a/projects/website/src/components/leaderboard/leaderboard-info.tsx +++ b/projects/website/src/components/leaderboard/leaderboard-info.tsx @@ -36,7 +36,7 @@ export function LeaderboardInfo({ leaderboard, beatSaverMap }: LeaderboardInfoPr

- By {leaderboard.songAuthorName} + By {leaderboard.songAuthorName}

@@ -45,7 +45,7 @@ export function LeaderboardInfo({ leaderboard, beatSaverMap }: LeaderboardInfoPr

Mapper:{" "} - + {leaderboard.levelAuthorName} diff --git a/projects/website/src/components/leaderboard/leaderboard-score.tsx b/projects/website/src/components/leaderboard/leaderboard-score.tsx index a077b5d..d7b45a0 100644 --- a/projects/website/src/components/leaderboard/leaderboard-score.tsx +++ b/projects/website/src/components/leaderboard/leaderboard-score.tsx @@ -62,7 +62,7 @@ export default function LeaderboardScore({ score, leaderboard, claimedPlayer }: {/* Score PP */} {leaderboard.stars > 0 && ( - {formatPp(score.pp)}pp + {formatPp(score.pp)}pp )} {/* Score Modifiers */} diff --git a/projects/website/src/components/ranking/mini.tsx b/projects/website/src/components/ranking/mini.tsx index 88c50a8..f392650 100644 --- a/projects/website/src/components/ranking/mini.tsx +++ b/projects/website/src/components/ranking/mini.tsx @@ -104,7 +104,7 @@ export default function Mini({ type, player, shouldUpdate }: MiniProps) {

-

{formatPp(playerRanking.pp)}pp

+

{formatPp(playerRanking.pp)}pp

{playerRanking.id !== player.id && (

0 ? "text-green-400" : "text-red-400"}`}> {ppDifference > 0 ? "+" : ""} diff --git a/projects/website/src/components/ranking/player-ranking.tsx b/projects/website/src/components/ranking/player-ranking.tsx index 426c9e2..7bda1ed 100644 --- a/projects/website/src/components/ranking/player-ranking.tsx +++ b/projects/website/src/components/ranking/player-ranking.tsx @@ -28,7 +28,7 @@ export function PlayerRanking({ player, isCountry }: PlayerRankingProps) { - {formatPp(player.pp)}pp + {formatPp(player.pp)}pp {formatNumberWithCommas(player.scoreStats.totalPlayCount)} {formatNumberWithCommas(player.scoreStats.rankedPlayCount)} {player.scoreStats.averageRankedAccuracy.toFixed(2) + "%"} diff --git a/projects/website/src/components/score/score-feed/score-feed.tsx b/projects/website/src/components/score/score-feed/score-feed.tsx index 6dd2f3f..e56e76a 100644 --- a/projects/website/src/components/score/score-feed/score-feed.tsx +++ b/projects/website/src/components/score/score-feed/score-feed.tsx @@ -47,7 +47,7 @@ export default function ScoreFeed() {

Set by{" "} - {player.name} + {player.name}

{leaderboard.songName} {leaderboard.songSubName} diff --git a/projects/website/src/components/score/score-rank-info.tsx b/projects/website/src/components/score/score-rank-info.tsx index 58b7022..5d278c2 100644 --- a/projects/website/src/components/score/score-rank-info.tsx +++ b/projects/website/src/components/score/score-rank-info.tsx @@ -17,7 +17,7 @@ export default function ScoreRankInfo({ score, leaderboard }: Props) {
-

+

#{formatNumberWithCommas(score.rank)}

diff --git a/projects/website/src/components/statistic/daily-change.tsx b/projects/website/src/components/statistic/daily-change.tsx index f4f736f..2392a43 100644 --- a/projects/website/src/components/statistic/daily-change.tsx +++ b/projects/website/src/components/statistic/daily-change.tsx @@ -36,7 +36,7 @@ export function DailyChange({ type, change, tooltip, format }: DailyChangeProps) const value = (

0 ? "text-green-400" : "text-red-400"}`}> {change > 0 ? "+" : ""} - {formatValue(change)} + {`${formatValue(change)}${type.value == "pp" ? "pp" : ""}`}

); diff --git a/projects/website/tailwind.config.ts b/projects/website/tailwind.config.ts index 627c6cb..d905875 100644 --- a/projects/website/tailwind.config.ts +++ b/projects/website/tailwind.config.ts @@ -11,6 +11,9 @@ const config: Config = { extend: { colors: { pp: "#4858ff", + ssr: { + DEFAULT: "#6773ff", + }, background: "hsl(var(--background))", foreground: "hsl(var(--foreground))", card: {